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

React Native / Expo: How to detect device lock with app open vs app quit

$
0
0

I'm trying to detect when my app is open and the device get's locked vs when the app is left. Currently Expo appstate always shows Inactive -> Background for both locking the device and leaving the app. Shouldn't the state stay on inactive since the app is never really 'left' when locking the device?

I could only find one similar post but the answer hasn't been updated with the users solution.React Native: How to detect device lock/unlock event?


Viewing all articles
Browse latest Browse all 16750

Trending Articles



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