You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.
When I use Rebolt's stack navigation with navigation bars, I can initialize the title of the navigation by setting the property headerTitle of a screen component. The title then remains fixed to this initial value. If I want to have it changed dynamically, whenever some state in my app changes, the only "option" (this is not really an option) is to leave the screen and reopen it.
Usually the default behaviour is fine. However, if you implement a language switch inside the app, you will see that every screen on the stack (at the moment when the language is switched) keeps its title as long as it is alive.
Ultimately I have to restart the app to see any changes in the navigation bar for the start screen of the app.
The text was updated successfully, but these errors were encountered:
baransu
added a commit
to baransu/rebolt-navigation
that referenced
this issue
Sep 6, 2018
…Props
It allow us to check for header props changes and call navigation.setOptions when props changes. Should fixcallstackincubator#122. Only problem are properties that are recreated every time like Style.t or (probably) Header.returnsComponent.
Right now StackNavigator assigns header props in Screen's didMount lifecycle and ignores further changes. There is possibility to use retainedProps and update header in didUpdate lifecycle. #124 should fix that.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When I use Rebolt's stack navigation with navigation bars, I can initialize the title of the navigation by setting the property
headerTitle
of a screen component. The title then remains fixed to this initial value. If I want to have it changed dynamically, whenever some state in my app changes, the only "option" (this is not really an option) is to leave the screen and reopen it.Usually the default behaviour is fine. However, if you implement a language switch inside the app, you will see that every screen on the stack (at the moment when the language is switched) keeps its title as long as it is alive.
Ultimately I have to restart the app to see any changes in the navigation bar for the start screen of the app.
The text was updated successfully, but these errors were encountered: