Concept:
My application needs to record user activities on phone. Activities contain Foreground, Background, Kill, Lock and Unlock.
Since that day I couldn't find any way to detect Lock/Unlock event in React native.
Solution:
It works fine for us.
Hope this would help you.
Your app is pretty much a sandbox within your device. Listening to unlock states is not tied to anything within your app.
Your next best hope is to do something like this, but I would not recommend it as it most likely violates private API's (This is iOS only): https://stackoverflow.com/a/14271705/1363779