Compare commits

...

2 Commits

Author SHA1 Message Date
Satyajit Sahoo
dff6c3ee7c chore: publish
- react-navigation-tabs@2.10.1
2020-10-28 15:04:08 +01:00
Satyajit Sahoo
ffe3bddcb2 fix: add bottom insets to custom height for bottom tabs 2020-10-28 15:02:54 +01:00
3 changed files with 21 additions and 5 deletions

View File

@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
## [2.10.1](https://github.com/react-navigation/tabs/compare/react-navigation-tabs@2.10.0...react-navigation-tabs@2.10.1) (2020-10-28)
### Bug Fixes
* add bottom insets to custom height for bottom tabs ([ffe3bdd](https://github.com/react-navigation/tabs/commit/ffe3bddcb27ecb3d663b13b433263d18f792ad4d))
# [2.10.0](https://github.com/react-navigation/tabs/compare/react-navigation-tabs@2.9.2...react-navigation-tabs@2.10.0) (2020-10-26)

View File

@@ -1,6 +1,6 @@
{
"name": "react-navigation-tabs",
"version": "2.10.0",
"version": "2.10.1",
"description": "Tab Navigation components for React Navigation",
"main": "lib/commonjs/index.js",
"module": "lib/module/index.js",

View File

@@ -423,6 +423,7 @@ class TabBarBottom extends React.Component<BottomTabBarProps, State> {
marginRight,
marginHorizontal,
marginVertical,
height,
...innerStyle
} = StyleSheet.flatten(style || {});
@@ -467,10 +468,14 @@ class TabBarBottom extends React.Component<BottomTabBarProps, State> {
const tabBarStyle = [
{
height:
// @ts-ignore: isPad exists in runtime but not available in type defs
(this._shouldUseHorizontalLabels() && !Platform.isPad
? COMPACT_HEIGHT
: DEFAULT_HEIGHT) + insets.bottom,
height != null
? typeof height === 'number'
? height + insets.bottom
: height
: // @ts-ignore: isPad exists in runtime but not available in type defs
(this._shouldUseHorizontalLabels() && !Platform.isPad
? COMPACT_HEIGHT
: DEFAULT_HEIGHT) + insets.bottom,
paddingBottom: insets.bottom,
paddingLeft: insets.left,
paddingRight: insets.right,