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()
Prevent screen to sleep in ReactNative app.
npm install react-native-idle --save
react-native link react-native-idle
import RNIdle from 'react-native-idle'
RNIdle.disableIdleTimer()
RNIdle.enableIdleTimer()
npm i wfg-react-native-idle
1
1.1.0
ISC
78.7 kB
46