native-navigation icon indicating copy to clipboard operation
native-navigation copied to clipboard

Reload js not clear nav stack

Open matpaul opened this issue 7 years ago • 2 comments

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 avatar Jul 12 '17 11:07 matpaul

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.

esam091 avatar Jul 21 '17 17:07 esam091

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

matpaul avatar Jul 21 '17 23:07 matpaul