-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Actions.refresh renderRightButton has no effect #3218
Comments
Here is how I worked around it
|
Thank you for the update about the workaround. This seems to be sort of a duplicate of #3188. I'll keep it marked as bug and work on both in the same PR. |
@jamesholcomb It looks like a hack and probably just not supported by React Navigation 2.x (its SET_PARAMS action). Instead you should define one renderRightButton that changes its content depending from navigation state. |
I am attempting to upgrade a 3.X project to 4.0. The example does not seem to demonstrate how to go about this and the migration guide does not mention it. Can you elaborate or point to an example? |
I would also be interested in seeing an example of how to accomplish this with 4.0. |
For
|
Version
Tell us which versions you are using:
Expected behaviour
The navbar refreshes with the new right button component
Actual behaviour
No effect
Steps to reproduce
For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
The text was updated successfully, but these errors were encountered: