fix: iPad / horizontal layout works as expected in BottomTabBar

This commit is contained in:
Brent Vatne
2018-04-04 19:31:07 -07:00
parent 9020c35bf2
commit ba2d119ab3
2 changed files with 2 additions and 2 deletions

View File

@@ -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,
]}
>

View File

@@ -59,5 +59,7 @@ const styles = StyleSheet.create({
justifyContent: 'center',
height: '100%',
width: '100%',
// Workaround for react-native >= 0.54 layout bug
minWidth: 25,
},
});