react-native-biometric-verifier 0.0.55 → 0.0.56

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-biometric-verifier",
3
- "version": "0.0.55",
3
+ "version": "0.0.56",
4
4
  "description": "A React Native module for biometric verification with face recognition and QR code scanning",
5
5
  "main": "src/index.js",
6
6
  "private": false,
@@ -24,7 +24,7 @@ const CaptureImageWithoutEdit = React.memo(
24
24
  showCodeScanner = false,
25
25
  isLoading = false,
26
26
  frameProcessorFps = 1,
27
- livenessLevel = 0, // 0 = anti-spoof only, 1 = anti-spoof + blinking
27
+ livenessLevel = 0,
28
28
  antispooflevel,
29
29
  }) => {
30
30
  const cameraRef = useRef(null);
@@ -119,7 +119,6 @@ const CaptureImageWithoutEdit = React.memo(
119
119
  );
120
120
 
121
121
  const onFacesUpdate = useCallback((payload) => {
122
- console.log('qqqqqq',JSON.stringify(payload))
123
122
  if (!isMounted.current) return;
124
123
  try {
125
124
  const { count, progress, antiSpoofState } = payload;
@@ -289,10 +288,6 @@ const CaptureImageWithoutEdit = React.memo(
289
288
  }
290
289
  }, [cameraType, currentCameraType, initializeCamera]);
291
290
 
292
- const format = useCameraFormat(cameraDevice, [
293
- { fps: 30 },
294
- ]);
295
-
296
291
  useEffect(() => {
297
292
  try {
298
293
  updateShowCodeScanner(!!showCodeScanner);
@@ -435,13 +430,9 @@ const CaptureImageWithoutEdit = React.memo(
435
430
  device={cameraDevice}
436
431
  isActive={showCamera && !isLoading}
437
432
  photo={true}
438
- format={format}
439
- codeScanner={showCodeScanner ? codeScanner : undefined}
433
+ codeScanner={showCodeScanner && cameraInitialized ? codeScanner : undefined}
440
434
  enableZoomGesture={false}
441
- lowLightBoost={cameraDevice.supportsLowLightBoost}
442
- frameProcessor={
443
- !showCodeScanner && cameraInitialized ? frameProcessor : undefined
444
- }
435
+ frameProcessor={!showCodeScanner && cameraInitialized ? frameProcessor : undefined}
445
436
  frameProcessorFps={frameProcessorFps}
446
437
  onInitialized={() => {
447
438
  setCameraInitialized(true);
@@ -449,7 +440,6 @@ const CaptureImageWithoutEdit = React.memo(
449
440
  onError={(error) => {
450
441
  console.error('Camera error:', error);
451
442
  }}
452
- exposure={0}
453
443
  pixelFormat="yuv"
454
444
  preset="medium"
455
445
  orientation="portrait"