@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
- // Prefer wide-angle (main) camera some Android devices default to
58
- // macro/depth sensors that have fixed focus and produce blurry images.
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', 'ultra-wide-angle-camera', 'telephoto-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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexar/biometric-identity-sdk-react-native",
3
- "version": "1.19.0",
3
+ "version": "1.20.0",
4
4
  "description": "React Native wrapper for Biometric Identity SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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
- // Prefer wide-angle (main) camera some Android devices default to
50
- // macro/depth sensors that have fixed focus and produce blurry images.
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', 'ultra-wide-angle-camera', 'telephoto-camera'],
52
+ physicalDevices: ['wide-angle-camera'],
53
53
  });
54
54
  const [deviceReady, setDeviceReady] = useState(!!device);
55
55