Compare commits

..

7 Commits

Author SHA1 Message Date
Brent Vatne
99bf123ff2 Release 1.5.8 2018-03-16 07:45:42 -07:00
Brent Vatne
feb93411bc Use react-native-tab-view fork with cherry-picked ViewPagerAndroid fix 2018-03-16 07:43:52 -07:00
Brent Vatne
86f07175fb Release 1.5.7 2018-03-15 10:20:20 -07:00
Brent Vatne
8288853e3c Update snapshots 2018-03-15 10:20:09 -07:00
Brent Vatne
c4bd2db542 Another fix for frustrating tab bar icon layout issue 2018-03-15 10:19:40 -07:00
Brent Vatne
ee40dd7d24 Release 1.5.6 2018-03-14 21:50:20 -07:00
Brent Vatne
18a48105c2 Missed a case where we should not have flexGrow 2018-03-14 21:50:06 -07:00
6 changed files with 890 additions and 336 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "react-navigation",
"version": "1.5.5",
"version": "1.5.8",
"description": "Routing and navigation for your React Native apps",
"main": "src/react-navigation.js",
"repository": {
@@ -35,7 +35,7 @@
"react-lifecycles-compat": "^1.0.2",
"react-native-drawer-layout-polyfill": "^1.3.2",
"react-native-safe-area-view": "^0.7.0",
"react-native-tab-view": "^0.0.74"
"react-native-tab-view": "github:react-navigation/react-native-tab-view"
},
"devDependencies": {
"babel-cli": "^6.24.1",

View File

@@ -137,9 +137,15 @@ exports[`TabNavigator renders successfully 1`] = `
>
<View
style={
Object {
"flexGrow": 1,
}
Array [
Object {
"height": 29,
},
false,
Object {
"flexGrow": 1,
},
]
}
>
<View

View File

@@ -101,6 +101,8 @@ class TabBarBottom extends React.PureComponent {
return null;
}
const horizontal = this._shouldUseHorizontalTabs();
return (
<TabBarIcon
position={position}
@@ -110,8 +112,9 @@ class TabBarBottom extends React.PureComponent {
renderIcon={renderIcon}
scene={scene}
style={[
styles.icon,
this._shouldUseHorizontalTabs() && styles.horizontalIcon,
styles.iconWithExplicitHeight,
showLabel === false && !horizontal && styles.iconWithoutLabel,
showLabel !== false && !horizontal && styles.iconWithLabel,
]}
/>
);
@@ -318,10 +321,13 @@ const styles = StyleSheet.create({
justifyContent: 'center',
flexDirection: 'row',
},
icon: {
iconWithoutLabel: {
flex: 1,
},
iconWithLabel: {
flexGrow: 1,
},
horizontalIcon: {
iconWithExplicitHeight: {
height: Platform.isPad ? DEFAULT_HEIGHT : COMPACT_HEIGHT,
},
label: {

View File

@@ -54,11 +54,11 @@ const styles = StyleSheet.create({
// We render the icon twice at the same position on top of each other:
// active and inactive one, so we can fade between them:
// Cover the whole iconContainer:
alignItems: 'center',
alignSelf: 'center',
height: '100%',
justifyContent: 'center',
position: 'absolute',
alignSelf: 'center',
alignItems: 'center',
justifyContent: 'center',
height: '100%',
width: '100%',
},
});

View File

@@ -83,9 +83,15 @@ exports[`TabBarBottom renders successfully 1`] = `
>
<View
style={
Object {
"flexGrow": 1,
}
Array [
Object {
"height": 29,
},
false,
Object {
"flexGrow": 1,
},
]
}
>
<View

1176
yarn.lock

File diff suppressed because it is too large Load Diff