Changes StackNavigator.Screen from statelessComponent to statelesscomponentWithRetainedProps. It allow us to check for header props changes and call navigation.setOptions when they change. Only problem are properties that are recreated every time like Style.t or (probably) Header.returnsComponent.
I've also updated example app to have dynamic headerTitle on Admin screen.
Changes
StackNavigator.Screen
fromstatelessComponent
tostatelesscomponentWithRetainedProps
. It allow us to check for header props changes and callnavigation.setOptions
when they change. Only problem are properties that are recreated every time likeStyle.t
or (probably)Header.returnsComponent
.I've also updated example app to have dynamic
headerTitle
on Admin screen.Fixes #122