react-native-device-lock-task

React Native New Architecture - handle lock task/pinning application to screen


Keywords
react-native, ios, android, lock-task, lock task, pin app, new architecture, turbo-module, kotlin, app pinning
License
MIT
Install
npm install react-native-device-lock-task@0.0.1

Documentation

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()
}