react-native-rectangle-doc-scanner 3.127.0 → 3.128.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.
@@ -574,7 +574,12 @@ const FullDocScanner = ({ onResult, onClose, detectionConfig, overlayColor = '#3
574
574
  styles.previewImage,
575
575
  { transform: [{ rotate: `${rotationDegrees}deg` }] }
576
576
  ], resizeMode: "contain" })) : null,
577
- croppedImageData.enhanced ? (react_1.default.createElement(react_native_1.View, { style: styles.originalToggleContainer },
577
+ croppedImageData.enhanced ? (react_1.default.createElement(react_native_1.View, { style: [
578
+ styles.originalToggleContainer,
579
+ isBusinessMode &&
580
+ capturedPhotos.length === 0 &&
581
+ styles.originalToggleContainerAboveCapture,
582
+ ] },
578
583
  react_1.default.createElement(react_native_1.TouchableOpacity, { style: [
579
584
  styles.originalToggleButton,
580
585
  croppedImageData.useOriginal
@@ -810,6 +815,15 @@ const styles = react_native_1.StyleSheet.create({
810
815
  marginTop: 16,
811
816
  marginBottom: 20,
812
817
  },
818
+ originalToggleContainerAboveCapture: {
819
+ position: 'absolute',
820
+ bottom: 210,
821
+ left: 0,
822
+ right: 0,
823
+ zIndex: 16,
824
+ marginTop: 0,
825
+ marginBottom: 0,
826
+ },
813
827
  originalToggleButtonActive: {
814
828
  backgroundColor: '#3170f3',
815
829
  borderColor: '#3170f3',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rectangle-doc-scanner",
3
- "version": "3.127.0",
3
+ "version": "3.128.0",
4
4
  "description": "Native-backed document scanner for React Native with customizable overlays.",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -834,7 +834,14 @@ export const FullDocScanner: React.FC<FullDocScannerProps> = ({
834
834
  />
835
835
  ) : null}
836
836
  {croppedImageData.enhanced ? (
837
- <View style={styles.originalToggleContainer}>
837
+ <View
838
+ style={[
839
+ styles.originalToggleContainer,
840
+ isBusinessMode &&
841
+ capturedPhotos.length === 0 &&
842
+ styles.originalToggleContainerAboveCapture,
843
+ ]}
844
+ >
838
845
  <TouchableOpacity
839
846
  style={[
840
847
  styles.originalToggleButton,
@@ -1180,6 +1187,15 @@ const styles = StyleSheet.create({
1180
1187
  marginTop: 16,
1181
1188
  marginBottom: 20,
1182
1189
  },
1190
+ originalToggleContainerAboveCapture: {
1191
+ position: 'absolute',
1192
+ bottom: 210,
1193
+ left: 0,
1194
+ right: 0,
1195
+ zIndex: 16,
1196
+ marginTop: 0,
1197
+ marginBottom: 0,
1198
+ },
1183
1199
  originalToggleButtonActive: {
1184
1200
  backgroundColor: '#3170f3',
1185
1201
  borderColor: '#3170f3',