react-native-biometric-verifier 0.0.3 → 0.0.4

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.
Files changed (54) hide show
  1. package/package.json +1 -1
  2. package/src/components/EmployeeCard.js +2 -2
  3. package/src/utils/constants.js +2 -0
  4. package/src/utils/getLoaderGif.js +8 -5
  5. package/src/Asset/Icons/Female.png +0 -0
  6. package/src/Asset/Icons/FemaleI(1).png +0 -0
  7. package/src/Asset/Icons/Male(2).png +0 -0
  8. package/src/Asset/Icons/arrowleft.png +0 -0
  9. package/src/Asset/Icons/barcode2.png +0 -0
  10. package/src/Asset/Icons/calendar.png +0 -0
  11. package/src/Asset/Icons/downarrow.png +0 -0
  12. package/src/Asset/Icons/male.png +0 -0
  13. package/src/Asset/Icons/stethoscope.jpg +0 -0
  14. package/src/Asset/Icons/user.png +0 -0
  15. package/src/Asset/Icons/youtube.png +0 -0
  16. package/src/Asset/gif/Face.gif +0 -0
  17. package/src/Asset/gif/Fingerprint.gif +0 -0
  18. package/src/Asset/gif/Location.gif +0 -0
  19. package/src/Asset/gif/Pulse.gif +0 -0
  20. package/src/Asset/gif/Search_blue.gif +0 -0
  21. package/src/Asset/gif/hb.gif +0 -0
  22. package/src/Asset/gif/heartpulse.gif +0 -0
  23. package/src/Asset/gif/lab_1.gif +0 -0
  24. package/src/Asset/gif/loader.gif +0 -0
  25. package/src/Asset/gif/overwrite.gif +0 -0
  26. package/src/Asset/gif/pharmacist.gif +0 -0
  27. package/src/Asset/images/AdamsNeilson.jpg +0 -0
  28. package/src/Asset/images/AyurvedicHospital.jpg +0 -0
  29. package/src/Asset/images/DevamathaLogo.jpg +0 -0
  30. package/src/Asset/images/IMA.png +0 -0
  31. package/src/Asset/images/amalainstitute.png +0 -0
  32. package/src/Asset/images/amalainstituteN.png +0 -0
  33. package/src/Asset/images/amalainstituteX.png +0 -0
  34. package/src/Asset/images/amalalogo.jpg +0 -0
  35. package/src/Asset/images/amalalogoN.jpg +0 -0
  36. package/src/Asset/images/arrow-collapse.png +0 -0
  37. package/src/Asset/images/arrow-expand.png +0 -0
  38. package/src/Asset/images/audio.png +0 -0
  39. package/src/Asset/images/camera.png +0 -0
  40. package/src/Asset/images/camera_red.png +0 -0
  41. package/src/Asset/images/companyaddress_transparent.png +0 -0
  42. package/src/Asset/images/companyname_transparent.png +0 -0
  43. package/src/Asset/images/download.png +0 -0
  44. package/src/Asset/images/jes.png +0 -0
  45. package/src/Asset/images/lefteye.jpg +0 -0
  46. package/src/Asset/images/mundakayamlogo.png +0 -0
  47. package/src/Asset/images/nirmalanabh.jpeg +0 -0
  48. package/src/Asset/images/pregnantlady.png +0 -0
  49. package/src/Asset/images/prescriptioneye.png +0 -0
  50. package/src/Asset/images/rblogo.png +0 -0
  51. package/src/Asset/images/righteye.jpg +0 -0
  52. package/src/Asset/images/rtlogo.png +0 -0
  53. package/src/Asset/images/video_red.png +0 -0
  54. package/src/Asset/images/vimaljyothi.png +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-biometric-verifier",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
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": {
@@ -2,7 +2,7 @@ import React, { useState } from 'react';
2
2
  import { View, Text, Image } from 'react-native';
3
3
  import Icon from 'react-native-vector-icons/MaterialIcons';
4
4
  import PropTypes from 'prop-types';
5
- import { COLORS ,IMAGE_URL} from '../utils/constants';
5
+ import { COLORS ,GIF_URL,IMAGE_URL} from '../utils/constants';
6
6
  import { styles } from './styles';
7
7
 
8
8
  export const EmployeeCard = ({ employeeData }) => {
@@ -19,7 +19,7 @@ export const EmployeeCard = ({ employeeData }) => {
19
19
  const employeeId = employeeid || 'N/A';
20
20
  const imageSource = !imageError && imageurl
21
21
  ? { uri: `${IMAGE_URL}${imageurl}` }
22
- : require('../Asset/images/camera.png'); // Add a local fallback image in assets
22
+ : { uri: `${GIF_URL}camera.png` }; // Add a local fallback image in assets
23
23
 
24
24
  return (
25
25
  <View style={styles.employeeCard}>
@@ -8,6 +8,8 @@ export const APIURL = `http://${BASE_URL}:${PORT}/`;
8
8
  // ====== API ENDPOINTS ======
9
9
  export const RECOGNIZE_URL = APIURL + "python/recognize";
10
10
  export const IMAGE_URL = APIURL + "file/filedownload/photo/";
11
+ export const GIF_URL = APIURL + "file/getCommonFile/image/";
12
+
11
13
 
12
14
  // ====== COLORS ======
13
15
  export const COLORS = {
@@ -1,6 +1,4 @@
1
- import FaceGif from '../Asset/gif/Face.gif';
2
- import LocationGif from '../Asset/gif/Location.gif';
3
- import { ANIMATION_STATES } from '../utils/constants';
1
+ import { ANIMATION_STATES, GIF_URL } from '../utils/constants';
4
2
 
5
3
  /**
6
4
  * Decides which GIF should be shown based on animationState or currentStep
@@ -9,18 +7,23 @@ import { ANIMATION_STATES } from '../utils/constants';
9
7
  * @returns {any} - Gif image source or null
10
8
  */
11
9
  export const getLoaderGif = (animationState, currentStep) => {
10
+ const FaceGifUrl =
11
+ `${GIF_URL}Face.gif`;
12
+ const LocationGifUrl =
13
+ `${GIF_URL}Location.gif`;
14
+
12
15
  if (
13
16
  animationState === ANIMATION_STATES.FACE_SCAN ||
14
17
  currentStep === 'Identity Verification'
15
18
  ) {
16
- return FaceGif;
19
+ return { uri: FaceGifUrl };
17
20
  }
18
21
 
19
22
  if (
20
23
  animationState === ANIMATION_STATES.QR_SCAN ||
21
24
  currentStep === 'Location Verification'
22
25
  ) {
23
- return LocationGif;
26
+ return { uri: LocationGifUrl };
24
27
  }
25
28
 
26
29
  return null;
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file