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 +1 -1
- package/src/components/StateIndicator.js +2 -5
- package/src/index.js +1 -3
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
|
-
import { Animated,
|
|
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
|
-
|
|
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
|
|
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
|
}
|