@switchlabs/verify-ai-react-native 2.4.4 → 2.4.7

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.
@@ -1,7 +1,7 @@
1
1
  import { TelemetryReporter } from '../telemetry/TelemetryReporter';
2
2
  import { SDK_VERSION } from '../version';
3
3
  const DEFAULT_BASE_URL = 'https://verify.switchlabs.dev/api/v1';
4
- const DEFAULT_TIMEOUT = 30000;
4
+ const DEFAULT_TIMEOUT = 60000;
5
5
  const VEHICLE_TYPE_LABELS = {
6
6
  scooter: 'Scooter',
7
7
  'e-bike': 'E-Bike',
@@ -369,7 +369,7 @@ export function VerifyAIScanner({ onCapture, onResult, onError, overlay, style,
369
369
  return (_jsxs(View, { style: [styles.container, styles.permissionContainer, style], children: [_jsx(Text, { style: styles.permissionText, children: "Camera access is required for photo verification" }), _jsx(TouchableOpacity, { style: styles.permissionButton, onPress: requestPermission, children: _jsx(Text, { style: styles.permissionButtonText, children: "Grant Camera Access" }) })] }));
370
370
  }
371
371
  const showBottomCard = status === 'success' || status === 'error';
372
- return (_jsx(View, { style: [styles.container, style], children: _jsx(CameraView, { ref: cameraRef, style: styles.camera, facing: "back", enableTorch: !terminated && enableTorch, onCameraReady: onCameraReady, onMountError: onMountError, children: _jsxs(View, { style: styles.overlay, children: [overlay?.title && (_jsx(View, { style: [styles.topBar, isLandscape && styles.topBarLandscape], children: _jsx(Text, { style: styles.titleText, children: overlay.title }) })), overlay?.showGuideFrame && (_jsxs(View, { style: [styles.guideContainer, isLandscape && styles.guideContainerLandscape], children: [_jsxs(View, { style: [
372
+ return (_jsx(View, { style: [styles.container, style], children: _jsx(CameraView, { ref: cameraRef, style: styles.camera, facing: "back", enableTorch: !terminated && enableTorch, onCameraReady: onCameraReady, onMountError: onMountError, responsiveOrientationWhenOrientationLocked: true, children: _jsxs(View, { style: styles.overlay, children: [overlay?.title && (_jsx(View, { style: [styles.topBar, isLandscape && styles.topBarLandscape], children: _jsx(Text, { style: styles.titleText, children: overlay.title }) })), overlay?.showGuideFrame && (_jsxs(View, { style: [styles.guideContainer, isLandscape && styles.guideContainerLandscape], children: [_jsxs(View, { style: [
373
373
  styles.guideFrame,
374
374
  isLandscape && styles.guideFrameLandscape,
375
375
  overlay.guideFrameAspectRatio
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.4.4";
1
+ export declare const SDK_VERSION = "2.4.7";
package/lib/version.js CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = '2.4.4';
1
+ export const SDK_VERSION = '2.4.7';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@switchlabs/verify-ai-react-native",
3
- "version": "2.4.4",
3
+ "version": "2.4.7",
4
4
  "description": "React Native SDK for Verify AI - photo verification with AI vision processing",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -13,7 +13,7 @@ import { TelemetryReporter } from '../telemetry/TelemetryReporter';
13
13
  import { SDK_VERSION } from '../version';
14
14
 
15
15
  const DEFAULT_BASE_URL = 'https://verify.switchlabs.dev/api/v1';
16
- const DEFAULT_TIMEOUT = 30000;
16
+ const DEFAULT_TIMEOUT = 60000;
17
17
 
18
18
  const VEHICLE_TYPE_LABELS: Record<string, string> = {
19
19
  scooter: 'Scooter',
@@ -486,7 +486,16 @@ export function VerifyAIScanner({
486
486
 
487
487
  return (
488
488
  <View style={[styles.container, style]}>
489
- <CameraView key={cameraKey} ref={cameraRef} style={styles.camera} facing="back" enableTorch={!terminated && enableTorch} onCameraReady={onCameraReady} onMountError={onMountError}>
489
+ <CameraView
490
+ key={cameraKey}
491
+ ref={cameraRef}
492
+ style={styles.camera}
493
+ facing="back"
494
+ enableTorch={!terminated && enableTorch}
495
+ onCameraReady={onCameraReady}
496
+ onMountError={onMountError}
497
+ responsiveOrientationWhenOrientationLocked
498
+ >
490
499
  {/* Overlay */}
491
500
  <View style={styles.overlay}>
492
501
  {overlay?.title && (
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const SDK_VERSION = '2.4.4';
1
+ export const SDK_VERSION = '2.4.7';