Compare commits

...

5 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
6 changed files with 876 additions and 330 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "react-navigation",
"version": "1.5.6",
"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

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

View File

@@ -112,8 +112,9 @@ class TabBarBottom extends React.PureComponent {
renderIcon={renderIcon}
scene={scene}
style={[
horizontal && styles.horizontalIcon,
showLabel !== false && !horizontal && styles.icon,
styles.iconWithExplicitHeight,
showLabel === false && !horizontal && styles.iconWithoutLabel,
showLabel !== false && !horizontal && styles.iconWithLabel,
]}
/>
);
@@ -320,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

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

1176
yarn.lock

File diff suppressed because it is too large Load Diff