Nav apraksta
wusuopu 7104c18fb0 add README.md 8 gadus atpakaļ
Demo update demo 8 gadus atpakaļ
android update demo 8 gadus atpakaļ
ios add Demo 8 gadus atpakaļ
.gitignore create project 8 gadus atpakaļ
.npmignore add Demo 8 gadus atpakaļ
README.md add README.md 8 gadus atpakaļ
index.js create project 8 gadus atpakaļ
package.json create project 8 gadus atpakaļ

README.md

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()