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
Add some mechanism to prevent onRightButtonPress from being clicked Repeatedly. Right now if the action of clicking onRightButtonPressis asynchronous, it may be hit a second time. Resulting in duplicate navigations.
I tried adding state the button allowing only one press but I don't know how to clear this when the back button is pressed returning to the current route.
Ideally after a call to something like navigator.push(route), the button would be disabled.
The text was updated successfully, but these errors were encountered:
I had this problem as well. I've used onWillFocus, onDidBlur handler to prevent duplicate transition - once latest route from navigator.getCurrentRoutes() is not in focus, i'm not processing 'push' action. I've implemented it with new release of https://github.com/aksonov/react-native-router-flux
Add some mechanism to prevent
onRightButtonPress
from being clicked Repeatedly. Right now if the action of clickingonRightButtonPress
is asynchronous, it may be hit a second time. Resulting in duplicate navigations.I tried adding state the button allowing only one press but I don't know how to clear this when the back button is pressed returning to the current route.
Ideally after a call to something like
navigator.push(route)
, the button would be disabled.The text was updated successfully, but these errors were encountered: