react-native-rectangle-doc-scanner 3.47.0 → 3.48.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.
@@ -121,12 +121,12 @@ const FullDocScanner = ({ onResult, onClose, detectionConfig, overlayColor = '#3
121
121
  croppedPath: document.croppedPath,
122
122
  initialPath: document.initialPath,
123
123
  });
124
- // Reset manual capture pending flag
124
+ const normalizedDoc = normalizeCapturedDocument(document);
125
+ // Reset manual capture pending flag BEFORE processing
125
126
  if (manualCapturePending.current) {
126
127
  console.log('[FullDocScanner] Resetting manualCapturePending');
127
128
  manualCapturePending.current = false;
128
129
  }
129
- const normalizedDoc = normalizeCapturedDocument(document);
130
130
  // If grid detected and cropped image exists, show it directly in check_DP
131
131
  if (normalizedDoc.croppedPath) {
132
132
  console.log('[FullDocScanner] Grid detected: using pre-cropped image', normalizedDoc.croppedPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "3.47.0",
3
+ "version": "3.48.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -165,14 +165,14 @@ export const FullDocScanner: React.FC<FullDocScannerProps> = ({
165
165
  initialPath: document.initialPath,
166
166
  });
167
167
 
168
- // Reset manual capture pending flag
168
+ const normalizedDoc = normalizeCapturedDocument(document);
169
+
170
+ // Reset manual capture pending flag BEFORE processing
169
171
  if (manualCapturePending.current) {
170
172
  console.log('[FullDocScanner] Resetting manualCapturePending');
171
173
  manualCapturePending.current = false;
172
174
  }
173
175
 
174
- const normalizedDoc = normalizeCapturedDocument(document);
175
-
176
176
  // If grid detected and cropped image exists, show it directly in check_DP
177
177
  if (normalizedDoc.croppedPath) {
178
178
  console.log('[FullDocScanner] Grid detected: using pre-cropped image', normalizedDoc.croppedPath);