react-native-device-lock-task
v0.0.3
Published
React Native New Architecture - handle lock task/pinning application to screen
Downloads
134
Maintainers
Readme
react-native-device-lock-task
Pin/lock your app to device screen. 🐎 New Architecture support
Installation
Adding the package
npm
$ npm install react-native-device-lock-task
yarn
$ yarn add react-native-device-lock-task
Example
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()
}