File tree Expand file tree Collapse file tree 4 files changed +7
-1
lines changed
Expand file tree Collapse file tree 4 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ class YourComponent extends Component {
8585| contrast | ` 1 ` | ` float ` | Increase or decrease camera contrast. Normal as default |
8686| quality | ` 0.8 ` | ` float ` | Image compression. Reduces both image size and quality |
8787| useBase64 | ` false ` | ` bool ` | If base64 representation should be passed instead of image uri's |
88+ | captureMultiple | ` false ` | ` bool ` | Keeps the scanner on after a successful capture |
8889
8990## Manual capture
9091
Original file line number Diff line number Diff line change 99@property (assign , nonatomic ) NSInteger stableCounter;
1010@property (nonatomic , assign ) float quality;
1111@property (nonatomic , assign ) BOOL useBase64;
12+ @property (nonatomic , assign ) BOOL captureMultiple;
1213
1314- (void ) capture ;
1415
Original file line number Diff line number Diff line change @@ -76,7 +76,10 @@ - (void) capture {
7676 @" rectangleCoordinates" : rectangleCoordinates });
7777 }
7878 }
79- [self stop ];
79+
80+ if (!self.captureMultiple ) {
81+ [self stop ];
82+ }
8083 }];
8184
8285}
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ - (dispatch_queue_t)methodQueue
2323RCT_EXPORT_VIEW_PROPERTY(enableTorch, BOOL )
2424RCT_EXPORT_VIEW_PROPERTY(useFrontCam, BOOL )
2525RCT_EXPORT_VIEW_PROPERTY(useBase64, BOOL )
26+ RCT_EXPORT_VIEW_PROPERTY(captureMultiple, BOOL )
2627RCT_EXPORT_VIEW_PROPERTY(detectionCountBeforeCapture, NSInteger )
2728RCT_EXPORT_VIEW_PROPERTY(detectionRefreshRateInMS, NSInteger )
2829RCT_EXPORT_VIEW_PROPERTY(saturation, float )
You can’t perform that action at this time.
0 commit comments