react-native-rectangle-doc-scanner 3.55.0 → 3.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "3.55.0",
3
+ "version": "3.56.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -11,6 +11,7 @@
11
11
  @property (nonatomic, assign) BOOL useBase64;
12
12
  @property (nonatomic, assign) BOOL captureMultiple;
13
13
  @property (nonatomic, assign) BOOL saveInAppDocument;
14
+ @property (nonatomic, assign) BOOL manualOnly;
14
15
 
15
16
  - (void) capture;
16
17
 
@@ -78,6 +78,10 @@
78
78
 
79
79
  _lastDetectionType = type;
80
80
 
81
+ if (self.manualOnly) {
82
+ return;
83
+ }
84
+
81
85
  if (self.stableCounter >= self.detectionCountBeforeCapture){
82
86
  NSLog(@"[DocumentScanner] Auto-capture triggered! stableCounter: %ld >= threshold: %ld", (long)self.stableCounter, (long)self.detectionCountBeforeCapture);
83
87
  self.stableCounter = 0; // Reset to prevent multiple captures
@@ -26,6 +26,7 @@ RCT_EXPORT_VIEW_PROPERTY(useFrontCam, BOOL)
26
26
  RCT_EXPORT_VIEW_PROPERTY(useBase64, BOOL)
27
27
  RCT_EXPORT_VIEW_PROPERTY(saveInAppDocument, BOOL)
28
28
  RCT_EXPORT_VIEW_PROPERTY(captureMultiple, BOOL)
29
+ RCT_EXPORT_VIEW_PROPERTY(manualOnly, BOOL)
29
30
  RCT_EXPORT_VIEW_PROPERTY(detectionCountBeforeCapture, NSInteger)
30
31
  RCT_EXPORT_VIEW_PROPERTY(detectionRefreshRateInMS, NSInteger)
31
32
  RCT_EXPORT_VIEW_PROPERTY(saturation, float)