wusuopu 6adee4f6b7 upgrade to RN 0.38 | 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()