yyppaag 6f4eb1c8bb Update RNIdlePackage.java | пре 3 година | |
---|---|---|
Demo | пре 7 година | |
android | пре 3 година | |
ios | пре 7 година | |
.gitignore | пре 7 година | |
.npmignore | пре 7 година | |
README.md | пре 7 година | |
index.js | пре 7 година | |
package.json | пре 7 година |
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()