mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 09:13:43 +08:00
fix: iPad / horizontal layout works as expected in BottomTabBar
This commit is contained in:
@@ -129,7 +129,6 @@ class TabBarBottom extends React.Component<Props> {
|
||||
renderIcon={renderIcon}
|
||||
style={[
|
||||
styles.iconWithExplicitHeight,
|
||||
styles.iconWithLabel,
|
||||
showLabel === false && !horizontal && styles.iconWithoutLabel,
|
||||
showLabel !== false && !horizontal && styles.iconWithLabel,
|
||||
]}
|
||||
@@ -213,7 +212,6 @@ class TabBarBottom extends React.Component<Props> {
|
||||
this._shouldUseHorizontalLabels()
|
||||
? styles.tabLandscape
|
||||
: styles.tabPortrait,
|
||||
styles.tabPortrait,
|
||||
tabStyle,
|
||||
]}
|
||||
>
|
||||
|
||||
@@ -59,5 +59,7 @@ const styles = StyleSheet.create({
|
||||
justifyContent: 'center',
|
||||
height: '100%',
|
||||
width: '100%',
|
||||
// Workaround for react-native >= 0.54 layout bug
|
||||
minWidth: 25,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user