@trustchex/react-native-sdk 1.484.0 → 1.484.1

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.
@@ -534,30 +534,18 @@ const ResultScreen = () => {
534
534
  children: [/*#__PURE__*/_jsxs(Text, {
535
535
  style: styles.mrzInfoLabel,
536
536
  children: [t('eidScannerScreen.name'), ":"]
537
- }), /*#__PURE__*/_jsxs(View, {
538
- style: styles.mrzInfoValueGroup,
539
- children: [/*#__PURE__*/_jsx(Text, {
540
- style: styles.mrzInfoText,
541
- children: appContext.lastDocumentRead?.name.source === 'dg11' ? appContext.lastDocumentRead.name.displayFirst : appContext.identificationInfo.scannedDocument.mrzFields?.firstName
542
- }), appContext.lastDocumentRead?.name.source === 'dg11' && /*#__PURE__*/_jsx(Text, {
543
- style: styles.mrzInfoSubText,
544
- children: appContext.identificationInfo.scannedDocument.mrzFields?.firstName
545
- })]
537
+ }), /*#__PURE__*/_jsx(Text, {
538
+ style: styles.mrzInfoText,
539
+ children: appContext.lastDocumentRead?.name.displayFirst ?? appContext.identificationInfo.scannedDocument.mrzFields?.firstName
546
540
  })]
547
541
  }), /*#__PURE__*/_jsxs(View, {
548
542
  style: styles.mrzInfoItem,
549
543
  children: [/*#__PURE__*/_jsxs(Text, {
550
544
  style: styles.mrzInfoLabel,
551
545
  children: [t('eidScannerScreen.surname'), ":"]
552
- }), /*#__PURE__*/_jsxs(View, {
553
- style: styles.mrzInfoValueGroup,
554
- children: [/*#__PURE__*/_jsx(Text, {
555
- style: styles.mrzInfoText,
556
- children: appContext.lastDocumentRead?.name.source === 'dg11' ? appContext.lastDocumentRead.name.displayLast : appContext.identificationInfo.scannedDocument.mrzFields?.lastName
557
- }), appContext.lastDocumentRead?.name.source === 'dg11' && /*#__PURE__*/_jsx(Text, {
558
- style: styles.mrzInfoSubText,
559
- children: appContext.identificationInfo.scannedDocument.mrzFields?.lastName
560
- })]
546
+ }), /*#__PURE__*/_jsx(Text, {
547
+ style: styles.mrzInfoText,
548
+ children: appContext.lastDocumentRead?.name.displayLast ?? appContext.identificationInfo.scannedDocument.mrzFields?.lastName
561
549
  })]
562
550
  }), /*#__PURE__*/_jsxs(View, {
563
551
  style: styles.mrzInfoItem,
@@ -2,4 +2,4 @@
2
2
 
3
3
  // This file is auto-generated. Do not edit manually.
4
4
  // Version is synced from package.json during build.
5
- export const SDK_VERSION = '1.484.0';
5
+ export const SDK_VERSION = '1.484.1';
@@ -1 +1 @@
1
- {"version":3,"file":"ResultScreen.d.ts","sourceRoot":"","sources":["../../../../../src/Screens/Static/ResultScreen.tsx"],"names":[],"mappings":"AA8EA,QAAA,MAAM,YAAY,+CAoiCjB,CAAC;AA+IF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ResultScreen.d.ts","sourceRoot":"","sources":["../../../../../src/Screens/Static/ResultScreen.tsx"],"names":[],"mappings":"AA8EA,QAAA,MAAM,YAAY,+CAohCjB,CAAC;AA+IF,eAAe,YAAY,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "1.484.0";
1
+ export declare const SDK_VERSION = "1.484.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trustchex/react-native-sdk",
3
- "version": "1.484.0",
3
+ "version": "1.484.1",
4
4
  "description": "Trustchex mobile app react native SDK for android or ios devices",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -792,35 +792,19 @@ const ResultScreen = () => {
792
792
  <Text style={styles.mrzInfoLabel}>
793
793
  {t('eidScannerScreen.name')}:
794
794
  </Text>
795
- <View style={styles.mrzInfoValueGroup}>
796
- <Text style={styles.mrzInfoText}>
797
- {appContext.lastDocumentRead?.name.source === 'dg11'
798
- ? appContext.lastDocumentRead.name.displayFirst
799
- : appContext.identificationInfo.scannedDocument.mrzFields?.firstName}
800
- </Text>
801
- {appContext.lastDocumentRead?.name.source === 'dg11' && (
802
- <Text style={styles.mrzInfoSubText}>
803
- {appContext.identificationInfo.scannedDocument.mrzFields?.firstName}
804
- </Text>
805
- )}
806
- </View>
795
+ <Text style={styles.mrzInfoText}>
796
+ {appContext.lastDocumentRead?.name.displayFirst
797
+ ?? appContext.identificationInfo.scannedDocument.mrzFields?.firstName}
798
+ </Text>
807
799
  </View>
808
800
  <View style={styles.mrzInfoItem}>
809
801
  <Text style={styles.mrzInfoLabel}>
810
802
  {t('eidScannerScreen.surname')}:
811
803
  </Text>
812
- <View style={styles.mrzInfoValueGroup}>
813
- <Text style={styles.mrzInfoText}>
814
- {appContext.lastDocumentRead?.name.source === 'dg11'
815
- ? appContext.lastDocumentRead.name.displayLast
816
- : appContext.identificationInfo.scannedDocument.mrzFields?.lastName}
817
- </Text>
818
- {appContext.lastDocumentRead?.name.source === 'dg11' && (
819
- <Text style={styles.mrzInfoSubText}>
820
- {appContext.identificationInfo.scannedDocument.mrzFields?.lastName}
821
- </Text>
822
- )}
823
- </View>
804
+ <Text style={styles.mrzInfoText}>
805
+ {appContext.lastDocumentRead?.name.displayLast
806
+ ?? appContext.identificationInfo.scannedDocument.mrzFields?.lastName}
807
+ </Text>
824
808
  </View>
825
809
  <View style={styles.mrzInfoItem}>
826
810
  <Text style={styles.mrzInfoLabel}>
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated. Do not edit manually.
2
2
  // Version is synced from package.json during build.
3
- export const SDK_VERSION = '1.484.0';
3
+ export const SDK_VERSION = '1.484.1';