Closed soroushm closed 5 years ago
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
https://github.com/react-navigation/react-navigation-web/pull/19
It seems it has not yet been released however (cc @brentvatne @ericvicenti) so you can try calling _dispatch
@slorber not working mins not happen when i dispatch StackActions.reset noting happen
I`m already try _dispatch but not different in fact and after check test speck released the correct one is "ref._navigation.dispatch" and its working as well on when i dispatch navigateAction
Hey guys, @brentvatne @ericvicenti i Have few issue on this repo when try for working on web can you take a look
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