wusuopu 7104c18fb0 add README.md | пре 7 година | |
---|---|---|
Demo | пре 7 година | |
android | пре 7 година | |
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()