@takeoffmedia/react-native-screen-lock
v0.1.1
Published
test
Downloads
14
Readme
@takeoffmedia/react-native-screen-lock
React Native Screen Lock
A react-native module that can listen lock device, get current state and create Event Emmiter
Installation
npm install @takeoffmedia/react-native-screen-lock
or
yarn add @takeoffmedia/react-native-screen-lock
Usage
import ReactNativeScreenLock from "@takeoffmedia/react-native-screen-lock";
// ...
<ReactNativeScreenLock
onLockEvent={({ nativeEvent }) => {
console.log({
isLock: nativeEvent.isLock
})
}}
/>
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library