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.