Browse Source

add README.md

wusuopu 7 years ago
parent
commit
7104c18fb0
1 changed files with 19 additions and 0 deletions
  1. 19
    0
      README.md

+ 19
- 0
README.md View File

@@ -0,0 +1,19 @@
1
+# react-native-idle
2
+Prevent screen to sleep in ReactNative app.
3
+
4
+## Install
5
+
6
+```
7
+npm install react-native-idle --save
8
+react-native link react-native-idle
9
+```
10
+
11
+
12
+## Usage 
13
+
14
+```
15
+import RNIdle from 'react-native-idle'
16
+
17
+RNIdle.disableIdleTimer()
18
+RNIdle.enableIdleTimer()
19
+```