Commit 2bb0bec9 authored by cyqresig's avatar cyqresig

added setClipsToBounds -> YES for BarCodeView,

removed unnecessary Log codes
parent 1e72f2f5
...@@ -41,6 +41,7 @@ RCT_CUSTOM_VIEW_PROPERTY(barCodeTypes, NSArray, RCTBarcode) { ...@@ -41,6 +41,7 @@ RCT_CUSTOM_VIEW_PROPERTY(barCodeTypes, NSArray, RCTBarcode) {
if(!self.barcode){ if(!self.barcode){
self.barcode = [[RCTBarcode alloc] initWithManager:self]; self.barcode = [[RCTBarcode alloc] initWithManager:self];
[self.barcode setClipsToBounds:YES];
} }
SystemSoundID beep_sound_id; SystemSoundID beep_sound_id;
...@@ -62,7 +63,7 @@ RCT_CUSTOM_VIEW_PROPERTY(barCodeTypes, NSArray, RCTBarcode) { ...@@ -62,7 +63,7 @@ RCT_CUSTOM_VIEW_PROPERTY(barCodeTypes, NSArray, RCTBarcode) {
- (void)initializeCaptureSessionInput:(NSString *)type { - (void)initializeCaptureSessionInput:(NSString *)type {
NSLog(@"initializeCaptureSessionInput..."); // NSLog(@"initializeCaptureSessionInput...");
dispatch_async(self.sessionQueue, ^{ dispatch_async(self.sessionQueue, ^{
...@@ -88,7 +89,7 @@ RCT_CUSTOM_VIEW_PROPERTY(barCodeTypes, NSArray, RCTBarcode) { ...@@ -88,7 +89,7 @@ RCT_CUSTOM_VIEW_PROPERTY(barCodeTypes, NSArray, RCTBarcode) {
if ([self.session canAddInput:captureDeviceInput]) { if ([self.session canAddInput:captureDeviceInput]) {
NSLog(@"self.session canAddInput:captureDeviceInput..."); // NSLog(@"self.session canAddInput:captureDeviceInput...");
[self.session addInput:captureDeviceInput]; [self.session addInput:captureDeviceInput];
...@@ -114,7 +115,7 @@ RCT_EXPORT_METHOD(startSession) { ...@@ -114,7 +115,7 @@ RCT_EXPORT_METHOD(startSession) {
if(self.metadataOutput == nil) { if(self.metadataOutput == nil) {
NSLog(@"self.metadataOutput = %@", self.metadataOutput); // NSLog(@"self.metadataOutput = %@", self.metadataOutput);
AVCaptureMetadataOutput *metadataOutput = [[AVCaptureMetadataOutput alloc] init]; AVCaptureMetadataOutput *metadataOutput = [[AVCaptureMetadataOutput alloc] init];
self.metadataOutput = metadataOutput; self.metadataOutput = metadataOutput;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment