Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload js not clear nav stack #128

Open
matpaul opened this issue Jul 12, 2017 · 2 comments
Open

Reload js not clear nav stack #128

matpaul opened this issue Jul 12, 2017 · 2 comments

Comments

@matpaul
Copy link

matpaul commented Jul 12, 2017

Hello all! There is an issue with reloading ->
I have screen component (CheckLogin) it make decision: show app or show login - so every time when i reload(dev mode) - all viewControllers in coordinator still exist and push one more.

@matpaul matpaul changed the title (Dev) Reload js not clear nav stack Reload js not clear nav stack Jul 12, 2017
@esam091
Copy link
Contributor

esam091 commented Jul 21, 2017

JS reload only clears JS app state and view hierarchies created by React Native. The view controllers however, is not managed by React. They are managed by native code, so you should restore the navigation history by yourself before reloading.

@matpaul
Copy link
Author

matpaul commented Jul 21, 2017

@esam091 yes, i understand - but in this issue i mean that we need some js function like StartNavigation that clear native stack)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants