Compare commits

..

2 Commits

Author SHA1 Message Date
Brent Vatne
ee40dd7d24 Release 1.5.6 2018-03-14 21:50:20 -07:00
Brent Vatne
18a48105c2 Missed a case where we should not have flexGrow 2018-03-14 21:50:06 -07:00
4 changed files with 17 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "react-navigation",
"version": "1.5.5",
"version": "1.5.6",
"description": "Routing and navigation for your React Native apps",
"main": "src/react-navigation.js",
"repository": {

View File

@@ -137,9 +137,12 @@ exports[`TabNavigator renders successfully 1`] = `
>
<View
style={
Object {
"flexGrow": 1,
}
Array [
false,
Object {
"flexGrow": 1,
},
]
}
>
<View

View File

@@ -101,6 +101,8 @@ class TabBarBottom extends React.PureComponent {
return null;
}
const horizontal = this._shouldUseHorizontalTabs();
return (
<TabBarIcon
position={position}
@@ -110,8 +112,8 @@ class TabBarBottom extends React.PureComponent {
renderIcon={renderIcon}
scene={scene}
style={[
styles.icon,
this._shouldUseHorizontalTabs() && styles.horizontalIcon,
horizontal && styles.horizontalIcon,
showLabel !== false && !horizontal && styles.icon,
]}
/>
);

View File

@@ -83,9 +83,12 @@ exports[`TabBarBottom renders successfully 1`] = `
>
<View
style={
Object {
"flexGrow": 1,
}
Array [
false,
Object {
"flexGrow": 1,
},
]
}
>
<View