mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-27 21:08:02 +08:00
Missed a case where we should not have flexGrow
This commit is contained in:
@@ -138,10 +138,10 @@ exports[`TabNavigator renders successfully 1`] = `
|
||||
<View
|
||||
style={
|
||||
Array [
|
||||
false,
|
||||
Object {
|
||||
"flexGrow": 1,
|
||||
},
|
||||
false,
|
||||
]
|
||||
}
|
||||
>
|
||||
|
||||
@@ -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,
|
||||
]}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user