瀏覽代碼

add README.md

wusuopu 8 年之前
父節點
當前提交
7104c18fb0
共有 1 個檔案被更改,包括 19 行新增0 行删除
  1. 19
    0
      README.md

+ 19
- 0
README.md 查看文件

@@ -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
+```