react-native-rectangle-doc-scanner 3.62.0 → 3.63.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.
@@ -240,9 +240,9 @@ exports.DocScanner = (0, react_1.forwardRef)(({ onCapture, overlayColor = DEFAUL
240
240
  }), [capture]);
241
241
  const overlayPolygon = detectedRectangle?.rectangleOnScreen ?? detectedRectangle?.rectangleCoordinates ?? null;
242
242
  const overlayIsActive = autoCapture ? isAutoCapturing : (detectedRectangle?.stableCounter ?? 0) > 0;
243
- const detectionThreshold = autoCapture ? minStableFrames : 9999;
243
+ const detectionThreshold = autoCapture ? minStableFrames : 99999;
244
244
  return (react_1.default.createElement(react_native_1.View, { style: styles.container },
245
- react_1.default.createElement(react_native_document_scanner_1.default, { ref: scannerRef, style: styles.scanner, detectionCountBeforeCapture: detectionThreshold, overlayColor: overlayColor, enableTorch: enableTorch, quality: normalizedQuality, useBase64: useBase64, manualOnly: !autoCapture, detectionConfig: detectionConfig, onPictureTaken: handlePictureTaken, onError: handleError, onRectangleDetect: handleRectangleDetect }),
245
+ react_1.default.createElement(react_native_document_scanner_1.default, { ref: scannerRef, style: styles.scanner, detectionCountBeforeCapture: detectionThreshold, overlayColor: overlayColor, enableTorch: enableTorch, quality: normalizedQuality, useBase64: useBase64, manualOnly: false, detectionConfig: detectionConfig, onPictureTaken: handlePictureTaken, onError: handleError, onRectangleDetect: handleRectangleDetect }),
246
246
  showGrid && overlayPolygon && (react_1.default.createElement(overlay_1.ScannerOverlay, { active: overlayIsActive, color: gridColor ?? overlayColor, lineWidth: gridLineWidth, polygon: overlayPolygon })),
247
247
  showManualCaptureButton && (react_1.default.createElement(react_native_1.TouchableOpacity, { style: styles.button, onPress: handleManualCapture })),
248
248
  children));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "3.62.0",
3
+ "version": "3.63.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -332,7 +332,7 @@ export const DocScanner = forwardRef<DocScannerHandle, Props>(
332
332
  const overlayPolygon = detectedRectangle?.rectangleOnScreen ?? detectedRectangle?.rectangleCoordinates ?? null;
333
333
  const overlayIsActive = autoCapture ? isAutoCapturing : (detectedRectangle?.stableCounter ?? 0) > 0;
334
334
 
335
- const detectionThreshold = autoCapture ? minStableFrames : 9999;
335
+ const detectionThreshold = autoCapture ? minStableFrames : 99999;
336
336
 
337
337
  return (
338
338
  <View style={styles.container}>
@@ -344,7 +344,7 @@ export const DocScanner = forwardRef<DocScannerHandle, Props>(
344
344
  enableTorch={enableTorch}
345
345
  quality={normalizedQuality}
346
346
  useBase64={useBase64}
347
- manualOnly={!autoCapture}
347
+ manualOnly={false}
348
348
  detectionConfig={detectionConfig}
349
349
  onPictureTaken={handlePictureTaken}
350
350
  onError={handleError}