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

Is this able to recover when activity is destroyed?

Open henrikra opened this issue 7 years ago • 1 comments

When talking about natively build navigators for React Native the main problem with them have been compatibility with Android when activity is destroyed. When I turn "Don't keep activities" to ON on Android and put my app on background the activity is destroyed right away. With this setting on and using wix's react-native-navigation it does not remember the route I was in. This will be major drawback for apps that are required to be used on background too.

The main benefit with the JS based routing is that you can put routes to redux store which is not destroyed on activity destroy and all my routes are on memory even when activity is destroyed.

So I would recommend you guys to keep "Don't keep activities" to ON mode all the time when developing this navigator. And maybe it will become defacto navigation library of RN! :)

henrikra avatar Apr 19 '17 05:04 henrikra

@henrikra I may have solved this problem https://github.com/airbnb/native-navigation/pull/161

lucas-tulio avatar May 12 '18 22:05 lucas-tulio