react-native-biometric-verifier 0.0.23 → 0.0.24

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.23",
3
+ "version": "0.0.24",
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": {
@@ -313,9 +313,9 @@ const CaptureImageWithoutEdit = React.memo(
313
313
  case 0:
314
314
  return 'Face the camera straight';
315
315
  case 1:
316
- return 'Turn your head to the LEFT';
317
- case 2:
318
316
  return 'Turn your head to the RIGHT';
317
+ case 2:
318
+ return 'Turn your head to the LEFT';
319
319
  case 3:
320
320
  return 'Perfect! Hold still — capturing...';
321
321
  default:
@@ -328,9 +328,9 @@ const CaptureImageWithoutEdit = React.memo(
328
328
  case 0:
329
329
  return 'Face the camera straight';
330
330
  case 1:
331
- return 'Turn your head to the LEFT';
332
- case 2:
333
331
  return 'Turn your head to the RIGHT';
332
+ case 2:
333
+ return 'Turn your head to the LEFT';
334
334
  case 3:
335
335
  return `Blink your eyes ${blinkCount} of 3 times`;
336
336
  case 4:
@@ -507,15 +507,15 @@ const CaptureImageWithoutEdit = React.memo(
507
507
  {livenessLevel === 2 && (
508
508
  <>
509
509
  <Text style={styles.stepLabel}>Center</Text>
510
- <Text style={styles.stepLabel}>Left</Text>
511
510
  <Text style={styles.stepLabel}>Right</Text>
511
+ <Text style={styles.stepLabel}>Left</Text>
512
512
  </>
513
513
  )}
514
514
  {livenessLevel === 3 && (
515
515
  <>
516
516
  <Text style={styles.stepLabel}>Center</Text>
517
- <Text style={styles.stepLabel}>Left</Text>
518
517
  <Text style={styles.stepLabel}>Right</Text>
518
+ <Text style={styles.stepLabel}>Left</Text>
519
519
  <Text style={styles.stepLabel}>Blink</Text>
520
520
  </>
521
521
  )}
@@ -5,7 +5,6 @@ import PropTypes from 'prop-types';
5
5
  import { Global } from '../utils/Global';
6
6
 
7
7
  export const Card = ({ employeeData, apiurl, fileurl = 'file/filedownload/photo/' }) => {
8
- const [imageError, setImageError] = useState(false);
9
8
 
10
9
  if (!employeeData || typeof employeeData !== 'object') {
11
10
  console.warn('Card: Invalid or missing employeeData');
@@ -17,7 +16,7 @@ export const Card = ({ employeeData, apiurl, fileurl = 'file/filedownload/photo/
17
16
  const employeeName = facename || 'Unknown Employee';
18
17
  const employeeId = faceid || 'N/A';
19
18
 
20
- const imageSource = !imageError && img
19
+ const imageSource = img
21
20
  ? { uri: `${apiurl}${fileurl}${img}` }
22
21
  : null;
23
22
 
@@ -25,14 +24,13 @@ export const Card = ({ employeeData, apiurl, fileurl = 'file/filedownload/photo/
25
24
  <View style={styles.card}>
26
25
  {/* Employee Image or Fallback Icon */}
27
26
  <View style={styles.imageWrapper}>
28
- {!imageError && img ? (
27
+ {img ? (
29
28
  <Image
30
29
  source={imageSource}
31
30
  style={styles.image}
32
31
  resizeMode="cover"
33
32
  onError={() => {
34
33
  console.error(`Error loading image for employee: ${employeeName}`);
35
- setImageError(true);
36
34
  }}
37
35
  />
38
36
  ) : (