react-native-idle

1.1.0 • Public • Published

react-native-idle

Prevent screen to sleep in ReactNative app.

Install

npm install react-native-idle --save
react-native link react-native-idle

Usage

import RNIdle from 'react-native-idle'

RNIdle.disableIdleTimer()
RNIdle.enableIdleTimer()

/react-native-idle/

    Package Sidebar

    Install

    npm i react-native-idle

    Weekly Downloads

    13

    Version

    1.1.0

    License

    ISC

    Last publish

    Collaborators

    • wusuopu