@supportworks/multi-imagepicker 8.4.8 → 8.4.9
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/package.json +1 -1
- package/src/components/CameraModal.tsx +22 -19
package/package.json
CHANGED
|
@@ -852,25 +852,28 @@ const CameraModal: React.FC<CameraTestModalProps> = ({ onDone, onCancel, cameraR
|
|
|
852
852
|
onResponderTerminate={handlePinchEnd}
|
|
853
853
|
>
|
|
854
854
|
<Pressable style={styles.cameraTouchLayer} onPress={handleCameraPress}>
|
|
855
|
-
{
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
855
|
+
{/* Keep native preview views out of hit testing so this RN surface receives every finger. */}
|
|
856
|
+
<View pointerEvents="none" style={styles.camera} testID="camera-preview-display">
|
|
857
|
+
{testImageSource ? (
|
|
858
|
+
<View style={[styles.camera, { overflow: 'hidden' }]}>
|
|
859
|
+
<Image
|
|
860
|
+
source={testImageSource}
|
|
861
|
+
resizeMode="cover"
|
|
862
|
+
style={[StyleSheet.absoluteFillObject, { width: '100%', height: '100%', transform: [{ scale: currentZoom / 0.5 }, { scaleX: isFrontCamera ? -1 : 1 }] }]}
|
|
863
|
+
/>
|
|
864
|
+
</View>
|
|
865
|
+
) : <CameraView
|
|
866
|
+
ref={cameraRef}
|
|
867
|
+
isDepthEnabled={isDepthEnabled}
|
|
868
|
+
zoomLevel={formatZoomLabel(currentZoom)}
|
|
869
|
+
onStatusChange={handleStatusChange}
|
|
870
|
+
onCamerasAvailable={handleCamerasAvailable}
|
|
871
|
+
onPhotoCaptured={handlePhotoCaptured}
|
|
872
|
+
onCaptureStateChange={handleCaptureStateChange}
|
|
873
|
+
onError={handleCameraError}
|
|
874
|
+
style={styles.camera}
|
|
875
|
+
/>}
|
|
876
|
+
</View>
|
|
874
877
|
{focusPoint ? (
|
|
875
878
|
<Animated.View
|
|
876
879
|
style={[
|