# react-native-phone-locked-action

> Detect event ACTION_USER_PRESENT || ACTION_SCREEN_OFF || ACTION_SCREEN_ON

Latest version **1.0.2** (published 2019-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-phone-locked-action
pnpm add react-native-phone-locked-action
yarn add react-native-phone-locked-action
bun add react-native-phone-locked-action
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-12-26 |
| First published | 2019-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 112 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Dmitriy Kupriyanov |
| Maintainers | dimonchik |
| Keywords | react-native |

## Links

- npm: https://www.npmjs.com/package/react-native-phone-locked-action
- Repository: https://github.com/dimonchik-com/react-native-phone-locked-action
- npm.io page: https://npm.io/package/react-native-phone-locked-action

## Recent versions

- 1.0.2 (latest) — 2019-12-26
- 1.0.1 — 2019-12-26
- 1.0.0 — 2019-12-26

## README

# react-native-phone-locked-action

## Getting started
`yarn add react-native-phone-locked-action`

or

`$ npm install react-native-phone-locked-action --save`

## Usage
```javascript
import { NativeEventEmitter, NativeModules } from 'react-native';
import PhoneLocked from 'react-native-phone-locked-action';

const App: () => React$Node = () => {

  const eventEmitter = new NativeEventEmitter(NativeModules.PhoneLocked);

  eventEmitter.addListener('EventReminder', (res) => {
    console.log(res.action); // ACTION_USER_PRESENT || ACTION_SCREEN_OFF || ACTION_SCREEN_ON
  });

  return (
    <>

    </>
  );
};
```

---
_Source: https://npm.io/package/react-native-phone-locked-action · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
