Missed a case where we should not have flexGrow

This commit is contained in:
Brent Vatne
2018-03-14 21:48:48 -07:00
parent a9943e9b2e
commit 42230634fd
2 changed files with 5 additions and 3 deletions

View File

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

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,
]}
/>
);