react-native-rectangle-doc-scanner 3.33.0 → 3.34.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.
@@ -183,9 +183,9 @@ const FullDocScanner = ({ onResult, onClose, detectionConfig, overlayColor = '#3
183
183
  if (processingCaptureRef.current) {
184
184
  return;
185
185
  }
186
- const isManualCapture = manualCapture || manualCapturePending.current || document.origin === 'manual';
187
186
  const normalizedDoc = normalizeCapturedDocument(document);
188
- if (isManualCapture) {
187
+ const wantsManualFlow = manualCapture || manualCapturePending.current || document.origin === 'manual';
188
+ if (wantsManualFlow) {
189
189
  manualCapturePending.current = false;
190
190
  processingCaptureRef.current = false;
191
191
  cropInitializedRef.current = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "3.33.0",
3
+ "version": "3.34.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -299,12 +299,11 @@ export const FullDocScanner: React.FC<FullDocScannerProps> = ({
299
299
  return;
300
300
  }
301
301
 
302
- const isManualCapture =
303
- manualCapture || manualCapturePending.current || document.origin === 'manual';
304
-
305
302
  const normalizedDoc = normalizeCapturedDocument(document);
303
+ const wantsManualFlow =
304
+ manualCapture || manualCapturePending.current || document.origin === 'manual';
306
305
 
307
- if (isManualCapture) {
306
+ if (wantsManualFlow) {
308
307
  manualCapturePending.current = false;
309
308
  processingCaptureRef.current = false;
310
309
  cropInitializedRef.current = false;