Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 28469

How can i call a function in React native when onDestroy method is called in Android Studio?

$
0
0

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.


Viewing all articles
Browse latest Browse all 28469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>