...
|
...
|
@@ -271,6 +271,10 @@ RCT_CUSTOM_VIEW_PROPERTY(captureAudio, BOOL, RCTCamera) { |
|
|
}
|
|
|
}
|
|
|
|
|
|
RCT_CUSTOM_VIEW_PROPERTY(rectOfCameraInterest, CGRect, RCTCamera) {
|
|
|
self.rectOfCameraInterest = [RCTConvert CGRect:json];
|
|
|
}
|
|
|
|
|
|
- (NSArray *)customDirectEventTypes
|
|
|
{
|
|
|
return @[
|
...
|
...
|
@@ -416,6 +420,7 @@ RCT_EXPORT_METHOD(hasFlash:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRej |
|
|
[metadataOutput setMetadataObjectsDelegate:self queue:self.sessionQueue];
|
|
|
[self.session addOutput:metadataOutput];
|
|
|
[metadataOutput setMetadataObjectTypes:self.barCodeTypes];
|
|
|
metadataOutput.rectOfInterest = self.rectOfCameraInterest;
|
|
|
self.metadataOutput = metadataOutput;
|
|
|
}
|
|
|
|
...
|
...
|
|