@hexar/biometric-identity-sdk-react-native 1.19.0 → 1.20.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.
|
@@ -54,10 +54,10 @@ const CameraCapture = ({ mode, theme, language, onCapture, onCancel, }) => {
|
|
|
54
54
|
}
|
|
55
55
|
const strings = (0, biometric_identity_sdk_core_1.getStrings)();
|
|
56
56
|
// Get camera device (back camera for document capture).
|
|
57
|
-
//
|
|
58
|
-
//
|
|
57
|
+
// Only request wide-angle — telephoto/ultra-wide open multi-sensor sessions
|
|
58
|
+
// that are slow to release, blocking the front camera in the next step.
|
|
59
59
|
const device = (0, react_native_vision_camera_1.useCameraDevice)('back', {
|
|
60
|
-
physicalDevices: ['wide-angle-camera'
|
|
60
|
+
physicalDevices: ['wide-angle-camera'],
|
|
61
61
|
});
|
|
62
62
|
const [deviceReady, setDeviceReady] = (0, react_1.useState)(!!device);
|
|
63
63
|
(0, react_1.useEffect)(() => {
|
package/package.json
CHANGED
|
@@ -46,10 +46,10 @@ export const CameraCapture: React.FC<CameraCaptureProps> = ({
|
|
|
46
46
|
const strings = getStrings();
|
|
47
47
|
|
|
48
48
|
// Get camera device (back camera for document capture).
|
|
49
|
-
//
|
|
50
|
-
//
|
|
49
|
+
// Only request wide-angle — telephoto/ultra-wide open multi-sensor sessions
|
|
50
|
+
// that are slow to release, blocking the front camera in the next step.
|
|
51
51
|
const device = useCameraDevice('back', {
|
|
52
|
-
physicalDevices: ['wide-angle-camera'
|
|
52
|
+
physicalDevices: ['wide-angle-camera'],
|
|
53
53
|
});
|
|
54
54
|
const [deviceReady, setDeviceReady] = useState(!!device);
|
|
55
55
|
|