react-native-biometric-verifier 0.0.13 → 0.0.15

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,71 +0,0 @@
1
- // components/StepIcon.js
2
- import React from 'react';
3
- import { Animated } from 'react-native';
4
- import Icon from 'react-native-vector-icons/MaterialIcons';
5
- import { COLORS } from '../utils/constants';
6
-
7
- const StepIcon = ({
8
- currentStep,
9
- animationState,
10
- scaleAnim,
11
- opacityAnim
12
- }) => {
13
- // Get appropriate icon for current step
14
- const getStepIcon = () => {
15
- switch (currentStep) {
16
- case "Start":
17
- return "play-arrow";
18
- case "Identity Verification":
19
- return animationState === "success"
20
- ? "check-circle"
21
- : "face";
22
- case "Location Verification":
23
- return animationState === "success"
24
- ? "check-circle"
25
- : "location-on";
26
- default:
27
- return "info";
28
- }
29
- };
30
-
31
- // Get appropriate icon color for current state
32
- const getIconColor = () => {
33
- switch (animationState) {
34
- case "success":
35
- return COLORS.success;
36
- case "error":
37
- return COLORS.error;
38
- default:
39
- return COLORS.primary;
40
- }
41
- };
42
-
43
- return (
44
- <Animated.View
45
- style={[
46
- styles.iconContainer,
47
- {
48
- transform: [{ scale: scaleAnim }],
49
- opacity: opacityAnim
50
- }
51
- ]}
52
- >
53
- <Icon
54
- name={getStepIcon()}
55
- size={40}
56
- color={getIconColor()}
57
- />
58
- </Animated.View>
59
- );
60
- };
61
-
62
- const styles = {
63
- iconContainer: {
64
- marginRight: 15,
65
- backgroundColor: 'rgba(255, 255, 255, 0.1)',
66
- borderRadius: 30,
67
- padding: 10,
68
- },
69
- };
70
-
71
- export default StepIcon;