@trustchex/react-native-sdk 1.214.0 → 1.245.0

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 (48) hide show
  1. package/lib/module/Screens/Dynamic/ContractAcceptanceScreen.js +2 -2
  2. package/lib/module/Screens/Dynamic/LivenessDetectionScreen.js +2 -2
  3. package/lib/module/Screens/Static/ResultScreen.js +2 -2
  4. package/lib/module/Screens/Static/VerificationSessionCheckScreen.js +148 -99
  5. package/lib/module/Shared/Components/EIDScanner.js +4 -4
  6. package/lib/module/Shared/Components/FaceCamera.js +4 -3
  7. package/lib/module/Shared/Components/IdentityDocumentCamera.js +4 -3
  8. package/lib/module/Shared/Components/QrCodeScannerCamera.js +2 -2
  9. package/lib/module/Shared/Components/StyledButton.js +30 -0
  10. package/lib/module/Shared/Constants/index.js +3 -0
  11. package/lib/module/Shared/Constants/validation.constants.js +24 -0
  12. package/lib/module/Shared/Libs/demo.utils.js +5 -3
  13. package/lib/module/Translation/Resources/en.js +50 -52
  14. package/lib/module/Translation/Resources/tr.js +48 -53
  15. package/lib/typescript/src/Screens/Static/VerificationSessionCheckScreen.d.ts.map +1 -1
  16. package/lib/typescript/src/Shared/Components/FaceCamera.d.ts.map +1 -1
  17. package/lib/typescript/src/Shared/Components/IdentityDocumentCamera.d.ts.map +1 -1
  18. package/lib/typescript/src/Shared/Components/StyledButton.d.ts +6 -0
  19. package/lib/typescript/src/Shared/Components/StyledButton.d.ts.map +1 -0
  20. package/lib/typescript/src/Shared/Constants/index.d.ts +2 -0
  21. package/lib/typescript/src/Shared/Constants/index.d.ts.map +1 -0
  22. package/lib/typescript/src/Shared/Constants/validation.constants.d.ts +20 -0
  23. package/lib/typescript/src/Shared/Constants/validation.constants.d.ts.map +1 -0
  24. package/lib/typescript/src/Shared/Libs/demo.utils.d.ts +2 -2
  25. package/lib/typescript/src/Shared/Libs/demo.utils.d.ts.map +1 -1
  26. package/lib/typescript/src/Translation/Resources/en.d.ts +1 -3
  27. package/lib/typescript/src/Translation/Resources/en.d.ts.map +1 -1
  28. package/lib/typescript/src/Translation/Resources/tr.d.ts +1 -6
  29. package/lib/typescript/src/Translation/Resources/tr.d.ts.map +1 -1
  30. package/package.json +1 -1
  31. package/src/Screens/Dynamic/ContractAcceptanceScreen.tsx +3 -3
  32. package/src/Screens/Dynamic/LivenessDetectionScreen.tsx +3 -3
  33. package/src/Screens/Static/ResultScreen.tsx +3 -3
  34. package/src/Screens/Static/VerificationSessionCheckScreen.tsx +179 -123
  35. package/src/Shared/Components/EIDScanner.tsx +7 -7
  36. package/src/Shared/Components/FaceCamera.tsx +6 -5
  37. package/src/Shared/Components/IdentityDocumentCamera.tsx +6 -5
  38. package/src/Shared/Components/QrCodeScannerCamera.tsx +3 -3
  39. package/src/Shared/Components/StyledButton.tsx +35 -0
  40. package/src/Shared/Constants/index.ts +1 -0
  41. package/src/Shared/Constants/validation.constants.ts +24 -0
  42. package/src/Shared/Libs/demo.utils.ts +5 -4
  43. package/src/Translation/Resources/en.ts +51 -54
  44. package/src/Translation/Resources/tr.ts +50 -55
  45. package/lib/module/Shared/Components/OTPCodeInput.js +0 -74
  46. package/lib/typescript/src/Shared/Components/OTPCodeInput.d.ts +0 -10
  47. package/lib/typescript/src/Shared/Components/OTPCodeInput.d.ts.map +0 -1
  48. package/src/Shared/Components/OTPCodeInput.tsx +0 -93
@@ -1,7 +1,7 @@
1
1
  import type { VerificationSession } from '../Types/verificationSession';
2
2
 
3
3
  type SimulatedDataType =
4
- | 'VERIFICATION_SESSIONS'
4
+ | 'GET_SESSION_BY_CODE'
5
5
  | 'SEND_VERIFICATION_CODE'
6
6
  | 'GET_SESSION'
7
7
  | 'GET_VERIFIED_SESSION';
@@ -50,15 +50,16 @@ const demoSession = {
50
50
  ],
51
51
  } satisfies VerificationSession;
52
52
 
53
- const isDemoSession = (email: string) => email === 'demo@trustchex.com';
53
+ const isDemoSession = (sessionCode: string) =>
54
+ sessionCode.toUpperCase() === 'DEMXCXDE';
54
55
 
55
56
  const getSimulatedDemoData = <TResponse, TBody>(
56
57
  dataType: SimulatedDataType,
57
58
  body?: TBody
58
59
  ) => {
59
60
  switch (dataType) {
60
- case 'VERIFICATION_SESSIONS':
61
- return [demoSession] satisfies VerificationSession[] as TResponse;
61
+ case 'GET_SESSION_BY_CODE':
62
+ return { id: demoSession.id } as TResponse;
62
63
 
63
64
  case 'GET_SESSION':
64
65
  return demoSession satisfies VerificationSession as TResponse;
@@ -1,49 +1,48 @@
1
1
  export default {
2
2
  'verificationSessionCheckScreen.mainText':
3
3
  'To start the identity verification process',
4
- 'verificationSessionCheckScreen.inputPlaceholder':
5
- ' Enter E-mail or Phone Number (5xx)',
4
+ 'verificationSessionCheckScreen.enterSessionCode': 'Enter Session Code',
6
5
  'verificationSessionCheckScreen.codeText':
7
6
  'Please enter the verification code you received.',
8
7
  'verificationSessionCheckScreen.codeError':
9
8
  'The code you entered is incorrect.',
10
9
  'verificationSessionCheckScreen.sendCodeAgain': 'Send Code Again',
11
10
  'verificationSessionCheckScreen.cannotSendVerificationCode':
12
- 'Verification code could not be sent.',
13
- 'verificationSessionCheckScreen.continue': 'Continue',
11
+ 'Unable to send verification code.',
14
12
  'verificationSessionCheckScreen.noVerificationSessionFound':
15
- 'No valid verification session found. The session may have expired or already been completed.',
13
+ 'No valid verification session found. The session may have expired or has already been completed.',
16
14
  'verificationSessionCheckScreen.scanQRCode': 'Scan QR Code',
17
15
  'verificationSessionCheckScreen.or': 'or',
18
16
  'general.warning': 'Warning',
19
17
  'general.error': 'Error',
20
18
  'general.yes': 'Yes',
21
19
  'general.no': 'No',
22
- 'general.letsGo': "Let's go",
20
+ 'general.letsGo': "Let's Get Started",
23
21
  'general.noCameraPermissionGiven':
24
- 'Camera permission is not given. If you accidentally denied it, please enable the permission from the app settings or reinstall the app.',
22
+ 'Camera permission has not been granted. If you accidentally denied it, please enable the permission in your app settings or reinstall the app.',
25
23
  'general.noMicrophonePermissionGiven':
26
- 'Microphone permission is not given. If you accidentally denied it, please enable the permission from the app settings or reinstall the app.',
24
+ 'Microphone permission has not been granted. If you accidentally denied it, please enable the permission in your app settings or reinstall the app.',
27
25
  'general.noCameraDetected':
28
- 'No camera hardware detected. Please use another device.',
26
+ 'No camera hardware detected. Please use a different device.',
29
27
  'general.openSettings': 'Open Settings',
30
28
  'general.countryNotAllowed':
31
- 'The country to which the scanned document belongs is not suitable for identity verification.',
29
+ 'The country of the scanned document is not supported for identity verification.',
32
30
  'general.documentTypeNotAllowed':
33
- 'The scanned document type is not suitable for identity verification.',
31
+ 'The scanned document type is not supported for identity verification.',
34
32
  'termsOfUseAndDataPrivacyScreen.footerText':
35
- 'Please read the text above and scroll to the end to be able to accept it.',
33
+ 'Please read the text above and scroll to the end to accept.',
36
34
  'termsOfUseAndDataPrivacyScreen.footerTextSRO':
37
- "Now you can press 'Accept and Continue'",
35
+ "You may now press 'Accept and Continue'.",
38
36
  'termsOfUseAndDataPrivacyScreen.acceptAndContinue': 'Accept and Continue',
39
37
  'resultScreen.submitting': 'Submitting verification data...',
40
38
  'resultScreen.submissionFailed':
41
39
  'An error occurred during the verification process. Please try again later.',
42
40
  'resultScreen.submissionSuccessful':
43
- 'Verification data successfully submitted. Your data will be reviewed and you will be notified of the result as soon as possible.',
44
- 'resultScreen.thankYou': 'Thank you!',
41
+ 'Verification data successfully submitted. Your information will be reviewed, and you will be notified of the result as soon as possible.',
42
+ 'resultScreen.thankYou': 'Thank You!',
45
43
  'resultScreen.demo': 'Demo',
46
- 'resultScreen.demoDescription': 'Shows the data collected during the demo.',
44
+ 'resultScreen.demoDescription':
45
+ 'Displays the data collected during the demo.',
47
46
  'resultScreen.demoDeviceIdentifier': 'Device Identifier',
48
47
  'resultScreen.demoScannedDocument': 'Scanned Document',
49
48
  'resultScreen.demoScannedDocumentInformation': 'Information',
@@ -57,43 +56,42 @@ export default {
57
56
  'resultScreen.demoVideo': 'Video',
58
57
  'resultScreen.demoInstruction_smile': 'Smile',
59
58
  'resultScreen.demoInstruction_look_straight_and_blink':
60
- 'Look straight and blink.',
61
- 'resultScreen.demoInstruction_turn_head_left': 'Turn your head to the left.',
62
- 'resultScreen.demoInstruction_turn_head_right':
63
- 'Turn your head to the right.',
64
- 'resultScreen.demoInstruction_look_up': 'Look up.',
59
+ 'Look straight and blink',
60
+ 'resultScreen.demoInstruction_turn_head_left': 'Turn your head to the left',
61
+ 'resultScreen.demoInstruction_turn_head_right': 'Turn your head to the right',
62
+ 'resultScreen.demoInstruction_look_up': 'Look up',
65
63
  'resultScreen.demoStartOver': 'Start Over',
66
- 'livenessDetectionScreen.guideHeader': 'Get ready for face scanning.',
64
+ 'livenessDetectionScreen.guideHeader': 'Get Ready for Face Scanning',
67
65
  'livenessDetectionScreen.guideText':
68
- 'Before you start scanning, please note the following:',
66
+ 'Before you begin, please note the following:',
69
67
  'livenessDetectionScreen.guidePoint1':
70
- 'Do not wear glasses, hats, or scarves.',
71
- 'livenessDetectionScreen.guidePoint2': 'Your environment should be well-lit.',
72
- 'livenessDetectionScreen.guidePoint3': 'There should be no background noise.',
68
+ 'Do not wear glasses, hats, or scarves. Please ensure you are appropriately dressed',
69
+ 'livenessDetectionScreen.guidePoint2': 'Ensure your face is well-lit',
70
+ 'livenessDetectionScreen.guidePoint3': 'Minimize background noise',
73
71
  'livenessDetectionScreen.guidePoint4':
74
- 'There should be no one else in front of the camera except you.',
72
+ 'Ensure you are the only person in front of the camera',
75
73
  'livenessDetectionScreen.placeFaceInsideCircle':
76
- 'Please place your face inside the circle.',
74
+ 'Please position your face inside the circle.',
77
75
  'livenessDetectionScreen.multipleFacesDetected':
78
- 'Please make sure there is only one person in front of the camera.',
79
- 'livenessDetectionScreen.start': 'Keep your face inside the circle.',
80
- 'livenessDetectionScreen.smile': 'Smile.',
76
+ 'Multiple faces detected. Please ensure you are the only person in front of the camera.',
77
+ 'livenessDetectionScreen.start': 'Keep your face inside the circle',
78
+ 'livenessDetectionScreen.smile': 'Smile',
81
79
  'livenessDetectionScreen.lookStraightAndBlink':
82
- 'Look at the camera and blink.',
83
- 'livenessDetectionScreen.turnHeadLeft': 'Turn your head to the left.',
84
- 'livenessDetectionScreen.turnHeadRight': 'Turn your head to the right.',
85
- 'livenessDetectionScreen.lookUp': 'Look up.',
86
- 'livenessDetectionScreen.sayNumber': 'Say the number: {number}.',
87
- 'livenessDetectionScreen.finish': 'Process completed.',
80
+ 'Look at the camera and blink',
81
+ 'livenessDetectionScreen.turnHeadLeft': 'Turn your head to the left',
82
+ 'livenessDetectionScreen.turnHeadRight': 'Turn your head to the right',
83
+ 'livenessDetectionScreen.lookUp': 'Look up',
84
+ 'livenessDetectionScreen.sayNumber': 'Say the number: {number}',
85
+ 'livenessDetectionScreen.finish': 'Process completed',
88
86
  'livenessDetectionScreen.brightnessLow':
89
- 'Please make sure your face is well-lit.',
87
+ 'Please ensure your face is well-lit.',
90
88
  'livenessDetectionScreen.faceTooBig':
91
- 'You are too close, please move back a bit.',
89
+ 'You are too close. Please move back slightly.',
92
90
  'livenessDetectionScreen.followInstructions':
93
91
  'Keep your device steady and follow the instructions.',
94
- 'eidScannerScreen.guideHeader': 'Get ready for NFC scanning.',
92
+ 'eidScannerScreen.guideHeader': 'Get Ready for NFC Scanning',
95
93
  'eidScannerScreen.guideText':
96
- 'After starting the scan, bring your identity document close to the NFC reader on the back of the device and wait until the reading is complete.',
94
+ 'After starting the scan, place your identity document near the NFC reader on the back of your device and wait until the reading is complete.',
97
95
  'eidScannerScreen.invalidMRZFields':
98
96
  'Identity information is missing or incorrect. Please try again.',
99
97
  'eidScannerScreen.imageCannotBeShown': 'Photo found but cannot be displayed.',
@@ -109,36 +107,36 @@ export default {
109
107
  'eidScannerScreen.expirationDate': 'Expiration Date',
110
108
  'eidScannerScreen.mrzText': 'MRZ Text',
111
109
  'eidScannerScreen.nfcNotSupported':
112
- 'Your device does not support NFC. Please use another device.',
110
+ 'Your device does not support NFC. Please use a different device.',
113
111
  'eidScannerScreen.nfcNotEnabled':
114
112
  'NFC is not enabled. Please enable it and try again.',
115
113
  'eidScannerScreen.enableNFC': 'Enable NFC',
116
114
  'eidScannerScreen.startScanning': 'Start Scanning',
117
115
  'eidScannerScreen.placeIDCardOnNFC':
118
- 'Please place your identity document on the NFC reader on the back of your device and wait.',
116
+ 'Please place your identity document near the NFC reader on the back of your device and wait.',
119
117
  'eidScannerScreen.placePassportOnNFC':
120
- 'Please place your identity document on the NFC reader on the back of your device and wait.',
118
+ 'Please place your identity document near the NFC reader on the back of your device and wait.',
121
119
  'eidScannerScreen.placeDocumentOnNFC':
122
- 'Please place your identity document on the NFC reader on the back of your device and wait.',
120
+ 'Please place your identity document near the NFC reader on the back of your device and wait.',
123
121
  'eidScannerScreen.readingDocument':
124
122
  'Please hold steady and wait until the reading process is complete.',
125
123
  'eidScannerScreen.checkYourInformation':
126
- "Please check your information and to continue, press 'Approve and Continue' button",
124
+ "Please review your information. To continue, press 'Approve and Continue'.",
127
125
  'eidScannerScreen.approveAndContinue': 'Approve and Continue',
128
- 'identityDocumentCamera.guideHeader': 'Is your identity document ready?',
126
+ 'identityDocumentCamera.guideHeader': 'Is Your Identity Document Ready?',
129
127
  'identityDocumentCamera.guideText':
130
- 'Before you start scanning, please note the following:',
128
+ 'Before you begin, please note the following:',
131
129
  'identityDocumentCamera.guidePoint1':
132
- 'The document must be clear and legible.',
133
- 'identityDocumentCamera.guidePoint2': 'Your environment should be well-lit.',
130
+ 'The document must be clear and legible',
131
+ 'identityDocumentCamera.guidePoint2': 'Ensure your environment is well-lit',
134
132
  'identityDocumentCamera.guidePoint3':
135
- 'There should be no reflections or glare on the document.',
133
+ 'Avoid reflections or glare on the document',
136
134
  'identityDocumentCamera.lowBrightness':
137
135
  'Please increase the ambient light or move to a better-lit environment.',
138
136
  'identityDocumentCamera.alignPhotoSide':
139
137
  'Please align the photo side of your identity document with the camera.',
140
138
  'identityDocumentCamera.alignHologram':
141
- 'Please show the hologram on your photo to the camera from different angles to detect it.',
139
+ 'Please show the hologram on your document to the camera from different angles.',
142
140
  'identityDocumentCamera.alignIDFrontSide':
143
141
  'Align the front side of your identity document with the camera.',
144
142
  'identityDocumentCamera.alignIDBackSide':
@@ -146,6 +144,5 @@ export default {
146
144
  'identityDocumentCamera.scanCompleted': 'Scan completed successfully.',
147
145
  'navigationManager.skipStepWarning':
148
146
  'It is recommended to complete this step. Are you sure you want to skip it?',
149
- 'navigationManager.skipStepLabel': 'Skip this step',
150
- 'qrCodeScanningScreen.title': 'Scan QR Code',
147
+ 'navigationManager.skipStepLabel': 'Skip This Step',
151
148
  };
@@ -1,15 +1,13 @@
1
1
  export default {
2
2
  'verificationSessionCheckScreen.mainText':
3
3
  'Kimlik doğrulama sürecini başlatmak için',
4
- 'verificationSessionCheckScreen.inputPlaceholder':
5
- 'E-posta veya Telefon Numarası (5xx) gir',
4
+ 'verificationSessionCheckScreen.enterSessionCode': 'Oturum Kodu Gir',
6
5
  'verificationSessionCheckScreen.codeText':
7
- 'Lütfen gelen doğrulama kodunu giriniz.',
6
+ 'Lütfen aldığınız doğrulama kodunu giriniz.',
8
7
  'verificationSessionCheckScreen.codeError': 'Girdiğiniz kod hatalı.',
9
8
  'verificationSessionCheckScreen.sendCodeAgain': 'Kodu Tekrar Gönder',
10
9
  'verificationSessionCheckScreen.cannotSendVerificationCode':
11
10
  'Doğrulama kodu gönderilemedi.',
12
- 'verificationSessionCheckScreen.continue': 'Devam Et',
13
11
  'verificationSessionCheckScreen.noVerificationSessionFound':
14
12
  'Geçerli bir doğrulama oturumu bulunamadı. Oturumun süresi dolmuş veya zaten tamamlanmış olabilir.',
15
13
  'verificationSessionCheckScreen.scanQRCode': 'QR Kodu Tara',
@@ -18,83 +16,80 @@ export default {
18
16
  'general.error': 'Hata',
19
17
  'general.yes': 'Evet',
20
18
  'general.no': 'Hayır',
21
- 'general.letsGo': 'Hadi başlayalım',
19
+ 'general.letsGo': 'Hadi Başlayalım',
22
20
  'general.noCameraPermissionGiven':
23
- 'Kamera izni verilmedi. Yanlışlıkla reddettiyseniz, lütfen uygulama ayarlarından izni etkinleştirin veya uygulamayı yeniden yükleyin.',
21
+ 'Kamera izni verilmemiş. Yanlışlıkla reddettiyseniz, lütfen uygulama ayarlarından izni etkinleştirin veya uygulamayı yeniden yükleyin.',
24
22
  'general.noMicrophonePermissionGiven':
25
- 'Mikrofon izni verilmedi. Yanlışlıkla reddettiyseniz, lütfen uygulama ayarlarından izni etkinleştirin veya uygulamayı yeniden yükleyin.',
23
+ 'Mikrofon izni verilmemiş. Yanlışlıkla reddettiyseniz, lütfen uygulama ayarlarından izni etkinleştirin veya uygulamayı yeniden yükleyin.',
26
24
  'general.noCameraDetected':
27
- 'Kamera donanımı algılanamadı. Lütfen başka bir cihaz kullanın.',
25
+ 'Kamera donanımı algılanamadı. Lütfen farklı bir cihaz kullanın.',
28
26
  'general.openSettings': 'Ayarları Aç',
29
27
  'general.countryNotAllowed':
30
- 'Taranan belgenin ait olduğu ülke, kimlik doğrulama için uygun değildir.',
28
+ 'Taranan belgenin ait olduğu ülke, kimlik doğrulama için desteklenmiyor.',
31
29
  'general.documentTypeNotAllowed':
32
- 'Taranan belge türü, kimlik doğrulama için uygun değildir.',
30
+ 'Taranan belge türü, kimlik doğrulama için desteklenmiyor.',
33
31
  'termsOfUseAndDataPrivacyScreen.footerText':
34
- 'Lütfen yukarıdaki metni okuyun ve kabul edebilmek için sonuna kadar kaydırın.',
32
+ 'Lütfen yukarıdaki metni okuyun ve kabul etmek için sonuna kadar kaydırın.',
35
33
  'termsOfUseAndDataPrivacyScreen.footerTextSRO':
36
- "Artık 'Kabul Et ve Devam Et' düğmesine basabilirsiniz",
34
+ "Artık 'Kabul Et ve Devam Et' düğmesine basabilirsiniz.",
37
35
  'termsOfUseAndDataPrivacyScreen.acceptAndContinue': 'Kabul Et ve Devam Et',
38
- 'resultScreen.submitting': 'Kimlik doğrulama verileri gönderiliyor...',
36
+ 'resultScreen.submitting': 'Doğrulama verileri gönderiliyor...',
39
37
  'resultScreen.submissionFailed':
40
- 'Kimlik doğrulama işlemi sırasında bir hata oluştu. Lütfen daha sonra tekrar deneyin.',
38
+ 'Doğrulama işlemi sırasında bir hata oluştu. Lütfen daha sonra tekrar deneyin.',
41
39
  'resultScreen.submissionSuccessful':
42
- 'Kimlik doğrulama verileri başarıyla gönderildi. Veriler incelenip, sonucunuz en kısa sürede size bildirilecektir.',
40
+ 'Doğrulama verileri başarıyla gönderildi. Bilgileriniz incelenecek ve sonuç en kısa sürede size bildirilecektir.',
43
41
  'resultScreen.thankYou': 'Teşekkürler!',
44
- 'resultScreen.demo_id_scan': 'Kimlik Tarama Demo',
45
- 'resultScreen.demo_eid_scan': 'Elektronik Kimlik (NFC) Tarama Demo',
46
- 'resultScreen.demo_id_and_eid_scan':
47
- 'Kimlik ve Elektronik Kimlik Tarama Demo',
48
42
  'resultScreen.demo': 'Demo',
49
43
  'resultScreen.demoDescription': 'Demo sırasında toplanan verileri gösterir.',
50
44
  'resultScreen.demoDeviceIdentifier': 'Cihaz Tanımlayıcısı',
51
45
  'resultScreen.demoScannedDocument': 'Taranan Belge',
52
46
  'resultScreen.demoScannedDocumentInformation': 'Bilgiler',
53
- 'resultScreen.demoImages': 'Resimler',
54
- 'resultScreen.demoImageFront': 'Ön',
55
- 'resultScreen.demoImageBack': 'Arka',
47
+ 'resultScreen.demoImages': 'Görüntüler',
48
+ 'resultScreen.demoImageFront': 'Ön Yüz',
49
+ 'resultScreen.demoImageBack': 'Arka Yüz',
56
50
  'resultScreen.demoImageFace': 'Yüz',
57
51
  'resultScreen.demoImageSecondaryFace': 'İkincil Yüz',
58
52
  'resultScreen.demoImageHologram': 'Hologram',
59
53
  'resultScreen.demoLivenessDetection': 'Canlılık Tespiti',
60
54
  'resultScreen.demoVideo': 'Video',
61
- 'resultScreen.demoInstruction_smile': 'Gülümse',
62
- 'resultScreen.demoInstruction_look_straight_and_blink': 'Düz bak ve göz kırp',
63
- 'resultScreen.demoInstruction_turn_head_left': 'Başını sola çevir',
64
- 'resultScreen.demoInstruction_turn_head_right': 'Başını sağa çevir',
65
- 'resultScreen.demoInstruction_look_up': 'Yukarı bak',
55
+ 'resultScreen.demoInstruction_smile': 'Gülümseyin',
56
+ 'resultScreen.demoInstruction_look_straight_and_blink':
57
+ 'Düz bakın ve göz kırpın',
58
+ 'resultScreen.demoInstruction_turn_head_left': 'Başınızı sola çevirin',
59
+ 'resultScreen.demoInstruction_turn_head_right': 'Başınızı sağa çevirin',
60
+ 'resultScreen.demoInstruction_look_up': 'Yukarı bakın',
66
61
  'resultScreen.demoStartOver': 'Baştan Başla',
67
- 'livenessDetectionScreen.guideHeader': 'Yüz taraması için hazırlanın',
62
+ 'livenessDetectionScreen.guideHeader': 'Yüz Taraması İçin Hazırlanın',
68
63
  'livenessDetectionScreen.guideText':
69
- 'Taramaya başlamadan önce lütfen aşağıdaki hususlara dikkat edin:',
70
- 'livenessDetectionScreen.guidePoint1': 'Gözlük, şapka veya eşarp takılmamalı',
64
+ 'Başlamadan önce lütfen aşağıdaki hususlara dikkat edin:',
65
+ 'livenessDetectionScreen.guidePoint1': 'Gözlük, şapka veya eşarp takmayın. Lütfen uygun şekilde giyindiğinizden emin olun',
71
66
  'livenessDetectionScreen.guidePoint2':
72
- 'İyi aydınlatılmış bir ortamda olmalısınız',
73
- 'livenessDetectionScreen.guidePoint3': 'Arka planda gürültü olmamalı',
67
+ 'Yüzünüzün iyi aydınlatıldığından emin olun',
68
+ 'livenessDetectionScreen.guidePoint3': 'Arka plan gürültüsünü minimize edin',
74
69
  'livenessDetectionScreen.guidePoint4':
75
- 'Kameranın önünde sizden başka kimse olmamalı',
70
+ 'Kameranın önünde yalnızca sizin bulunduğunuzdan emin olun',
76
71
  'livenessDetectionScreen.placeFaceInsideCircle':
77
- 'Lütfen yüzünüzü daire içine yerleştirin',
72
+ 'Lütfen yüzünüzü daire içine konumlandırın.',
78
73
  'livenessDetectionScreen.multipleFacesDetected':
79
- 'Lütfen kameranın önünde yalnızca bir kişi olduğundan emin olun.',
74
+ 'Birden fazla yüz algılandı. Lütfen kameranın önünde yalnızca sizin bulunduğunuzdan emin olun.',
80
75
  'livenessDetectionScreen.start': 'Yüzünüzü daire içinde tutun',
81
76
  'livenessDetectionScreen.smile': 'Gülümseyin',
82
77
  'livenessDetectionScreen.lookStraightAndBlink':
83
- 'Kameraya doğru bakın ve göz kırpın',
78
+ 'Kameraya bakın ve göz kırpın',
84
79
  'livenessDetectionScreen.turnHeadLeft': 'Başınızı sola çevirin',
85
80
  'livenessDetectionScreen.turnHeadRight': 'Başınızı sağa çevirin',
86
81
  'livenessDetectionScreen.lookUp': 'Yukarı bakın',
87
82
  'livenessDetectionScreen.sayNumber': 'Rakamı söyleyin: {number}',
88
83
  'livenessDetectionScreen.finish': 'İşlem tamamlandı',
89
84
  'livenessDetectionScreen.brightnessLow':
90
- 'Lütfen yüzünüzün iyi aydınlatıldığından emin olun',
85
+ 'Lütfen yüzünüzün iyi aydınlatıldığından emin olun.',
91
86
  'livenessDetectionScreen.faceTooBig':
92
- 'Çok yakınsınız, lütfen biraz uzaklaşın',
87
+ 'Çok yakınsınız. Lütfen biraz geriye çekilin.',
93
88
  'livenessDetectionScreen.followInstructions':
94
- 'Cihazınızı sabit tutun ve talimatları uygulayın',
95
- 'eidScannerScreen.guideHeader': 'NFC taramasına hazırlanın',
89
+ 'Cihazınızı sabit tutun ve talimatları uygulayın.',
90
+ 'eidScannerScreen.guideHeader': 'NFC Taraması İçin Hazırlanın',
96
91
  'eidScannerScreen.guideText':
97
- 'Taramayı başlattıktan sonra, kimlik belgenizi cihazın arkasındaki NFC okuyucuya yaklaştırın ve okuma tamamlanana kadar bekleyin.',
92
+ 'Taramayı başlattıktan sonra, kimlik belgenizi cihazınızın arkasındaki NFC okuyucuya yaklaştırın ve okuma tamamlanana kadar bekleyin.',
98
93
  'eidScannerScreen.invalidMRZFields':
99
94
  'Kimlik bilgileri eksik veya hatalı. Lütfen tekrar deneyin.',
100
95
  'eidScannerScreen.imageCannotBeShown':
@@ -111,42 +106,42 @@ export default {
111
106
  'eidScannerScreen.expirationDate': 'Geçerlilik Tarihi',
112
107
  'eidScannerScreen.mrzText': 'MRZ Metni',
113
108
  'eidScannerScreen.nfcNotSupported':
114
- 'Cihazınız NFC desteklemiyor. Lütfen başka bir cihaz kullanın.',
109
+ 'Cihazınız NFC desteklemiyor. Lütfen farklı bir cihaz kullanın.',
115
110
  'eidScannerScreen.nfcNotEnabled':
116
111
  'NFC etkin değil. Lütfen etkinleştirin ve tekrar deneyin.',
117
112
  'eidScannerScreen.enableNFC': "NFC'yi Etkinleştir",
118
113
  'eidScannerScreen.startScanning': 'Taramaya Başla',
119
114
  'eidScannerScreen.placeIDCardOnNFC':
120
- 'Lütfen kimlik belgenizi cihazınızın arka kısmındaki NFC okuyucuya dokundurun ve bekleyin.',
115
+ 'Lütfen kimlik belgenizi cihazınızın arka kısmındaki NFC okuyucuya yaklaştırın ve bekleyin.',
121
116
  'eidScannerScreen.placePassportOnNFC':
122
- 'Lütfen kimlik belgenizi cihazınızın arka kısmındaki NFC okuyucuya dokundurun ve bekleyin.',
117
+ 'Lütfen kimlik belgenizi cihazınızın arka kısmındaki NFC okuyucuya yaklaştırın ve bekleyin.',
123
118
  'eidScannerScreen.placeDocumentOnNFC':
124
- 'Lütfen kimlik belgenizi cihazınızın arka kısmındaki NFC okuyucuya dokundurun ve bekleyin.',
119
+ 'Lütfen kimlik belgenizi cihazınızın arka kısmındaki NFC okuyucuya yaklaştırın ve bekleyin.',
125
120
  'eidScannerScreen.readingDocument':
126
121
  'Lütfen sabit tutun ve okuma işlemi tamamlanana kadar bekleyin.',
127
122
  'eidScannerScreen.checkYourInformation':
128
- "Bilgilerinizi Kontrol Edin ve devam etmek için 'Onayla ve Devam Et' düğmesine basın.",
123
+ "Lütfen bilgilerinizi kontrol edin. Devam etmek için 'Onayla ve Devam Et' düğmesine basın.",
129
124
  'eidScannerScreen.approveAndContinue': 'Onayla ve Devam Et',
130
- 'identityDocumentCamera.guideHeader': 'Kimlik belgeniz hazır mı?',
125
+ 'identityDocumentCamera.guideHeader': 'Kimlik Belgeniz Hazır Mı?',
131
126
  'identityDocumentCamera.guideText':
132
- 'Taramaya başlamadan önce lütfen aşağıdaki hususlara dikkat edin:',
127
+ 'Başlamadan önce lütfen aşağıdaki hususlara dikkat edin:',
133
128
  'identityDocumentCamera.guidePoint1': 'Belge açık ve okunaklı olmalı',
134
- 'identityDocumentCamera.guidePoint2': 'Ortamınız iyi aydınlatılmış olmalı',
129
+ 'identityDocumentCamera.guidePoint2':
130
+ 'Ortamınızın iyi aydınlatıldığından emin olun',
135
131
  'identityDocumentCamera.guidePoint3':
136
- 'Belgenin üzerinde yansıma veya parlama olmamalı',
132
+ 'Belge üzerinde yansıma veya parlama olmamasına dikkat edin',
137
133
  'identityDocumentCamera.lowBrightness':
138
134
  'Lütfen ortam ışığını artırın veya daha iyi aydınlatılmış bir ortama geçin.',
139
135
  'identityDocumentCamera.alignPhotoSide':
140
136
  'Lütfen kimlik belgenizin fotoğraflı yüzünü kameraya hizalayın.',
141
137
  'identityDocumentCamera.alignHologram':
142
- 'Lütfen fotoğrafınızın üzerindeki hologramı tespit etmek için belgeyi farklı açılardan kameraya gösterin.',
138
+ 'Lütfen belgenizdeki hologramı farklı açılardan kameraya gösterin.',
143
139
  'identityDocumentCamera.alignIDFrontSide':
144
- 'Kimlik belgenizin fotoğraflı yüzünü kameraya hizalayın.',
140
+ 'Kimlik belgenizin ön yüzünü kameraya hizalayın.',
145
141
  'identityDocumentCamera.alignIDBackSide':
146
142
  'Kimlik belgenizin arka yüzünü kameraya hizalayın.',
147
143
  'identityDocumentCamera.scanCompleted': 'Tarama başarıyla tamamlandı.',
148
144
  'navigationManager.skipStepWarning':
149
- 'Bu adımı tamamlamanız tavsiye edilir. Adımı atlamak istediğinize emin misiniz?',
150
- 'navigationManager.skipStepLabel': 'Bu adımı atla',
151
- 'qrCodeScanningScreen.title': 'QR Kodu Tara',
145
+ 'Bu adımı tamamlamanız önerilir. Adımı atlamak istediğinize emin misiniz?',
146
+ 'navigationManager.skipStepLabel': 'Bu Adımı Atla',
152
147
  };
@@ -1,74 +0,0 @@
1
- "use strict";
2
-
3
- import React from 'react';
4
- import { View, StyleSheet } from 'react-native';
5
- import { TextInput } from 'react-native-paper';
6
- import { jsx as _jsx } from "react/jsx-runtime";
7
- const OTPCodeInput = ({
8
- codeLength,
9
- value,
10
- onChangeText,
11
- onCodeFilled,
12
- disabled
13
- }) => {
14
- const [code, setCode] = React.useState(value.split(''));
15
- const refArray = React.useRef([]);
16
- return /*#__PURE__*/_jsx(View, {
17
- style: styles.container,
18
- children: /*#__PURE__*/_jsx(View, {
19
- style: styles.inputWrapper,
20
- children: [...Array(codeLength)].map((_, index) => /*#__PURE__*/_jsx(TextInput, {
21
- mode: "outlined",
22
- style: [styles.input],
23
- ref: el => refArray.current[index] = el,
24
- value: code[index],
25
- autoFocus: index === 0,
26
- inputMode: "numeric",
27
- disabled: disabled,
28
- onChangeText: text => {
29
- code[index] = text;
30
- setCode(code);
31
- if (onChangeText) {
32
- onChangeText(code.join(''));
33
- }
34
- if (code.length === codeLength && code.every(c => !!c) && onCodeFilled) {
35
- onCodeFilled(code.join(''));
36
- }
37
- },
38
- onKeyPress: ({
39
- nativeEvent
40
- }) => {
41
- if (nativeEvent.key === 'Backspace' && index > 0) {
42
- refArray.current[index - 1]?.focus();
43
- } else if (nativeEvent.key !== 'Backspace' && index < codeLength - 1) {
44
- refArray.current[index + 1]?.focus();
45
- }
46
- },
47
- keyboardType: "number-pad",
48
- maxLength: 1,
49
- textContentType: "oneTimeCode"
50
- }, index))
51
- })
52
- });
53
- };
54
- const styles = StyleSheet.create({
55
- container: {
56
- display: 'flex',
57
- flexDirection: 'row',
58
- justifyContent: 'center',
59
- alignItems: 'center'
60
- },
61
- inputWrapper: {
62
- display: 'flex',
63
- flexDirection: 'row',
64
- justifyContent: 'space-between',
65
- gap: 10
66
- },
67
- input: {
68
- width: 48,
69
- height: 48,
70
- fontSize: 24,
71
- fontWeight: 'bold'
72
- }
73
- });
74
- export default OTPCodeInput;
@@ -1,10 +0,0 @@
1
- export interface OTPCodeInputProps {
2
- codeLength: number;
3
- value: string;
4
- onChangeText?: (value: string) => void;
5
- onCodeFilled?: (value: string) => void;
6
- disabled?: boolean;
7
- }
8
- declare const OTPCodeInput: ({ codeLength, value, onChangeText, onCodeFilled, disabled, }: OTPCodeInputProps) => import("react/jsx-runtime").JSX.Element;
9
- export default OTPCodeInput;
10
- //# sourceMappingURL=OTPCodeInput.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"OTPCodeInput.d.ts","sourceRoot":"","sources":["../../../../../src/Shared/Components/OTPCodeInput.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,YAAY,GAAI,8DAMnB,iBAAiB,4CAmDnB,CAAC;AAuBF,eAAe,YAAY,CAAC"}
@@ -1,93 +0,0 @@
1
- import React from 'react';
2
- import { View, StyleSheet } from 'react-native';
3
- import { TextInput } from 'react-native-paper';
4
-
5
- export interface OTPCodeInputProps {
6
- codeLength: number;
7
- value: string;
8
- onChangeText?: (value: string) => void;
9
- onCodeFilled?: (value: string) => void;
10
- disabled?: boolean;
11
- }
12
-
13
- const OTPCodeInput = ({
14
- codeLength,
15
- value,
16
- onChangeText,
17
- onCodeFilled,
18
- disabled,
19
- }: OTPCodeInputProps) => {
20
- const [code, setCode] = React.useState<string[]>(value.split(''));
21
- const refArray = React.useRef<(any | null)[]>([]);
22
-
23
- return (
24
- <View style={styles.container}>
25
- <View style={styles.inputWrapper}>
26
- {[...Array(codeLength)].map((_, index) => (
27
- <TextInput
28
- key={index}
29
- mode="outlined"
30
- style={[styles.input]}
31
- ref={(el: any) => (refArray.current[index] = el)}
32
- value={code[index]}
33
- autoFocus={index === 0}
34
- inputMode="numeric"
35
- disabled={disabled}
36
- onChangeText={(text) => {
37
- code[index] = text;
38
- setCode(code);
39
-
40
- if (onChangeText) {
41
- onChangeText(code.join(''));
42
- }
43
-
44
- if (
45
- code.length === codeLength &&
46
- code.every((c) => !!c) &&
47
- onCodeFilled
48
- ) {
49
- onCodeFilled(code.join(''));
50
- }
51
- }}
52
- onKeyPress={({ nativeEvent }) => {
53
- if (nativeEvent.key === 'Backspace' && index > 0) {
54
- refArray.current[index - 1]?.focus();
55
- } else if (
56
- nativeEvent.key !== 'Backspace' &&
57
- index < codeLength - 1
58
- ) {
59
- refArray.current[index + 1]?.focus();
60
- }
61
- }}
62
- keyboardType="number-pad"
63
- maxLength={1}
64
- textContentType="oneTimeCode"
65
- />
66
- ))}
67
- </View>
68
- </View>
69
- );
70
- };
71
-
72
- const styles = StyleSheet.create({
73
- container: {
74
- display: 'flex',
75
- flexDirection: 'row',
76
- justifyContent: 'center',
77
- alignItems: 'center',
78
- },
79
- inputWrapper: {
80
- display: 'flex',
81
- flexDirection: 'row',
82
- justifyContent: 'space-between',
83
- gap: 10,
84
- },
85
- input: {
86
- width: 48,
87
- height: 48,
88
- fontSize: 24,
89
- fontWeight: 'bold',
90
- },
91
- });
92
-
93
- export default OTPCodeInput;