File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed
Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change 33#import " DocumentScannerView.h"
44
55@interface RNPdfScannerManager ()
6- @property (strong , nonatomic ) DocumentScannerView *scannerView;
76@end
87
98@implementation RNPdfScannerManager
@@ -18,7 +17,6 @@ - (dispatch_queue_t)methodQueue
1817RCT_EXPORT_VIEW_PROPERTY(onPictureTaken, RCTBubblingEventBlock)
1918RCT_EXPORT_VIEW_PROPERTY(onRectangleDetect, RCTBubblingEventBlock)
2019
21-
2220RCT_EXPORT_VIEW_PROPERTY(overlayColor, UIColor)
2321RCT_EXPORT_VIEW_PROPERTY(enableTorch, BOOL )
2422RCT_EXPORT_VIEW_PROPERTY(useFrontCam, BOOL )
@@ -33,14 +31,8 @@ - (dispatch_queue_t)methodQueue
3331RCT_EXPORT_VIEW_PROPERTY(brightness, float )
3432RCT_EXPORT_VIEW_PROPERTY(contrast, float )
3533
36- RCT_EXPORT_METHOD(capture) {
37-
38- [_scannerView capture ];
39- }
40-
4134- (UIView*) view {
42- _scannerView = [[DocumentScannerView alloc ] init ];
43- return _scannerView;
35+ return [DocumentScannerView new ];
4436}
4537
4638@end
Original file line number Diff line number Diff line change @@ -92,10 +92,6 @@ class PdfScanner extends React.Component<PdfScannerProps> {
9292 }
9393 }
9494
95- capture ( ) {
96- CameraManager . capture ( )
97- }
98-
9995 render ( ) {
10096 return (
10197 < RNPdfScanner
@@ -108,6 +104,7 @@ class PdfScanner extends React.Component<PdfScannerProps> {
108104 contrast = { this . props . contrast || 1 }
109105 quality = { this . getImageQuality ( ) }
110106 detectionCountBeforeCapture = { this . props . detectionCountBeforeCapture || 5 }
107+ durationBetweenCaptures = { this . props . durationBetweenCaptures || 0 }
111108 detectionRefreshRateInMS = { this . props . detectionRefreshRateInMS || 50 }
112109 />
113110 )
You can’t perform that action at this time.
0 commit comments