react-native-rectangle-doc-scanner 3.125.0 → 3.126.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 +6 -6
- package/package.json +1 -1
- package/src/FullDocScanner.tsx +22 -23
package/dist/FullDocScanner.js
CHANGED
|
@@ -568,6 +568,12 @@ const FullDocScanner = ({ onResult, onClose, detectionConfig, overlayColor = '#3
|
|
|
568
568
|
react_1.default.createElement(react_native_1.TouchableOpacity, { style: styles.rotateButtonTop, onPress: () => handleRotateImage(90), accessibilityLabel: "\uC624\uB978\uCABD\uC73C\uB85C 90\uB3C4 \uD68C\uC804", accessibilityRole: "button" },
|
|
569
569
|
react_1.default.createElement(react_native_1.Text, { style: styles.rotateIconText }, "\u21BB"),
|
|
570
570
|
react_1.default.createElement(react_native_1.Text, { style: styles.rotateButtonLabel }, "\uC6B0\uB85C 90\u00B0")))) : null,
|
|
571
|
+
isBusinessMode && capturedPhotos.length === 0 && (react_1.default.createElement(react_native_1.TouchableOpacity, { style: styles.captureBackButton, onPress: handleCaptureSecondPhoto, accessibilityLabel: mergedStrings.secondBtn, accessibilityRole: "button" },
|
|
572
|
+
react_1.default.createElement(react_native_1.Text, { style: styles.captureBackButtonText }, mergedStrings.secondBtn))),
|
|
573
|
+
activePreviewImage ? (react_1.default.createElement(react_native_1.Image, { source: { uri: activePreviewImage.path }, style: [
|
|
574
|
+
styles.previewImage,
|
|
575
|
+
{ transform: [{ rotate: `${rotationDegrees}deg` }] }
|
|
576
|
+
], resizeMode: "contain" })) : null,
|
|
571
577
|
croppedImageData.enhanced ? (react_1.default.createElement(react_native_1.TouchableOpacity, { style: [
|
|
572
578
|
styles.originalToggleButton,
|
|
573
579
|
croppedImageData.useOriginal
|
|
@@ -580,12 +586,6 @@ const FullDocScanner = ({ onResult, onClose, detectionConfig, overlayColor = '#3
|
|
|
580
586
|
? styles.originalToggleButtonTextActive
|
|
581
587
|
: styles.originalToggleButtonTextInactive,
|
|
582
588
|
] }, mergedStrings.originalBtn))) : null,
|
|
583
|
-
isBusinessMode && capturedPhotos.length === 0 && (react_1.default.createElement(react_native_1.TouchableOpacity, { style: styles.captureBackButton, onPress: handleCaptureSecondPhoto, accessibilityLabel: mergedStrings.secondBtn, accessibilityRole: "button" },
|
|
584
|
-
react_1.default.createElement(react_native_1.Text, { style: styles.captureBackButtonText }, mergedStrings.secondBtn))),
|
|
585
|
-
activePreviewImage ? (react_1.default.createElement(react_native_1.Image, { source: { uri: activePreviewImage.path }, style: [
|
|
586
|
-
styles.previewImage,
|
|
587
|
-
{ transform: [{ rotate: `${rotationDegrees}deg` }] }
|
|
588
|
-
], resizeMode: "contain" })) : null,
|
|
589
589
|
react_1.default.createElement(react_native_1.View, { style: styles.confirmationButtons },
|
|
590
590
|
react_1.default.createElement(react_native_1.TouchableOpacity, { style: [styles.confirmButton, styles.retakeButton], onPress: handleRetake, accessibilityLabel: mergedStrings.retake, accessibilityRole: "button" },
|
|
591
591
|
react_1.default.createElement(react_native_1.Text, { style: styles.confirmButtonText }, mergedStrings.retake)),
|
package/package.json
CHANGED
package/src/FullDocScanner.tsx
CHANGED
|
@@ -811,6 +811,28 @@ export const FullDocScanner: React.FC<FullDocScannerProps> = ({
|
|
|
811
811
|
</View>
|
|
812
812
|
) : null}
|
|
813
813
|
|
|
814
|
+
{/* 뒷면 촬영 버튼 - 상단에 표시 (Business 모드이고 첫 번째 사진일 때만) */}
|
|
815
|
+
{isBusinessMode && capturedPhotos.length === 0 && (
|
|
816
|
+
<TouchableOpacity
|
|
817
|
+
style={styles.captureBackButton}
|
|
818
|
+
onPress={handleCaptureSecondPhoto}
|
|
819
|
+
accessibilityLabel={mergedStrings.secondBtn}
|
|
820
|
+
accessibilityRole="button"
|
|
821
|
+
>
|
|
822
|
+
<Text style={styles.captureBackButtonText}>{mergedStrings.secondBtn}</Text>
|
|
823
|
+
</TouchableOpacity>
|
|
824
|
+
)}
|
|
825
|
+
|
|
826
|
+
{activePreviewImage ? (
|
|
827
|
+
<Image
|
|
828
|
+
source={{ uri: activePreviewImage.path }}
|
|
829
|
+
style={[
|
|
830
|
+
styles.previewImage,
|
|
831
|
+
{ transform: [{ rotate: `${rotationDegrees}deg` }] }
|
|
832
|
+
]}
|
|
833
|
+
resizeMode="contain"
|
|
834
|
+
/>
|
|
835
|
+
) : null}
|
|
814
836
|
{croppedImageData.enhanced ? (
|
|
815
837
|
<TouchableOpacity
|
|
816
838
|
style={[
|
|
@@ -839,29 +861,6 @@ export const FullDocScanner: React.FC<FullDocScannerProps> = ({
|
|
|
839
861
|
</Text>
|
|
840
862
|
</TouchableOpacity>
|
|
841
863
|
) : null}
|
|
842
|
-
|
|
843
|
-
{/* 뒷면 촬영 버튼 - 상단에 표시 (Business 모드이고 첫 번째 사진일 때만) */}
|
|
844
|
-
{isBusinessMode && capturedPhotos.length === 0 && (
|
|
845
|
-
<TouchableOpacity
|
|
846
|
-
style={styles.captureBackButton}
|
|
847
|
-
onPress={handleCaptureSecondPhoto}
|
|
848
|
-
accessibilityLabel={mergedStrings.secondBtn}
|
|
849
|
-
accessibilityRole="button"
|
|
850
|
-
>
|
|
851
|
-
<Text style={styles.captureBackButtonText}>{mergedStrings.secondBtn}</Text>
|
|
852
|
-
</TouchableOpacity>
|
|
853
|
-
)}
|
|
854
|
-
|
|
855
|
-
{activePreviewImage ? (
|
|
856
|
-
<Image
|
|
857
|
-
source={{ uri: activePreviewImage.path }}
|
|
858
|
-
style={[
|
|
859
|
-
styles.previewImage,
|
|
860
|
-
{ transform: [{ rotate: `${rotationDegrees}deg` }] }
|
|
861
|
-
]}
|
|
862
|
-
resizeMode="contain"
|
|
863
|
-
/>
|
|
864
|
-
) : null}
|
|
865
864
|
<View style={styles.confirmationButtons}>
|
|
866
865
|
<TouchableOpacity
|
|
867
866
|
style={[styles.confirmButton, styles.retakeButton]}
|