Updated HeaderTitle fontWeight to match current iOS11&12 style

This commit is contained in:
Dylan Companjen 2018-08-04 10:10:38 +02:00
parent 094ebbe4a9
commit 0c6b835b9c
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,
},