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.
- package/package.json +1 -1
- package/src/components/EmployeeCard.js +2 -2
- package/src/utils/constants.js +2 -0
- package/src/utils/getLoaderGif.js +8 -5
- package/src/Asset/Icons/Female.png +0 -0
- package/src/Asset/Icons/FemaleI(1).png +0 -0
- package/src/Asset/Icons/Male(2).png +0 -0
- package/src/Asset/Icons/arrowleft.png +0 -0
- package/src/Asset/Icons/barcode2.png +0 -0
- package/src/Asset/Icons/calendar.png +0 -0
- package/src/Asset/Icons/downarrow.png +0 -0
- package/src/Asset/Icons/male.png +0 -0
- package/src/Asset/Icons/stethoscope.jpg +0 -0
- package/src/Asset/Icons/user.png +0 -0
- package/src/Asset/Icons/youtube.png +0 -0
- package/src/Asset/gif/Face.gif +0 -0
- package/src/Asset/gif/Fingerprint.gif +0 -0
- package/src/Asset/gif/Location.gif +0 -0
- package/src/Asset/gif/Pulse.gif +0 -0
- package/src/Asset/gif/Search_blue.gif +0 -0
- package/src/Asset/gif/hb.gif +0 -0
- package/src/Asset/gif/heartpulse.gif +0 -0
- package/src/Asset/gif/lab_1.gif +0 -0
- package/src/Asset/gif/loader.gif +0 -0
- package/src/Asset/gif/overwrite.gif +0 -0
- package/src/Asset/gif/pharmacist.gif +0 -0
- package/src/Asset/images/AdamsNeilson.jpg +0 -0
- package/src/Asset/images/AyurvedicHospital.jpg +0 -0
- package/src/Asset/images/DevamathaLogo.jpg +0 -0
- package/src/Asset/images/IMA.png +0 -0
- package/src/Asset/images/amalainstitute.png +0 -0
- package/src/Asset/images/amalainstituteN.png +0 -0
- package/src/Asset/images/amalainstituteX.png +0 -0
- package/src/Asset/images/amalalogo.jpg +0 -0
- package/src/Asset/images/amalalogoN.jpg +0 -0
- package/src/Asset/images/arrow-collapse.png +0 -0
- package/src/Asset/images/arrow-expand.png +0 -0
- package/src/Asset/images/audio.png +0 -0
- package/src/Asset/images/camera.png +0 -0
- package/src/Asset/images/camera_red.png +0 -0
- package/src/Asset/images/companyaddress_transparent.png +0 -0
- package/src/Asset/images/companyname_transparent.png +0 -0
- package/src/Asset/images/download.png +0 -0
- package/src/Asset/images/jes.png +0 -0
- package/src/Asset/images/lefteye.jpg +0 -0
- package/src/Asset/images/mundakayamlogo.png +0 -0
- package/src/Asset/images/nirmalanabh.jpeg +0 -0
- package/src/Asset/images/pregnantlady.png +0 -0
- package/src/Asset/images/prescriptioneye.png +0 -0
- package/src/Asset/images/rblogo.png +0 -0
- package/src/Asset/images/righteye.jpg +0 -0
- package/src/Asset/images/rtlogo.png +0 -0
- package/src/Asset/images/video_red.png +0 -0
- package/src/Asset/images/vimaljyothi.png +0 -0
package/package.json
CHANGED
|
@@ -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
|
-
:
|
|
22
|
+
: { uri: `${GIF_URL}camera.png` }; // Add a local fallback image in assets
|
|
23
23
|
|
|
24
24
|
return (
|
|
25
25
|
<View style={styles.employeeCard}>
|
package/src/utils/constants.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
package/src/Asset/Icons/male.png
DELETED
|
Binary file
|
|
Binary file
|
package/src/Asset/Icons/user.png
DELETED
|
Binary file
|
|
Binary file
|
package/src/Asset/gif/Face.gif
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/Asset/gif/Pulse.gif
DELETED
|
Binary file
|
|
Binary file
|
package/src/Asset/gif/hb.gif
DELETED
|
Binary file
|
|
Binary file
|
package/src/Asset/gif/lab_1.gif
DELETED
|
Binary file
|
package/src/Asset/gif/loader.gif
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/Asset/images/IMA.png
DELETED
|
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
|
package/src/Asset/images/jes.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|