My application is written with React Native with Redux. It appears as though my
is destroyed on back button press. When the app is re-opened from the Task Manager or re-launched from the app menu, the app has lost its previous state, which I would like to avoid or work around.
I have read solutions around overriding the
, etc. but I'm not convinced it's the right solution.
Is there a clean / correct way to make sure that my app is restarted with the most recent application state? Perhaps this involves persisting the app state somewhere and restoring it when the application comes into the foreground.