Merge pull request #1 from dylancompanjen/master

Updated HeaderTitle fontWeight to match current iOS11&12 style
This commit is contained in:
Brent Vatne 2018-08-14 08:56:15 -07:00 committed by GitHub
commit d6b1f5c967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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",
}

View File

@ -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",
}

View File

@ -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,
},