From 0c6b835b9c6b3beb6e54b21e0d1adc25068abc6e Mon Sep 17 00:00:00 2001 From: Dylan Companjen Date: Sat, 4 Aug 2018 10:10:38 +0200 Subject: [PATCH] Updated HeaderTitle fontWeight to match current iOS11&12 style --- .../__tests__/__snapshots__/NestedNavigator-test.js.snap | 4 ++-- .../__tests__/__snapshots__/StackNavigator-test.js.snap | 4 ++-- src/views/Header/HeaderTitle.js | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/navigators/__tests__/__snapshots__/NestedNavigator-test.js.snap b/src/navigators/__tests__/__snapshots__/NestedNavigator-test.js.snap index 9696d68..ae75e44 100644 --- a/src/navigators/__tests__/__snapshots__/NestedNavigator-test.js.snap +++ b/src/navigators/__tests__/__snapshots__/NestedNavigator-test.js.snap @@ -238,7 +238,7 @@ exports[`Nested navigators renders succesfully as direct child 1`] = ` Object { "color": "rgba(0, 0, 0, .9)", "fontSize": 17, - "fontWeight": "700", + "fontWeight": "600", "marginHorizontal": 16, "textAlign": "center", } @@ -348,7 +348,7 @@ exports[`Nested navigators renders succesfully as direct child 1`] = ` Object { "color": "rgba(0, 0, 0, .9)", "fontSize": 17, - "fontWeight": "700", + "fontWeight": "600", "marginHorizontal": 16, "textAlign": "center", } diff --git a/src/navigators/__tests__/__snapshots__/StackNavigator-test.js.snap b/src/navigators/__tests__/__snapshots__/StackNavigator-test.js.snap index 4ad8b76..e142edd 100644 --- a/src/navigators/__tests__/__snapshots__/StackNavigator-test.js.snap +++ b/src/navigators/__tests__/__snapshots__/StackNavigator-test.js.snap @@ -168,7 +168,7 @@ exports[`StackNavigator applies correct values when headerRight is present 1`] = Object { "color": "rgba(0, 0, 0, .9)", "fontSize": 17, - "fontWeight": "700", + "fontWeight": "600", "marginHorizontal": 16, "textAlign": "center", } @@ -372,7 +372,7 @@ exports[`StackNavigator renders successfully 1`] = ` Object { "color": "rgba(0, 0, 0, .9)", "fontSize": 17, - "fontWeight": "700", + "fontWeight": "600", "marginHorizontal": 16, "textAlign": "center", } diff --git a/src/views/Header/HeaderTitle.js b/src/views/Header/HeaderTitle.js index 722842c..25cd013 100644 --- a/src/views/Header/HeaderTitle.js +++ b/src/views/Header/HeaderTitle.js @@ -15,7 +15,7 @@ const HeaderTitle = ({ style, ...rest }) => ( const styles = StyleSheet.create({ title: { fontSize: Platform.OS === 'ios' ? 17 : 20, - fontWeight: Platform.OS === 'ios' ? '700' : '500', + fontWeight: Platform.OS === 'ios' ? '600' : '500', color: 'rgba(0, 0, 0, .9)', marginHorizontal: 16, },