wusuopu ef94807f5e remove unused files | 8 years ago | |
---|---|---|
Demo | 8 years ago | |
android | 8 years ago | |
ios | 8 years ago | |
.gitignore | 8 years ago | |
.npmignore | 8 years ago | |
README.md | 8 years ago | |
index.js | 8 years ago | |
package.json | 8 years ago |
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()