Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Commit

Permalink
fix: iPad / horizontal layout works as expected in BottomTabBar
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvatne authored and satya164 committed Aug 18, 2019
1 parent 6e35ca4 commit 3bb5ec4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/bottom-tabs/src/views/BottomTabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]}
Expand Down Expand Up @@ -213,7 +212,6 @@ class TabBarBottom extends React.Component<Props> {
this._shouldUseHorizontalLabels()
? styles.tabLandscape
: styles.tabPortrait,
styles.tabPortrait,
tabStyle,
]}
>
Expand Down
2 changes: 2 additions & 0 deletions packages/bottom-tabs/src/views/CrossFadeIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,7 @@ const styles = StyleSheet.create({
justifyContent: 'center',
height: '100%',
width: '100%',
// Workaround for react-native >= 0.54 layout bug
minWidth: 25,
},
});

0 comments on commit 3bb5ec4

Please sign in to comment.