react-native-rectangle-doc-scanner 4.0.0 → 4.1.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/dist/FullDocScanner.js +1 -1
- package/package.json +1 -1
- package/src/FullDocScanner.tsx +1 -1
package/dist/FullDocScanner.js
CHANGED
|
@@ -527,7 +527,7 @@ const FullDocScanner = ({ onResult, onClose, detectionConfig, overlayColor = '#3
|
|
|
527
527
|
const stableCounter = event.stableCounter ?? 0;
|
|
528
528
|
const rectangleCoordinates = event.rectangleOnScreen ?? event.rectangleCoordinates;
|
|
529
529
|
const hasRectangle = Boolean(rectangleCoordinates);
|
|
530
|
-
const captureReady = hasRectangle && event.lastDetectionType === 0 && stableCounter >= 1;
|
|
530
|
+
const captureReady = hasRectangle && (react_native_1.Platform.OS === 'android' || (event.lastDetectionType === 0 && stableCounter >= 1));
|
|
531
531
|
const scheduleClear = (ref, clearFn) => {
|
|
532
532
|
if (ref.current) {
|
|
533
533
|
clearTimeout(ref.current);
|
package/package.json
CHANGED
package/src/FullDocScanner.tsx
CHANGED
|
@@ -718,7 +718,7 @@ export const FullDocScanner: React.FC<FullDocScannerProps> = ({
|
|
|
718
718
|
const stableCounter = event.stableCounter ?? 0;
|
|
719
719
|
const rectangleCoordinates = event.rectangleOnScreen ?? event.rectangleCoordinates;
|
|
720
720
|
const hasRectangle = Boolean(rectangleCoordinates);
|
|
721
|
-
const captureReady = hasRectangle && event.lastDetectionType === 0 && stableCounter >= 1;
|
|
721
|
+
const captureReady = hasRectangle && (Platform.OS === 'android' || (event.lastDetectionType === 0 && stableCounter >= 1));
|
|
722
722
|
|
|
723
723
|
const scheduleClear = (
|
|
724
724
|
ref: React.MutableRefObject<ReturnType<typeof setTimeout> | null>,
|