...
|
...
|
@@ -23,9 +23,9 @@ RCT_EXPORT_METHOD(startScanQRCode) { |
|
|
avscanViewController.scanType = YHScanType_Express;
|
|
|
[avscanViewController.view setFrame:[[UIScreen mainScreen] bounds]];
|
|
|
avscanViewController.resultCallBack = ^(NSString *info) {
|
|
|
|
|
|
NSDictionary *dic = @{@"QRCode" : info};
|
|
|
[self.bridge.eventDispatcher sendAppEventWithName:@"scanQRComplete"
|
|
|
body:info];
|
|
|
body:dic];
|
|
|
};
|
|
|
|
|
|
AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
|
...
|
...
|
|