Home > Software design >  How to prevent user to lock phone screen in a specific screen react native
How to prevent user to lock phone screen in a specific screen react native

Time:06-20

I need to avoid user from locking screen in a specific screen in react native. i searched but didn't find any resource, does any know how to do that.

CodePudding user response:

You can not avoid user locking screen but try using this library https://www.npmjs.com/package/react-native-wake-lock this might help.

CodePudding user response:

This is not possible. Also, can you please explain your use case? Maybe there's a better way to achieve what you are trying to do.

  • Related