We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7464cd commit 2bf23e0Copy full SHA for 2bf23e0
index.js
@@ -8,6 +8,7 @@ const JVerificationModule = NativeModules.JVerificationModule;
8
9
const listeners = {};
10
const LoginEvent = 'LoginEvent'; //登录事件
11
+const UnCheckBox = 'UncheckBoxCallBack'; //iOS 未选中隐私协议CheckBox,点击登录按钮的回调事件
12
13
export default class JVerification {
14
@@ -238,6 +239,13 @@ export default class JVerification {
238
239
});
240
}
241
242
+ static addUncheckBoxEventListener(callback) {
243
+ listeners[callback] = DeviceEventEmitter.addListener(
244
+ UnCheckBox, result => {
245
+ callback(result);
246
+ });
247
+ }
248
+
249
//移除事件
250
static removeListener(callback) {
251
if (!listeners[callback]) {
0 commit comments