Actions.refresh renderRightButton has no effect
See original GitHub issueVersion
Tell us which versions you are using:
- react-native-router-flux v4.0.1 (v3 is not supported)
- react-native v0.56.0
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.
static onEnter = () => {
const { wrappedInstance } = Actions.refs.profile
// this works
Actions.refresh({
rightTitle: "Logout",
onRight: wrappedInstance.onLogout
})
// this has no effect
Actions.refresh({
renderRightButton: () => <MoreButton onPress={() => alert('hi')} />
})
}
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
react-native-router-flux/CHANGELOG.md - UNPKG
53, - Actions.refresh renderRightButton has no effect [\#3218](https://github.com/aksonov/react-native-router-flux/issues/3218).
Read more >Actions.refresh navigation - react native - Stack Overflow
I use react-native-router-flux for my navigation. I have a problem with Actions.refresh(). When I execute it nothing happen ... import React, { ...
Read more >react-native-router-flux | Yarn - Package Manager
react-native-router-flux is a different API over react-navigation . It helps users to define all the routes in ... getStateForAction is not a function...
Read more >aksonov/react-native-router-flux - Gitter
How to get the current route from the sidebar? Actions.currentRouter.currentRoute is not working. Adrian ...
Read more >Padding At The Top Is Coming While Using Drawer ("React-Native ...
React Native Navigation Drawer is a very popular component in app development. ... Actions.refresh renderRightButton has no effect #3218; hideTabBar is ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For
react-navigation
version3.X
use following example May be it also works with4.x
Here is how I worked around it