navigationOptions in navigator config is renamed to defaultNavigationOptions.

The new meaning of navigationOptions in navigator config is the navigation options for that navigator, not for screens inside of it.
This commit is contained in:
Brent Vatne
2018-10-11 12:31:27 -07:00
parent 07afa55265
commit 51d791d301
9 changed files with 46 additions and 35 deletions

View File

@@ -122,7 +122,7 @@ const StackWithCustomHeaderBackImage = createStackNavigator(
},
},
{
navigationOptions: {
defaultNavigationOptions: {
headerBackImage: MyCustomHeaderBackImage,
},
}