diff --git a/packages/react-navigation/src/navigators/__tests__/__snapshots__/TabNavigator-test.js.snap b/packages/react-navigation/src/navigators/__tests__/__snapshots__/TabNavigator-test.js.snap index 151cdf72..7d8c182b 100644 --- a/packages/react-navigation/src/navigators/__tests__/__snapshots__/TabNavigator-test.js.snap +++ b/packages/react-navigation/src/navigators/__tests__/__snapshots__/TabNavigator-test.js.snap @@ -147,13 +147,12 @@ exports[`TabNavigator renders successfully 1`] = ` style={ Object { "alignItems": "center", - "bottom": 0, + "alignSelf": "center", + "height": "100%", "justifyContent": "center", - "left": 0, "opacity": 1, "position": "absolute", - "right": 0, - "top": 0, + "width": "100%", } } /> @@ -162,13 +161,12 @@ exports[`TabNavigator renders successfully 1`] = ` style={ Object { "alignItems": "center", - "bottom": 0, + "alignSelf": "center", + "height": "100%", "justifyContent": "center", - "left": 0, "opacity": 0, "position": "absolute", - "right": 0, - "top": 0, + "width": "100%", } } /> diff --git a/packages/react-navigation/src/views/TabView/TabBarIcon.js b/packages/react-navigation/src/views/TabView/TabBarIcon.js index 549ebc3f..d6febc73 100644 --- a/packages/react-navigation/src/views/TabView/TabBarIcon.js +++ b/packages/react-navigation/src/views/TabView/TabBarIcon.js @@ -53,12 +53,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: - position: 'absolute', - top: 0, - left: 0, - right: 0, - bottom: 0, alignItems: 'center', + alignSelf: 'center', + height: '100%', justifyContent: 'center', + position: 'absolute', + width: '100%', }, });