web
web copied to clipboard
navigation go back not working on web
unfortunately navigation go back not working on web
this.props.navigation.goBack(null) Functions is exist
after some check i realized in getNavigationActionCreators.js this "import NavigationActions from '../NavigationActions'; " not working as well and NavigationActions is not defiend
"@react-navigation/core": "^3.3.1",
"@react-navigation/web": "^1.0.0-alpha.7",
https://github.com/react-navigation/react-navigation-web/issues/21
@soroushm Shall i try to dolve this?
@asha15 if you can solve try, I don't know what is the current status on this issue a lot of changes in react-navigation core and I left over this library Also, I'm Available to help you
@soroushm Thank you. Can i know where the file is located at?
Having this same issue 😢
Same issue :(
As a workaround you can use
if (Platform.OS === "web") window.history.back();
As a workaround you can use
if (Platform.OS === "web") window.history.back();
I'm developing a new App, and this issue happens either way. The browser history stack is modified (via scripting or user click of the back button) but the components are not re-rendered. I believe that's where the problem is.