I want to save my last visited screen by the user in Async Storage before the user exits the application. As there is no lifecycle event in react-native to look for an app being closed, I want to trigger a function in react-native when OnDestroy event occurs in android.
↧