react-native-biometric-verifier 0.0.19 → 0.0.20

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/src/index.js CHANGED
@@ -40,7 +40,7 @@ import CaptureImageWithoutEdit from "./components/CaptureImageWithoutEdit";
40
40
  import StepIndicator from "./components/StepIndicator";
41
41
 
42
42
  const BiometricModal = React.memo(
43
- ({ data, qrscan = false, callback, apiurl, onclose, frameProcessorFps }) => {
43
+ ({ data, qrscan = false, callback, apiurl, onclose, frameProcessorFps, livenessLevel }) => {
44
44
  const navigation = useNavigation();
45
45
 
46
46
  // Custom hooks
@@ -526,16 +526,6 @@ const BiometricModal = React.memo(
526
526
  setCameraType("back");
527
527
  }, [updateState]);
528
528
 
529
- // Toggle camera
530
- const toggleCamera = useCallback(() => {
531
- console.log("🔄 Toggling camera");
532
- setCameraType((prevType) => {
533
- const newType = prevType === "front" ? "back" : "front";
534
- console.log("📷 Switching to camera:", newType);
535
- return newType;
536
- });
537
- }, []);
538
-
539
529
  // Start the verification process
540
530
  const startProcess = useCallback(() => {
541
531
  console.log("🚀 Starting verification process");
@@ -583,11 +573,10 @@ const BiometricModal = React.memo(
583
573
  <CaptureImageWithoutEdit
584
574
  cameraType={cameraType}
585
575
  onCapture={handleImageCapture}
586
- onToggleCamera={toggleCamera}
587
576
  showCodeScanner={state.currentStep === "Location Verification"}
588
577
  isLoading={state.isLoading}
589
- currentStep={state.currentStep}
590
578
  frameProcessorFps={frameProcessorFps}
579
+ livenessLevel={livenessLevel}
591
580
  />
592
581
  </View>
593
582
  )}