Skip to content

Commit 82bd09c

Browse files
authored
Update README.md
1 parent e6b4135 commit 82bd09c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@ react-native link react-native-alive-view
2929
```js
3030
const NTESRNLiveDetectView = requireNativeComponent('RNAliveView');
3131
```
32+
回调
33+
onActionChange: (e: {nativeEvent: {actions: string}}) => void;
34+
onWarnChange: (e: {nativeEvent: {message?: string}}) => void;
35+
onStepChange: (e: {
36+
nativeEvent: {message?: string; currentStep: number};
37+
}) => void;
38+
onResultChange: (e: {
39+
nativeEvent: {message?: string; token?: string};
40+
}) => void;
41+
3242
### 活体检测操作
3343

3444
```js
@@ -43,11 +53,6 @@ import {NativeModules} from 'react-native';
4353
*方法描述:*
4454
开始活体检测
4555

46-
*参数说明:*
47-
```
48-
businessId: '从易盾申请的id',
49-
callback -- 初始化结果回调
50-
5156
### stopAlive()
5257
*方法描述:*
5358
关闭活体检测

0 commit comments

Comments
 (0)