@takeoffmedia/react-native-screen-lock
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@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

Package Sidebar

Install

npm i @takeoffmedia/react-native-screen-lock

Weekly Downloads

7

Version

0.1.1

License

MIT

Unpacked Size

33.6 kB

Total Files

21

Last publish

Collaborators

  • sebastiantom
  • jonathanm-tkf