web icon indicating copy to clipboard operation
web copied to clipboard

navigation go back not working on web

Open soroushm opened this issue 5 years ago • 7 comments

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

Screenshot from 2019-04-13 10-46-45

"@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 avatar Apr 13 '19 06:04 soroushm

@soroushm Shall i try to dolve this?

asha15 avatar Oct 11 '19 16:10 asha15

@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 avatar Oct 11 '19 21:10 soroushm

@soroushm Thank you. Can i know where the file is located at?

asha15 avatar Oct 12 '19 14:10 asha15

Having this same issue 😢

espipj avatar Dec 08 '19 01:12 espipj

Same issue :(

imAliAzhar avatar Dec 10 '19 06:12 imAliAzhar

As a workaround you can use if (Platform.OS === "web") window.history.back();

imAliAzhar avatar Dec 10 '19 09:12 imAliAzhar

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.

lesmo avatar Dec 14 '19 00:12 lesmo