react-native-biometric-verifier 0.0.9 → 0.0.10

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.9",
3
+ "version": "0.0.10",
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
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  import React, { useEffect, useRef } from 'react';
2
- import { Animated, ActivityIndicator, Easing } from 'react-native';
2
+ import { Animated, Easing } from 'react-native';
3
3
  import Icon from 'react-native-vector-icons/MaterialIcons';
4
4
  import { ANIMATION_STATES, COLORS } from '../utils/constants';
5
5
  import { styles } from './styles';
@@ -100,10 +100,7 @@ export const StateIndicator = ({ state, size = 100 }) => {
100
100
  {(state === ANIMATION_STATES.PROCESSING ||
101
101
  state === ANIMATION_STATES.FACE_SCAN ||
102
102
  state === ANIMATION_STATES.QR_SCAN) ? (
103
- <ActivityIndicator
104
- size="large"
105
- color={state === ANIMATION_STATES.PROCESSING ? COLORS.info : COLORS.primary}
106
- />
103
+ null
107
104
  ) : (
108
105
  getIcon()
109
106
  )}
package/src/index.js CHANGED
@@ -57,7 +57,6 @@ const BiometricVerificationModal = React.memo(
57
57
  const mountedRef = useRef(true);
58
58
  const responseRef = useRef(null);
59
59
  const processedRef = useRef(false);
60
- const lastDataRef = useRef(null);
61
60
 
62
61
  const safeCallback = useSafeCallback(callback, notifyMessage);
63
62
 
@@ -306,9 +305,8 @@ const BiometricVerificationModal = React.memo(
306
305
  }, [handleCountdownFinish, handleStartFaceScan, startCountdown]);
307
306
 
308
307
  useEffect(() => {
309
- if (data && data !== lastDataRef.current) {
308
+ if (data) {
310
309
  console.log("📥 New donor data received:", data);
311
- lastDataRef.current = data;
312
310
  setModalVisible(true);
313
311
  startProcess();
314
312
  }