Pin/lock your app to device screen. 🐎 New Architecture support
$ npm install react-native-device-lock-task
$ yarn add react-native-device-lock-task
import RTNLockTask from 'react-native-device-lock-task/js/NativeDeviceLockTask'
const lockTask=async()=>{
await RTNLockTask?.startLockTask()
}
const stopLockTask=async()=>{
await RTNLockTask?.stopLockTask()
}
const checkLockTaskStatus=async()=>{
await RTNLockTask?.isAppInLockTaskMode()
}