Skip to content

Commit 056265b

Browse files
authored
Update README.md
1 parent d65de3d commit 056265b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ npm install react-native-alive-view
4141
## 引入
4242
### 活体view
4343
```js
44+
import {requireNativeComponent} from 'react-native'
4445
const NTESRNLiveDetectView = requireNativeComponent('NTESRNLiveDetect');
4546
```
4647
回调
@@ -61,7 +62,10 @@ onStepChange: (e: {
6162
import {NativeModules} from 'react-native';
6263
```
6364

64-
然后就可以使用原生模块NativeModules获取易盾活体检测RN对象NativeModules.AliveHelper
65+
然后就可以使用原生模块NativeModules获取易盾活体检测RN对象
66+
```js
67+
const AliveHelper = NativeModules.AliveHelper;
68+
```
6569

6670
## 活体检测API说明
6771

0 commit comments

Comments
 (0)