Nav apraksta
yyppaag 6f4eb1c8bb
Update RNIdlePackage.java
4 gadus atpakaļ
Demo upgrade to RN 0.38 8 gadus atpakaļ
android Update RNIdlePackage.java 4 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 remove unused files 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()