navigation.dispatch in case StackActions.reset not working for web #20
Comments
hi, what does it mean "not working"? There has been a recent PR, which fixed an issue with the dispatch method being prefixed with a _. As you are using a ref on the navigation container like in the issue, it's probably the same error if you got "dispatch is not a function" or some error like that |
It seems it has not yet been released however (cc @brentvatne @ericvicenti) so you can try calling _dispatch |
@slorber I`m already try _dispatch but not different in fact and after check test speck released the correct one is "ref._navigation.dispatch" |
Hey guys, actualy navigation goBack and this issue and some more little thinks not working if you need more information or a sample i can make it take hands on this issue appreciate that |
@soroushm - please create a new issue and provide a runnable example that we can use on https://snack.expo.io, thanks! |
tips on how to create a good reproducible example: https://stackoverflow.com/help/mcve |
Dear Friends,
I have a react-native web and recently i`m start migrate to web application (with react-navigation for web) but i have a problem navigation.dispatch not working just in web in react-native working as well
in Luanch page in some case i will be reset AuthNavigator for navigat to Join page
NavigationService.reset(['AuthNavigator'])
here is data of resetAction:
Current Behavior
index.js
NavigationService.js
AuthNavigator
Expected Behavior
navigate to Join page same as react-native
Your Environment
The text was updated successfully, but these errors were encountered: