react-native-timacare 3.1.2 → 3.1.4-beta

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 (626) hide show
  1. package/lib/commonjs/assets/icons/cam2.svg +5 -0
  2. package/lib/commonjs/assets/icons/chip.svg +20 -0
  3. package/lib/commonjs/assets/icons/index.js +1 -1
  4. package/lib/commonjs/assets/icons/index.js.flow +8 -0
  5. package/lib/commonjs/assets/icons/index.js.map +1 -1
  6. package/lib/commonjs/assets/icons/ocr.svg +11 -0
  7. package/lib/commonjs/assets/icons/takePhoto.svg +20 -0
  8. package/lib/commonjs/assets/icons/tima_small.svg +12 -23
  9. package/lib/commonjs/assets/svgs/back.svg +4 -0
  10. package/lib/commonjs/assets/svgs/complete.svg +27 -0
  11. package/lib/commonjs/assets/svgs/currentStep.svg +28 -0
  12. package/lib/commonjs/assets/svgs/edit.svg +42 -0
  13. package/lib/commonjs/assets/svgs/edit_success.svg +15 -0
  14. package/lib/commonjs/assets/svgs/ekyc.svg +18 -0
  15. package/lib/commonjs/assets/svgs/ekyc_success.svg +6 -0
  16. package/lib/commonjs/assets/svgs/index.js +2 -0
  17. package/lib/commonjs/assets/svgs/index.js.flow +23 -0
  18. package/lib/commonjs/assets/svgs/index.js.map +1 -0
  19. package/lib/commonjs/assets/svgs/nextStep.svg +21 -0
  20. package/lib/commonjs/assets/svgs/notify.svg +18 -0
  21. package/lib/commonjs/assets/svgs/orc_success.svg +11 -0
  22. package/lib/commonjs/assets/tts/1000009864.png +0 -0
  23. package/lib/commonjs/assets/tts/1000009872.png +0 -0
  24. package/lib/commonjs/assets/tts/1000011964.png +0 -0
  25. package/lib/commonjs/assets/tts/Banner.png +0 -0
  26. package/lib/commonjs/assets/tts/Frame 1000011947.png +0 -0
  27. package/lib/commonjs/assets/tts/Frame1000011946.png +0 -0
  28. package/lib/commonjs/assets/tts/Frame1000011953.png +0 -0
  29. package/lib/commonjs/assets/tts/back.png +0 -0
  30. package/lib/commonjs/assets/tts/front.png +0 -0
  31. package/lib/commonjs/assets/tts/otp.png +0 -0
  32. package/lib/commonjs/assets/tts/vehicleRegistration.png +0 -0
  33. package/lib/commonjs/assets/tts/vehicleStep.png +0 -0
  34. package/lib/commonjs/components/CIMBLoading.js +1 -1
  35. package/lib/commonjs/components/CIMBLoading.js.map +1 -1
  36. package/lib/commonjs/components/CommonSelect.js +1 -1
  37. package/lib/commonjs/components/CommonSelect.js.map +1 -1
  38. package/lib/commonjs/components/Loading.js +1 -1
  39. package/lib/commonjs/components/Loading.js.map +1 -1
  40. package/lib/commonjs/components/MButton.js +1 -1
  41. package/lib/commonjs/components/MButton.js.map +1 -1
  42. package/lib/commonjs/components/MHeader.js +1 -1
  43. package/lib/commonjs/components/MHeader.js.flow +1 -1
  44. package/lib/commonjs/components/MHeader.js.map +1 -1
  45. package/lib/commonjs/components/MSelect.js +2 -0
  46. package/lib/commonjs/components/MSelect.js.flow +78 -0
  47. package/lib/commonjs/components/MSelect.js.map +1 -0
  48. package/lib/commonjs/components/MText.js +1 -1
  49. package/lib/commonjs/components/MText.js.map +1 -1
  50. package/lib/commonjs/components/MyTextInput.js +1 -1
  51. package/lib/commonjs/components/MyTextInput.js.map +1 -1
  52. package/lib/commonjs/components/StepIndicator.js +2 -0
  53. package/lib/commonjs/components/StepIndicator.js.flow +85 -0
  54. package/lib/commonjs/components/StepIndicator.js.map +1 -0
  55. package/lib/commonjs/components/keyboardspace/index.js +1 -1
  56. package/lib/commonjs/components/keyboardspace/index.js.map +1 -1
  57. package/lib/commonjs/components/logoTima/index.js +1 -1
  58. package/lib/commonjs/components/logoTima/index.js.map +1 -1
  59. package/lib/commonjs/components/select/index.js +1 -1
  60. package/lib/commonjs/components/select/index.js.flow +19 -3
  61. package/lib/commonjs/components/select/index.js.map +1 -1
  62. package/lib/commonjs/index.js +1 -1
  63. package/lib/commonjs/index.js.flow +3 -1
  64. package/lib/commonjs/index.js.map +1 -1
  65. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  66. package/lib/commonjs/navigation/primary-navigator.js.flow +81 -1
  67. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  68. package/lib/commonjs/navigation/root-navigator.js +1 -1
  69. package/lib/commonjs/navigation/root-navigator.js.map +1 -1
  70. package/lib/commonjs/screens/Selector.js +1 -1
  71. package/lib/commonjs/screens/Selector.js.map +1 -1
  72. package/lib/commonjs/screens/camera/index.js +1 -1
  73. package/lib/commonjs/screens/camera/index.js.flow +1 -1
  74. package/lib/commonjs/screens/camera/index.js.map +1 -1
  75. package/lib/commonjs/screens/cimb-sign/index.js +1 -1
  76. package/lib/commonjs/screens/cimb-sign/index.js.map +1 -1
  77. package/lib/commonjs/screens/contract/index.js +1 -1
  78. package/lib/commonjs/screens/contract/index.js.map +1 -1
  79. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js +1 -1
  80. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.map +1 -1
  81. package/lib/commonjs/screens/detail-loan/Info.js +1 -1
  82. package/lib/commonjs/screens/detail-loan/Info.js.map +1 -1
  83. package/lib/commonjs/screens/detail-loan/Payment.js +1 -1
  84. package/lib/commonjs/screens/detail-loan/Payment.js.map +1 -1
  85. package/lib/commonjs/screens/detail-loan/PaymentAll.js +1 -1
  86. package/lib/commonjs/screens/detail-loan/PaymentAll.js.map +1 -1
  87. package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
  88. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
  89. package/lib/commonjs/screens/detail-loan/QrPayment.js +1 -1
  90. package/lib/commonjs/screens/detail-loan/QrPayment.js.map +1 -1
  91. package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
  92. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
  93. package/lib/commonjs/screens/detail-loan/index.js +1 -1
  94. package/lib/commonjs/screens/detail-loan/index.js.map +1 -1
  95. package/lib/commonjs/screens/digital-lending/Step1.js +1 -1
  96. package/lib/commonjs/screens/digital-lending/Step1.js.map +1 -1
  97. package/lib/commonjs/screens/digital-lending/Step2.js +1 -1
  98. package/lib/commonjs/screens/digital-lending/Step2.js.map +1 -1
  99. package/lib/commonjs/screens/digital-lending/Step3.js +1 -1
  100. package/lib/commonjs/screens/digital-lending/Step3.js.map +1 -1
  101. package/lib/commonjs/screens/digital-lending/Step4.js +1 -1
  102. package/lib/commonjs/screens/digital-lending/Step4.js.map +1 -1
  103. package/lib/commonjs/screens/digital-lending/Step5.js +1 -1
  104. package/lib/commonjs/screens/digital-lending/Step5.js.map +1 -1
  105. package/lib/commonjs/screens/digital-lending/Step6.js +1 -1
  106. package/lib/commonjs/screens/digital-lending/Step6.js.map +1 -1
  107. package/lib/commonjs/screens/digital-lending/index.js +1 -1
  108. package/lib/commonjs/screens/digital-lending/index.js.map +1 -1
  109. package/lib/commonjs/screens/eSign/PreviewContract.js +1 -1
  110. package/lib/commonjs/screens/eSign/PreviewContract.js.map +1 -1
  111. package/lib/commonjs/screens/eSign/Store.js +1 -1
  112. package/lib/commonjs/screens/eSign/Store.js.flow +9 -2
  113. package/lib/commonjs/screens/eSign/Store.js.map +1 -1
  114. package/lib/commonjs/screens/eSign/index.js +1 -1
  115. package/lib/commonjs/screens/eSign/index.js.flow +4 -1
  116. package/lib/commonjs/screens/eSign/index.js.map +1 -1
  117. package/lib/commonjs/screens/forgotPassword/index.js +1 -1
  118. package/lib/commonjs/screens/forgotPassword/index.js.map +1 -1
  119. package/lib/commonjs/screens/full-submit/accept_policy.js +1 -1
  120. package/lib/commonjs/screens/full-submit/accept_policy.js.map +1 -1
  121. package/lib/commonjs/screens/full-submit/index.js +1 -1
  122. package/lib/commonjs/screens/full-submit/index.js.flow +7 -7
  123. package/lib/commonjs/screens/full-submit/index.js.map +1 -1
  124. package/lib/commonjs/screens/full-submit/selfie.js +1 -1
  125. package/lib/commonjs/screens/full-submit/selfie.js.map +1 -1
  126. package/lib/commonjs/screens/full-submit/update-document.js +1 -1
  127. package/lib/commonjs/screens/full-submit/update-document.js.flow +1 -1
  128. package/lib/commonjs/screens/full-submit/update-document.js.map +1 -1
  129. package/lib/commonjs/screens/full-submit/update-info.js +1 -1
  130. package/lib/commonjs/screens/full-submit/update-info.js.flow +1 -1
  131. package/lib/commonjs/screens/full-submit/update-info.js.map +1 -1
  132. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js +1 -1
  133. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  134. package/lib/commonjs/screens/guide-transfer-bank/index.js +1 -1
  135. package/lib/commonjs/screens/guide-transfer-bank/index.js.map +1 -1
  136. package/lib/commonjs/screens/home/CIMBxTima.js +1 -1
  137. package/lib/commonjs/screens/home/CIMBxTima.js.map +1 -1
  138. package/lib/commonjs/screens/home/index.js +1 -1
  139. package/lib/commonjs/screens/home/index.js.flow +1809 -1400
  140. package/lib/commonjs/screens/home/index.js.map +1 -1
  141. package/lib/commonjs/screens/intro/index.js +1 -1
  142. package/lib/commonjs/screens/intro/index.js.map +1 -1
  143. package/lib/commonjs/screens/introduction/index.js +1 -1
  144. package/lib/commonjs/screens/introduction/index.js.map +1 -1
  145. package/lib/commonjs/screens/liveness/LivenessStore.js +1 -1
  146. package/lib/commonjs/screens/liveness/LivenessStore.js.flow +87 -1
  147. package/lib/commonjs/screens/liveness/LivenessStore.js.map +1 -1
  148. package/lib/commonjs/screens/liveness/index.js +1 -1
  149. package/lib/commonjs/screens/liveness/index.js.map +1 -1
  150. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  151. package/lib/commonjs/screens/liveness-v2/index.js.flow +36 -23
  152. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  153. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
  154. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
  155. package/lib/commonjs/screens/loan/UpdateLoan.js +1 -1
  156. package/lib/commonjs/screens/loan/UpdateLoan.js.map +1 -1
  157. package/lib/commonjs/screens/loginWithPassword/index.js +1 -1
  158. package/lib/commonjs/screens/loginWithPassword/index.js.map +1 -1
  159. package/lib/commonjs/screens/main/index.js +1 -1
  160. package/lib/commonjs/screens/main/index.js.map +1 -1
  161. package/lib/commonjs/screens/mrz-scanner/index.js +1 -1
  162. package/lib/commonjs/screens/mrz-scanner/index.js.flow +2 -2
  163. package/lib/commonjs/screens/mrz-scanner/index.js.map +1 -1
  164. package/lib/commonjs/screens/nationalID/index.js +1 -1
  165. package/lib/commonjs/screens/nationalID/index.js.map +1 -1
  166. package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
  167. package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
  168. package/lib/commonjs/screens/notification/index.js +1 -1
  169. package/lib/commonjs/screens/notification/index.js.map +1 -1
  170. package/lib/commonjs/screens/otp/index.js +1 -1
  171. package/lib/commonjs/screens/otp/index.js.map +1 -1
  172. package/lib/commonjs/screens/payment-evidence/Guideline.js +1 -1
  173. package/lib/commonjs/screens/payment-evidence/Guideline.js.map +1 -1
  174. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js +1 -1
  175. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js.map +1 -1
  176. package/lib/commonjs/screens/payment-evidence/index.js +1 -1
  177. package/lib/commonjs/screens/payment-evidence/index.js.map +1 -1
  178. package/lib/commonjs/screens/personal/index.js +1 -1
  179. package/lib/commonjs/screens/personal/index.js.map +1 -1
  180. package/lib/commonjs/screens/qualify/index.js +1 -1
  181. package/lib/commonjs/screens/qualify/index.js.map +1 -1
  182. package/lib/commonjs/screens/quick-submit/index.js +1 -1
  183. package/lib/commonjs/screens/quick-submit/index.js.map +1 -1
  184. package/lib/commonjs/screens/register/index.js +1 -1
  185. package/lib/commonjs/screens/register/index.js.flow +3 -1
  186. package/lib/commonjs/screens/register/index.js.map +1 -1
  187. package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
  188. package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
  189. package/lib/commonjs/screens/schedule-payment/index.js +1 -1
  190. package/lib/commonjs/screens/schedule-payment/index.js.map +1 -1
  191. package/lib/commonjs/screens/schedule-payment/payment-list.js +1 -1
  192. package/lib/commonjs/screens/schedule-payment/payment-list.js.map +1 -1
  193. package/lib/commonjs/screens/selfie/index.js +1 -1
  194. package/lib/commonjs/screens/selfie/index.js.map +1 -1
  195. package/lib/commonjs/screens/setPassword/confirmPassword.js +1 -1
  196. package/lib/commonjs/screens/setPassword/confirmPassword.js.map +1 -1
  197. package/lib/commonjs/screens/setPassword/index.js +1 -1
  198. package/lib/commonjs/screens/setPassword/index.js.map +1 -1
  199. package/lib/commonjs/screens/sign-tima/ConfirmContract.js +1 -1
  200. package/lib/commonjs/screens/sign-tima/ConfirmContract.js.map +1 -1
  201. package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
  202. package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
  203. package/lib/commonjs/screens/splash/index.js +1 -1
  204. package/lib/commonjs/screens/splash/index.js.map +1 -1
  205. package/lib/commonjs/screens/terms/QuickTerm.js +1 -1
  206. package/lib/commonjs/screens/terms/QuickTerm.js.map +1 -1
  207. package/lib/commonjs/screens/terms/TermScreen.js +1 -1
  208. package/lib/commonjs/screens/terms/TermScreen.js.map +1 -1
  209. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js +2 -0
  210. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.flow +373 -0
  211. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.map +1 -0
  212. package/lib/commonjs/screens/toan-trinh-so/OCR.js +2 -0
  213. package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +831 -0
  214. package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -0
  215. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +2 -0
  216. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +467 -0
  217. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.map +1 -0
  218. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +2 -0
  219. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +1007 -0
  220. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -0
  221. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +2 -0
  222. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +791 -0
  223. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -0
  224. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +2 -0
  225. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +1200 -0
  226. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -0
  227. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js +2 -0
  228. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.flow +242 -0
  229. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -0
  230. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +2 -0
  231. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +247 -0
  232. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -0
  233. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js +2 -0
  234. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.flow +356 -0
  235. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.map +1 -0
  236. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +2 -0
  237. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +267 -0
  238. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -0
  239. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +2 -0
  240. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +143 -0
  241. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -0
  242. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +2 -0
  243. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +477 -0
  244. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -0
  245. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +2 -0
  246. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +197 -0
  247. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -0
  248. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +2 -0
  249. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +239 -0
  250. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -0
  251. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +2 -0
  252. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +240 -0
  253. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -0
  254. package/lib/commonjs/screens/toan-trinh-so/store.js +2 -0
  255. package/lib/commonjs/screens/toan-trinh-so/store.js.flow +237 -0
  256. package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -0
  257. package/lib/commonjs/screens/uploadVideo/index.js +1 -1
  258. package/lib/commonjs/screens/uploadVideo/index.js.map +1 -1
  259. package/lib/commonjs/services/api/api-config.js +1 -1
  260. package/lib/commonjs/services/api/api-config.js.flow +2 -2
  261. package/lib/commonjs/services/api/api-config.js.map +1 -1
  262. package/lib/commonjs/services/api/api.js +1 -1
  263. package/lib/commonjs/services/api/api.js.flow +235 -0
  264. package/lib/commonjs/services/api/api.js.map +1 -1
  265. package/lib/commonjs/utils/index.js +1 -1
  266. package/lib/commonjs/utils/index.js.flow +67 -45
  267. package/lib/commonjs/utils/index.js.map +1 -1
  268. package/lib/commonjs/utils/storage/storage.js +1 -1
  269. package/lib/commonjs/utils/storage/storage.js.flow +4 -0
  270. package/lib/commonjs/utils/storage/storage.js.map +1 -1
  271. package/lib/module/assets/icons/cam2.svg +5 -0
  272. package/lib/module/assets/icons/chip.svg +20 -0
  273. package/lib/module/assets/icons/index.js +1 -1
  274. package/lib/module/assets/icons/index.js.map +1 -1
  275. package/lib/module/assets/icons/ocr.svg +11 -0
  276. package/lib/module/assets/icons/takePhoto.svg +20 -0
  277. package/lib/module/assets/icons/tima_small.svg +12 -23
  278. package/lib/module/assets/svgs/back.svg +4 -0
  279. package/lib/module/assets/svgs/complete.svg +27 -0
  280. package/lib/module/assets/svgs/currentStep.svg +28 -0
  281. package/lib/module/assets/svgs/edit.svg +42 -0
  282. package/lib/module/assets/svgs/edit_success.svg +15 -0
  283. package/lib/module/assets/svgs/ekyc.svg +18 -0
  284. package/lib/module/assets/svgs/ekyc_success.svg +6 -0
  285. package/lib/module/assets/svgs/index.js +2 -0
  286. package/lib/module/assets/svgs/index.js.map +1 -0
  287. package/lib/module/assets/svgs/nextStep.svg +21 -0
  288. package/lib/module/assets/svgs/notify.svg +18 -0
  289. package/lib/module/assets/svgs/orc_success.svg +11 -0
  290. package/lib/module/assets/tts/1000009864.png +0 -0
  291. package/lib/module/assets/tts/1000009872.png +0 -0
  292. package/lib/module/assets/tts/1000011964.png +0 -0
  293. package/lib/module/assets/tts/Banner.png +0 -0
  294. package/lib/module/assets/tts/Frame 1000011947.png +0 -0
  295. package/lib/module/assets/tts/Frame1000011946.png +0 -0
  296. package/lib/module/assets/tts/Frame1000011953.png +0 -0
  297. package/lib/module/assets/tts/back.png +0 -0
  298. package/lib/module/assets/tts/front.png +0 -0
  299. package/lib/module/assets/tts/otp.png +0 -0
  300. package/lib/module/assets/tts/vehicleRegistration.png +0 -0
  301. package/lib/module/assets/tts/vehicleStep.png +0 -0
  302. package/lib/module/components/CIMBLoading.js +1 -1
  303. package/lib/module/components/CIMBLoading.js.map +1 -1
  304. package/lib/module/components/CommonSelect.js +1 -1
  305. package/lib/module/components/CommonSelect.js.map +1 -1
  306. package/lib/module/components/Loading.js +1 -1
  307. package/lib/module/components/Loading.js.map +1 -1
  308. package/lib/module/components/MButton.js +1 -1
  309. package/lib/module/components/MButton.js.map +1 -1
  310. package/lib/module/components/MHeader.js +1 -1
  311. package/lib/module/components/MHeader.js.map +1 -1
  312. package/lib/module/components/MSelect.js +2 -0
  313. package/lib/module/components/MSelect.js.map +1 -0
  314. package/lib/module/components/MText.js +1 -1
  315. package/lib/module/components/MText.js.map +1 -1
  316. package/lib/module/components/MyTextInput.js +1 -1
  317. package/lib/module/components/MyTextInput.js.map +1 -1
  318. package/lib/module/components/StepIndicator.js +2 -0
  319. package/lib/module/components/StepIndicator.js.map +1 -0
  320. package/lib/module/components/keyboardspace/index.js +1 -1
  321. package/lib/module/components/keyboardspace/index.js.map +1 -1
  322. package/lib/module/components/logoTima/index.js +1 -1
  323. package/lib/module/components/logoTima/index.js.map +1 -1
  324. package/lib/module/components/select/index.js +1 -1
  325. package/lib/module/components/select/index.js.map +1 -1
  326. package/lib/module/index.js +1 -1
  327. package/lib/module/index.js.map +1 -1
  328. package/lib/module/navigation/primary-navigator.js +1 -1
  329. package/lib/module/navigation/primary-navigator.js.map +1 -1
  330. package/lib/module/navigation/root-navigator.js +1 -1
  331. package/lib/module/navigation/root-navigator.js.map +1 -1
  332. package/lib/module/screens/Selector.js +1 -1
  333. package/lib/module/screens/Selector.js.map +1 -1
  334. package/lib/module/screens/camera/index.js +1 -1
  335. package/lib/module/screens/camera/index.js.map +1 -1
  336. package/lib/module/screens/cimb-sign/index.js +1 -1
  337. package/lib/module/screens/cimb-sign/index.js.map +1 -1
  338. package/lib/module/screens/contract/index.js +1 -1
  339. package/lib/module/screens/contract/index.js.map +1 -1
  340. package/lib/module/screens/detail-loan/DetailLoanTima.js +1 -1
  341. package/lib/module/screens/detail-loan/DetailLoanTima.js.map +1 -1
  342. package/lib/module/screens/detail-loan/Info.js +1 -1
  343. package/lib/module/screens/detail-loan/Info.js.map +1 -1
  344. package/lib/module/screens/detail-loan/Payment.js +1 -1
  345. package/lib/module/screens/detail-loan/Payment.js.map +1 -1
  346. package/lib/module/screens/detail-loan/PaymentAll.js +1 -1
  347. package/lib/module/screens/detail-loan/PaymentAll.js.map +1 -1
  348. package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
  349. package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
  350. package/lib/module/screens/detail-loan/QrPayment.js +1 -1
  351. package/lib/module/screens/detail-loan/QrPayment.js.map +1 -1
  352. package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
  353. package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
  354. package/lib/module/screens/detail-loan/index.js +1 -1
  355. package/lib/module/screens/detail-loan/index.js.map +1 -1
  356. package/lib/module/screens/digital-lending/Step1.js +1 -1
  357. package/lib/module/screens/digital-lending/Step1.js.map +1 -1
  358. package/lib/module/screens/digital-lending/Step2.js +1 -1
  359. package/lib/module/screens/digital-lending/Step2.js.map +1 -1
  360. package/lib/module/screens/digital-lending/Step3.js +1 -1
  361. package/lib/module/screens/digital-lending/Step3.js.map +1 -1
  362. package/lib/module/screens/digital-lending/Step4.js +1 -1
  363. package/lib/module/screens/digital-lending/Step4.js.map +1 -1
  364. package/lib/module/screens/digital-lending/Step5.js +1 -1
  365. package/lib/module/screens/digital-lending/Step5.js.map +1 -1
  366. package/lib/module/screens/digital-lending/Step6.js +1 -1
  367. package/lib/module/screens/digital-lending/Step6.js.map +1 -1
  368. package/lib/module/screens/digital-lending/index.js +1 -1
  369. package/lib/module/screens/digital-lending/index.js.map +1 -1
  370. package/lib/module/screens/eSign/PreviewContract.js +1 -1
  371. package/lib/module/screens/eSign/PreviewContract.js.map +1 -1
  372. package/lib/module/screens/eSign/Store.js +1 -1
  373. package/lib/module/screens/eSign/Store.js.map +1 -1
  374. package/lib/module/screens/eSign/index.js +1 -1
  375. package/lib/module/screens/eSign/index.js.map +1 -1
  376. package/lib/module/screens/forgotPassword/index.js +1 -1
  377. package/lib/module/screens/forgotPassword/index.js.map +1 -1
  378. package/lib/module/screens/full-submit/accept_policy.js +1 -1
  379. package/lib/module/screens/full-submit/accept_policy.js.map +1 -1
  380. package/lib/module/screens/full-submit/index.js +1 -1
  381. package/lib/module/screens/full-submit/index.js.map +1 -1
  382. package/lib/module/screens/full-submit/selfie.js +1 -1
  383. package/lib/module/screens/full-submit/selfie.js.map +1 -1
  384. package/lib/module/screens/full-submit/update-document.js +1 -1
  385. package/lib/module/screens/full-submit/update-document.js.map +1 -1
  386. package/lib/module/screens/full-submit/update-info.js +1 -1
  387. package/lib/module/screens/full-submit/update-info.js.map +1 -1
  388. package/lib/module/screens/guide-transfer-bank/TransferDetail.js +1 -1
  389. package/lib/module/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  390. package/lib/module/screens/guide-transfer-bank/index.js +1 -1
  391. package/lib/module/screens/guide-transfer-bank/index.js.map +1 -1
  392. package/lib/module/screens/home/CIMBxTima.js +1 -1
  393. package/lib/module/screens/home/CIMBxTima.js.map +1 -1
  394. package/lib/module/screens/home/index.js +1 -1
  395. package/lib/module/screens/home/index.js.map +1 -1
  396. package/lib/module/screens/intro/index.js +1 -1
  397. package/lib/module/screens/intro/index.js.map +1 -1
  398. package/lib/module/screens/introduction/index.js +1 -1
  399. package/lib/module/screens/introduction/index.js.map +1 -1
  400. package/lib/module/screens/liveness/LivenessStore.js +1 -1
  401. package/lib/module/screens/liveness/LivenessStore.js.map +1 -1
  402. package/lib/module/screens/liveness/index.js +1 -1
  403. package/lib/module/screens/liveness/index.js.map +1 -1
  404. package/lib/module/screens/liveness-v2/index.js +1 -1
  405. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  406. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
  407. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
  408. package/lib/module/screens/loan/UpdateLoan.js +1 -1
  409. package/lib/module/screens/loan/UpdateLoan.js.map +1 -1
  410. package/lib/module/screens/loginWithPassword/index.js +1 -1
  411. package/lib/module/screens/loginWithPassword/index.js.map +1 -1
  412. package/lib/module/screens/main/index.js +1 -1
  413. package/lib/module/screens/main/index.js.map +1 -1
  414. package/lib/module/screens/mrz-scanner/index.js +1 -1
  415. package/lib/module/screens/mrz-scanner/index.js.map +1 -1
  416. package/lib/module/screens/nationalID/index.js +1 -1
  417. package/lib/module/screens/nationalID/index.js.map +1 -1
  418. package/lib/module/screens/nationalIDBack/index.js +1 -1
  419. package/lib/module/screens/nationalIDBack/index.js.map +1 -1
  420. package/lib/module/screens/notification/index.js +1 -1
  421. package/lib/module/screens/notification/index.js.map +1 -1
  422. package/lib/module/screens/otp/index.js +1 -1
  423. package/lib/module/screens/otp/index.js.map +1 -1
  424. package/lib/module/screens/payment-evidence/Guideline.js +1 -1
  425. package/lib/module/screens/payment-evidence/Guideline.js.map +1 -1
  426. package/lib/module/screens/payment-evidence/ModalGuideline.js +1 -1
  427. package/lib/module/screens/payment-evidence/ModalGuideline.js.map +1 -1
  428. package/lib/module/screens/payment-evidence/index.js +1 -1
  429. package/lib/module/screens/payment-evidence/index.js.map +1 -1
  430. package/lib/module/screens/personal/index.js +1 -1
  431. package/lib/module/screens/personal/index.js.map +1 -1
  432. package/lib/module/screens/qualify/index.js +1 -1
  433. package/lib/module/screens/qualify/index.js.map +1 -1
  434. package/lib/module/screens/quick-submit/index.js +1 -1
  435. package/lib/module/screens/quick-submit/index.js.map +1 -1
  436. package/lib/module/screens/register/index.js +1 -1
  437. package/lib/module/screens/register/index.js.map +1 -1
  438. package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
  439. package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
  440. package/lib/module/screens/schedule-payment/index.js +1 -1
  441. package/lib/module/screens/schedule-payment/index.js.map +1 -1
  442. package/lib/module/screens/schedule-payment/payment-list.js +1 -1
  443. package/lib/module/screens/schedule-payment/payment-list.js.map +1 -1
  444. package/lib/module/screens/selfie/index.js +1 -1
  445. package/lib/module/screens/selfie/index.js.map +1 -1
  446. package/lib/module/screens/setPassword/confirmPassword.js +1 -1
  447. package/lib/module/screens/setPassword/confirmPassword.js.map +1 -1
  448. package/lib/module/screens/setPassword/index.js +1 -1
  449. package/lib/module/screens/setPassword/index.js.map +1 -1
  450. package/lib/module/screens/sign-tima/ConfirmContract.js +1 -1
  451. package/lib/module/screens/sign-tima/ConfirmContract.js.map +1 -1
  452. package/lib/module/screens/sign-tima/ViewContract.js +1 -1
  453. package/lib/module/screens/sign-tima/ViewContract.js.map +1 -1
  454. package/lib/module/screens/splash/index.js +1 -1
  455. package/lib/module/screens/splash/index.js.map +1 -1
  456. package/lib/module/screens/terms/QuickTerm.js +1 -1
  457. package/lib/module/screens/terms/QuickTerm.js.map +1 -1
  458. package/lib/module/screens/terms/TermScreen.js +1 -1
  459. package/lib/module/screens/terms/TermScreen.js.map +1 -1
  460. package/lib/module/screens/toan-trinh-so/LoanInterestRate.js +2 -0
  461. package/lib/module/screens/toan-trinh-so/LoanInterestRate.js.map +1 -0
  462. package/lib/module/screens/toan-trinh-so/OCR.js +2 -0
  463. package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -0
  464. package/lib/module/screens/toan-trinh-so/RegisterCamera.js +2 -0
  465. package/lib/module/screens/toan-trinh-so/RegisterCamera.js.map +1 -0
  466. package/lib/module/screens/toan-trinh-so/ReviewInformation.js +2 -0
  467. package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -0
  468. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +2 -0
  469. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -0
  470. package/lib/module/screens/toan-trinh-so/ReviewLoan.js +2 -0
  471. package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -0
  472. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js +2 -0
  473. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -0
  474. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +2 -0
  475. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -0
  476. package/lib/module/screens/toan-trinh-so/TTSOTP.js +2 -0
  477. package/lib/module/screens/toan-trinh-so/TTSOTP.js.map +1 -0
  478. package/lib/module/screens/toan-trinh-so/TTSSelfie.js +2 -0
  479. package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -0
  480. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +2 -0
  481. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -0
  482. package/lib/module/screens/toan-trinh-so/VehicleCamera.js +2 -0
  483. package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -0
  484. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +2 -0
  485. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -0
  486. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +2 -0
  487. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -0
  488. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +2 -0
  489. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -0
  490. package/lib/module/screens/toan-trinh-so/store.js +2 -0
  491. package/lib/module/screens/toan-trinh-so/store.js.map +1 -0
  492. package/lib/module/screens/uploadVideo/index.js +1 -1
  493. package/lib/module/screens/uploadVideo/index.js.map +1 -1
  494. package/lib/module/services/api/api-config.js +1 -1
  495. package/lib/module/services/api/api-config.js.map +1 -1
  496. package/lib/module/services/api/api.js +1 -1
  497. package/lib/module/services/api/api.js.map +1 -1
  498. package/lib/module/utils/index.js +1 -1
  499. package/lib/module/utils/index.js.map +1 -1
  500. package/lib/module/utils/storage/storage.js +1 -1
  501. package/lib/module/utils/storage/storage.js.map +1 -1
  502. package/lib/typescript/assets/icons/index.d.ts +5 -1
  503. package/lib/typescript/assets/icons/index.d.ts.map +1 -1
  504. package/lib/typescript/assets/svgs/index.d.ts +12 -0
  505. package/lib/typescript/assets/svgs/index.d.ts.map +1 -0
  506. package/lib/typescript/components/MSelect.d.ts +2 -0
  507. package/lib/typescript/components/MSelect.d.ts.map +1 -0
  508. package/lib/typescript/components/StepIndicator.d.ts +5 -0
  509. package/lib/typescript/components/StepIndicator.d.ts.map +1 -0
  510. package/lib/typescript/components/select/index.d.ts.map +1 -1
  511. package/lib/typescript/index.d.ts.map +1 -1
  512. package/lib/typescript/navigation/primary-navigator.d.ts +16 -0
  513. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  514. package/lib/typescript/screens/eSign/Store.d.ts +1 -1
  515. package/lib/typescript/screens/eSign/Store.d.ts.map +1 -1
  516. package/lib/typescript/screens/eSign/index.d.ts.map +1 -1
  517. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  518. package/lib/typescript/screens/liveness/LivenessStore.d.ts +1 -0
  519. package/lib/typescript/screens/liveness/LivenessStore.d.ts.map +1 -1
  520. package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
  521. package/lib/typescript/screens/register/index.d.ts.map +1 -1
  522. package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts +2 -0
  523. package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts.map +1 -0
  524. package/lib/typescript/screens/toan-trinh-so/OCR.d.ts +2 -0
  525. package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -0
  526. package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts +2 -0
  527. package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts.map +1 -0
  528. package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts +2 -0
  529. package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -0
  530. package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts +2 -0
  531. package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -0
  532. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts +2 -0
  533. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -0
  534. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDBack.d.ts +2 -0
  535. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDBack.d.ts.map +1 -0
  536. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts +2 -0
  537. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts.map +1 -0
  538. package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts +2 -0
  539. package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts.map +1 -0
  540. package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts +2 -0
  541. package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -0
  542. package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts +2 -0
  543. package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -0
  544. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts +2 -0
  545. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -0
  546. package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts +2 -0
  547. package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts.map +1 -0
  548. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts +2 -0
  549. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts.map +1 -0
  550. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts +2 -0
  551. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts.map +1 -0
  552. package/lib/typescript/screens/toan-trinh-so/store.d.ts +26 -0
  553. package/lib/typescript/screens/toan-trinh-so/store.d.ts.map +1 -0
  554. package/lib/typescript/services/api/api.d.ts +224 -0
  555. package/lib/typescript/services/api/api.d.ts.map +1 -1
  556. package/lib/typescript/utils/index.d.ts +8 -0
  557. package/lib/typescript/utils/index.d.ts.map +1 -1
  558. package/lib/typescript/utils/storage/storage.d.ts +3 -0
  559. package/lib/typescript/utils/storage/storage.d.ts.map +1 -1
  560. package/package.json +1 -1
  561. package/src/assets/icons/cam2.svg +5 -0
  562. package/src/assets/icons/chip.svg +20 -0
  563. package/src/assets/icons/index.tsx +8 -0
  564. package/src/assets/icons/ocr.svg +11 -0
  565. package/src/assets/icons/takePhoto.svg +20 -0
  566. package/src/assets/icons/tima_small.svg +12 -23
  567. package/src/assets/svgs/back.svg +4 -0
  568. package/src/assets/svgs/complete.svg +27 -0
  569. package/src/assets/svgs/currentStep.svg +28 -0
  570. package/src/assets/svgs/edit.svg +42 -0
  571. package/src/assets/svgs/edit_success.svg +15 -0
  572. package/src/assets/svgs/ekyc.svg +18 -0
  573. package/src/assets/svgs/ekyc_success.svg +6 -0
  574. package/src/assets/svgs/index.tsx +23 -0
  575. package/src/assets/svgs/nextStep.svg +21 -0
  576. package/src/assets/svgs/notify.svg +18 -0
  577. package/src/assets/svgs/orc_success.svg +11 -0
  578. package/src/assets/tts/1000009864.png +0 -0
  579. package/src/assets/tts/1000009872.png +0 -0
  580. package/src/assets/tts/1000011964.png +0 -0
  581. package/src/assets/tts/Banner.png +0 -0
  582. package/src/assets/tts/Frame 1000011947.png +0 -0
  583. package/src/assets/tts/Frame1000011946.png +0 -0
  584. package/src/assets/tts/Frame1000011953.png +0 -0
  585. package/src/assets/tts/back.png +0 -0
  586. package/src/assets/tts/front.png +0 -0
  587. package/src/assets/tts/otp.png +0 -0
  588. package/src/assets/tts/vehicleRegistration.png +0 -0
  589. package/src/assets/tts/vehicleStep.png +0 -0
  590. package/src/components/MHeader.tsx +1 -1
  591. package/src/components/MSelect.tsx +78 -0
  592. package/src/components/StepIndicator.tsx +85 -0
  593. package/src/components/select/index.tsx +19 -3
  594. package/src/index.tsx +3 -1
  595. package/src/navigation/primary-navigator.tsx +81 -1
  596. package/src/screens/camera/index.tsx +1 -1
  597. package/src/screens/eSign/Store.tsx +9 -2
  598. package/src/screens/eSign/index.tsx +4 -1
  599. package/src/screens/full-submit/index.tsx +7 -7
  600. package/src/screens/full-submit/update-document.tsx +1 -1
  601. package/src/screens/full-submit/update-info.tsx +1 -1
  602. package/src/screens/home/index.tsx +1809 -1400
  603. package/src/screens/liveness/LivenessStore.tsx +87 -1
  604. package/src/screens/liveness-v2/index.tsx +36 -23
  605. package/src/screens/mrz-scanner/index.tsx +2 -2
  606. package/src/screens/register/index.tsx +3 -1
  607. package/src/screens/toan-trinh-so/LoanInterestRate.tsx +373 -0
  608. package/src/screens/toan-trinh-so/OCR.tsx +831 -0
  609. package/src/screens/toan-trinh-so/RegisterCamera.tsx +467 -0
  610. package/src/screens/toan-trinh-so/ReviewInformation.tsx +1007 -0
  611. package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +791 -0
  612. package/src/screens/toan-trinh-so/ReviewLoan.tsx +1200 -0
  613. package/src/screens/toan-trinh-so/TTSNationalIDBack.tsx +242 -0
  614. package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +247 -0
  615. package/src/screens/toan-trinh-so/TTSOTP.tsx +356 -0
  616. package/src/screens/toan-trinh-so/TTSSelfie.tsx +267 -0
  617. package/src/screens/toan-trinh-so/TTSSignLoan.tsx +143 -0
  618. package/src/screens/toan-trinh-so/VehicleCamera.tsx +477 -0
  619. package/src/screens/toan-trinh-so/VehicleRegistration.tsx +197 -0
  620. package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +239 -0
  621. package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +240 -0
  622. package/src/screens/toan-trinh-so/store.ts +237 -0
  623. package/src/services/api/api-config.ts +2 -2
  624. package/src/services/api/api.ts +235 -0
  625. package/src/utils/index.tsx +67 -45
  626. package/src/utils/storage/storage.ts +4 -0
@@ -14,6 +14,7 @@ import {
14
14
  StatusBar,
15
15
  TouchableOpacity,
16
16
  View,
17
+ ViewStyle,
17
18
  } from 'react-native';
18
19
  import {
19
20
  useNavigation,
@@ -45,6 +46,7 @@ import {
45
46
  IconVideo,
46
47
  Info,
47
48
  LogoSmall,
49
+ OcrSvg,
48
50
  SignDisable,
49
51
  TimaNormal,
50
52
  TopupSuccessSvg,
@@ -75,6 +77,14 @@ import { Api } from '../../services/api';
75
77
  import { load, save } from '../../utils/storage';
76
78
  import Loading from '../../components/Loading';
77
79
  import MButton from '../../components/MButton';
80
+ import ttsStore from '../toan-trinh-so/store';
81
+ import {
82
+ IconOCRSuccess,
83
+ IconEdit,
84
+ IconEditSuccess,
85
+ IconEkyc,
86
+ IconEkycSuccess,
87
+ } from '../../assets/svgs';
78
88
 
79
89
  const listBanners = [
80
90
  require('../../assets/img/banner1.png'),
@@ -83,14 +93,23 @@ const listBanners = [
83
93
 
84
94
  let _unsubscribe;
85
95
 
96
+ const $action: ViewStyle = {
97
+ flexDirection: 'column',
98
+ alignItems: 'center',
99
+ };
100
+
86
101
  export const Home = observer(function Home() {
87
102
  const navigation = useNavigation();
88
103
  const [showModal, setShowModal] = useState(false);
89
104
  const [showModal2, setShowModal2] = useState(false);
105
+ const [showModal3, setShowModal3] = useState(false);
106
+
90
107
  const [listLoan, setListLoan] = useState<any[]>();
91
108
  const [checkEKYC, setCheckEKYC] = useState<any>({});
92
109
  const [isLoading, setIsLoading] = useState(false);
93
110
  const [loanCimb, setLoanCimb] = useState(null);
111
+ const [loan, setLoan] = useState(null);
112
+
94
113
  const onRefresh = () => {
95
114
  setIsLoading(true);
96
115
  homeStore.getListLoan();
@@ -124,6 +143,12 @@ export const Home = observer(function Home() {
124
143
  }
125
144
  }
126
145
  }
146
+ if (item?.typeLoan === 5 && item.step === 5) {
147
+ setLoan(item);
148
+ setTimeout(() => {
149
+ setShowModal3(true);
150
+ }, 300);
151
+ }
127
152
  })
128
153
  );
129
154
  }
@@ -175,6 +200,7 @@ export const Home = observer(function Home() {
175
200
  appStore.getLoanTimeAll();
176
201
  appStore.getRateTypeAll();
177
202
  appStore.getInsurenceTimeAll();
203
+ ttsStore.getProvinces();
178
204
  }, 2000);
179
205
  }, []);
180
206
 
@@ -315,7 +341,7 @@ export const Home = observer(function Home() {
315
341
  style={{
316
342
  fontWeight: 'bold',
317
343
  color: 'white',
318
- fontSize: 16,
344
+ fontSize: 14,
319
345
  }}
320
346
  >
321
347
  Vay nhanh 24/7
@@ -375,1488 +401,1772 @@ export const Home = observer(function Home() {
375
401
  <View>
376
402
  {listLoan?.map((item, index) => (
377
403
  <View style={{ marginBottom: 14 }} key={index}>
378
- <View>
379
- {/* // luồng CIMB */}
380
- {item?.isPipelineCIMB ? (
381
- <View>
382
- {/* // type 4 digital topup */}
383
- {item?.typeLoan === 4 ? (
384
- <View>
385
- <View
404
+ {/* TOÀN TRÌNH SỐ */}
405
+ {item?.typeLoan === 5 ? (
406
+ <View>
407
+ <View
408
+ style={{
409
+ backgroundColor: '#FFFFFF',
410
+ paddingHorizontal: 16,
411
+ paddingTop: 16,
412
+ borderRadius: 8,
413
+ borderWidth: 0.5,
414
+ borderColor: '#E0E0E0',
415
+ }}
416
+ >
417
+ <View
418
+ style={{
419
+ flexDirection: 'row',
420
+ alignItems: 'center',
421
+ }}
422
+ >
423
+ <Contract />
424
+ <View style={{ flex: 1, paddingLeft: 8 }}>
425
+ <MText style={commonStyles.textNormalBold}>
426
+ Mã Đơn vay-{item?.id}
427
+ </MText>
428
+ <MText style={commonStyles.textNormal}>
429
+ Số tiền vay (VND):{' '}
430
+ {item?.loanAmount
431
+ ? formatMoney(item?.loanAmount)
432
+ : 'Chưa xác định'}
433
+ </MText>
434
+ </View>
435
+ </View>
436
+ <View
437
+ style={{
438
+ height: 1,
439
+ backgroundColor: '#E0E0E0',
440
+ marginVertical: 16,
441
+ }}
442
+ />
443
+ <View
444
+ style={{
445
+ flexDirection: 'row',
446
+ justifyContent: 'space-between',
447
+ }}
448
+ >
449
+ <MText style={commonStyles.textNormal}>
450
+ Trạng thái
451
+ </MText>
452
+ <MText
453
+ style={[
454
+ commonStyles.textNormalBold,
455
+ { color: '#F05123' },
456
+ ]}
457
+ >
458
+ {item?.loanStatus}
459
+ </MText>
460
+ </View>
461
+ <View
462
+ style={{
463
+ height: 1,
464
+ backgroundColor: '#E0E0E0',
465
+ marginVertical: 16,
466
+ }}
467
+ />
468
+
469
+ <View
470
+ style={{
471
+ flexDirection: 'row',
472
+ justifyContent: 'space-between',
473
+ }}
474
+ >
475
+ <TouchableOpacity
476
+ disabled={item?.step >= 3 ? true : false}
477
+ style={$action}
478
+ onPress={() => {
479
+ if (item?.step === 0) {
480
+ navigation.push(ScreenNames.OCR, {
481
+ loan: item,
482
+ front: true,
483
+ });
484
+ } else if (item?.step === 1) {
485
+ navigation.push(ScreenNames.VehicleCamera, {
486
+ loan: item,
487
+ front: true,
488
+ });
489
+ } else if (item?.step === 2) {
490
+ navigation.push(ScreenNames.RegisterCamera, {
491
+ loan: item,
492
+ });
493
+ }
494
+ }}
495
+ >
496
+ {item?.step >= 3 ? (
497
+ <IconOCRSuccess />
498
+ ) : (
499
+ <OcrSvg />
500
+ )}
501
+ <MText
386
502
  style={{
387
- backgroundColor: '#FFFFFF',
388
- paddingHorizontal: 16,
389
- paddingTop: 16,
390
- borderRadius: 8,
391
- borderWidth: 0.5,
392
- borderColor: '#E0E0E0',
503
+ textAlign: 'center',
504
+ fontSize: 10,
505
+ marginTop: 5,
506
+ color: '#333333',
393
507
  }}
394
508
  >
509
+ OCR{'\n'}chứng từ
510
+ </MText>
511
+ </TouchableOpacity>
512
+ <TouchableOpacity
513
+ disabled={item?.step !== 3 ? true : false}
514
+ style={$action}
515
+ onPress={() => {
516
+ if (item?.step === 3) {
517
+ navigation.push(
518
+ ScreenNames.ReviewInformation,
519
+ {
520
+ loan: item,
521
+ }
522
+ );
523
+ }
524
+ }}
525
+ >
526
+ {item.step > 3 ? (
527
+ <IconEditSuccess />
528
+ ) : (
529
+ <IconEdit />
530
+ )}
531
+ <MText
532
+ style={{
533
+ textAlign: 'center',
534
+ fontSize: 10,
535
+ marginTop: 5,
536
+ color: '#333333',
537
+ }}
538
+ >
539
+ Cập nhật{'\n'}thông tin
540
+ </MText>
541
+ </TouchableOpacity>
542
+ <TouchableOpacity
543
+ onPress={() => {
544
+ navigation.push(ScreenNames.LivenessV2, {
545
+ loan: item,
546
+ });
547
+ }}
548
+ style={$action}
549
+ disabled={item?.step === 5 ? false : true}
550
+ >
551
+ {checkEKYC[item.id] ? (
552
+ <IconEkycSuccess />
553
+ ) : (
554
+ <IconEkyc />
555
+ )}
556
+
557
+ <MText
558
+ style={{
559
+ textAlign: 'center',
560
+ fontSize: 10,
561
+ marginTop: 5,
562
+ color: '#333333',
563
+ }}
564
+ >
565
+ EKYC
566
+ </MText>
567
+ </TouchableOpacity>
568
+ <TouchableOpacity
569
+ style={$action}
570
+ onPress={() => {
571
+ // checkTerm(item, () => {
572
+ // signLoan(item);
573
+ // });
574
+ navigation.push(ScreenNames.TTSSignLoan, {
575
+ loan: item,
576
+ });
577
+ }}
578
+ >
579
+ <IconSign2 />
580
+ <MText
581
+ style={{
582
+ textAlign: 'center',
583
+ fontSize: 10,
584
+ marginTop: 5,
585
+ color: '#333333',
586
+ }}
587
+ >
588
+ Ký HĐ
589
+ </MText>
590
+ </TouchableOpacity>
591
+ {/* <TouchableOpacity style={$action}>
592
+ <IconVideo />
593
+ <MText
594
+ style={{
595
+ textAlign: 'center',
596
+ fontSize: 10,
597
+ marginTop: 5,
598
+ color: '#333333',
599
+ }}
600
+ >
601
+ Quay video
602
+ </MText>
603
+ </TouchableOpacity> */}
604
+ </View>
605
+ <View
606
+ style={{
607
+ flexDirection: 'row',
608
+ alignItems: 'center',
609
+ backgroundColor: '#FBEFE7',
610
+ marginHorizontal: -16,
611
+ paddingVertical: 8,
612
+ marginTop: 16,
613
+ borderBottomRightRadius: 8,
614
+ borderBottomLeftRadius: 8,
615
+ paddingHorizontal: 16,
616
+ }}
617
+ >
618
+ <Info />
619
+ <MText
620
+ style={[
621
+ {
622
+ fontWeight: '300',
623
+ fontSize: 10,
624
+ fontStyle: 'italic',
625
+ color: '#333333',
626
+ marginLeft: 8,
627
+ },
628
+ ]}
629
+ >
630
+ Thực hiện đầy đủ các bước để giải ngân nhanh nhất
631
+ </MText>
632
+ </View>
633
+ </View>
634
+ </View>
635
+ ) : (
636
+ <View>
637
+ {/* // luồng CIMB */}
638
+ {item?.isPipelineCIMB ? (
639
+ <View>
640
+ {/* // type 4 digital topup */}
641
+ {item?.typeLoan === 4 ? (
642
+ <View>
395
643
  <View
396
644
  style={{
397
- flexDirection: 'row',
398
- alignItems: 'center',
399
- }}
400
- >
401
- <Contract />
402
- <View style={{ flex: 1, paddingLeft: 8 }}>
403
- <MText style={commonStyles.textNormalBold}>
404
- Mã Đơn vay-{item?.id}
405
- </MText>
406
- <MText style={commonStyles.textNormal}>
407
- Số tiền vay (VND):{' '}
408
- {item?.loanAmountOffer
409
- ? formatMoney(item?.loanAmountOffer)
410
- : 'Chưa xác định'}
411
- </MText>
412
- </View>
413
- </View>
414
- <View
415
- style={{
416
- height: 1,
417
- backgroundColor: '#E0E0E0',
418
- marginVertical: 16,
419
- }}
420
- />
421
- <View
422
- style={{
423
- flexDirection: 'row',
424
- justifyContent: 'space-between',
645
+ backgroundColor: '#FFFFFF',
646
+ paddingHorizontal: 16,
647
+ paddingTop: 16,
648
+ borderRadius: 8,
649
+ borderWidth: 0.5,
650
+ borderColor: '#E0E0E0',
425
651
  }}
426
652
  >
427
- <MText style={commonStyles.textNormal}>
428
- Trạng thái
429
- </MText>
430
- <MText
431
- style={[
432
- commonStyles.textNormalBold,
433
- { color: '#F05123' },
434
- ]}
653
+ <View
654
+ style={{
655
+ flexDirection: 'row',
656
+ alignItems: 'center',
657
+ }}
435
658
  >
436
- {item?.loanStatus}
437
- </MText>
438
- </View>
439
- <View
440
- style={{
441
- height: 0.5,
442
- backgroundColor: '#E0E0E0',
443
- marginVertical: 16,
444
- }}
445
- />
446
- <View style={{ flexDirection: 'row' }}>
447
- {item?.loanStatus === null ||
448
- item?.loanStatus === '' ? (
449
- <MButton
450
- style={{ alignItems: 'center' }}
451
- onPress={() => {
452
- checkTerm(item, () => {
453
- navigation.dispatch(
454
- StackActions.push(
455
- ScreenNames.CIMBxTima,
456
- {
457
- loan: item,
458
- }
459
- )
460
- );
461
- });
462
- }}
463
- >
464
- <AddInfo />
659
+ <Contract />
660
+ <View style={{ flex: 1, paddingLeft: 8 }}>
465
661
  <MText
466
- style={[
467
- commonStyles.textNormal,
468
- {
469
- fontSize: 12,
470
- fontWeight: '300',
471
- marginTop: 8,
472
- textAlign: 'center',
473
- },
474
- ]}
662
+ style={commonStyles.textNormalBold}
475
663
  >
476
- Hoàn thiện{'\n'}cung cấp thông tin
664
+ Đơn vay-{item?.id}
665
+ </MText>
666
+ <MText style={commonStyles.textNormal}>
667
+ Số tiền vay (VND):{' '}
668
+ {item?.loanAmountOffer
669
+ ? formatMoney(item?.loanAmountOffer)
670
+ : 'Chưa xác định'}
477
671
  </MText>
478
- </MButton>
479
- ) : (
480
- <View>
481
- {item?.isUpdateLoan ||
482
- item?.isUpdateInformation ? (
483
- <TouchableOpacity
484
- style={{ alignItems: 'center' }}
485
- onPress={() => {
486
- checkTerm(item, () => {
487
- if (item?.isUpdateLoan) {
488
- navigation.dispatch(
489
- StackActions.push(
490
- ScreenNames.CimbSelfie,
491
- {
492
- loan: item,
493
- }
494
- )
495
- );
496
- } else {
497
- navigation.dispatch(
498
- StackActions.push(
499
- ScreenNames.QuickSubmit,
500
- {
501
- loan: item,
502
- }
503
- )
504
- );
505
- }
506
- });
507
- }}
508
- >
509
- <AddInfo />
510
- <MText
511
- style={[
512
- commonStyles.textNormal,
513
- {
514
- fontSize: 12,
515
- fontWeight: '300',
516
- marginTop: 8,
517
- textAlign: 'center',
518
- },
519
- ]}
520
- >
521
- Hoàn thiện{'\n'}cung cấp thông tin
522
- </MText>
523
- </TouchableOpacity>
524
- ) : (
525
- <View style={{ alignItems: 'center' }}>
526
- <AddInfoDisable />
527
- <MText
528
- style={[
529
- commonStyles.textNormal,
530
- {
531
- fontSize: 12,
532
- fontWeight: '300',
533
- marginTop: 8,
534
- textAlign: 'center',
535
- },
536
- ]}
537
- >
538
- Hoàn thiện{'\n'}cung cấp thông tin
539
- </MText>
540
- </View>
541
- )}
542
672
  </View>
543
- )}
544
-
545
- {item?.isSignContract && (
546
- <MButton
547
- style={{
548
- alignItems: 'center',
549
- marginLeft: 20,
550
- }}
551
- onPress={() => {
552
- checkTerm(item, () => {
553
- if (item?.urlSignContract) {
673
+ </View>
674
+ <View
675
+ style={{
676
+ height: 1,
677
+ backgroundColor: '#E0E0E0',
678
+ marginVertical: 16,
679
+ }}
680
+ />
681
+ <View
682
+ style={{
683
+ flexDirection: 'row',
684
+ justifyContent: 'space-between',
685
+ }}
686
+ >
687
+ <MText style={commonStyles.textNormal}>
688
+ Trạng thái
689
+ </MText>
690
+ <MText
691
+ style={[
692
+ commonStyles.textNormalBold,
693
+ { color: '#F05123' },
694
+ ]}
695
+ >
696
+ {item?.loanStatus}
697
+ </MText>
698
+ </View>
699
+ <View
700
+ style={{
701
+ height: 0.5,
702
+ backgroundColor: '#E0E0E0',
703
+ marginVertical: 16,
704
+ }}
705
+ />
706
+ <View style={{ flexDirection: 'row' }}>
707
+ {item?.loanStatus === null ||
708
+ item?.loanStatus === '' ? (
709
+ <MButton
710
+ style={{ alignItems: 'center' }}
711
+ onPress={() => {
712
+ checkTerm(item, () => {
554
713
  navigation.dispatch(
555
714
  StackActions.push(
556
- ScreenNames.CIMBSign,
715
+ ScreenNames.CIMBxTima,
557
716
  {
558
- url: item?.urlSignContract,
717
+ loan: item,
559
718
  }
560
719
  )
561
720
  );
562
- } else {
563
- Alert.alert(
564
- 'Thông báo',
565
- 'Bạn chưa thể ký hợp đồng bây giờ?'
566
- );
567
- }
568
- });
569
- }}
570
- >
571
- <IconSign2 />
572
- <MText
573
- style={[
574
- commonStyles.textNormal,
575
- {
576
- fontSize: 12,
577
- fontWeight: '300',
578
- marginTop: 8,
579
- },
580
- ]}
581
- >
582
- Ký hợp đồng
583
- </MText>
584
- </MButton>
585
- )}
586
- {item?.isSignContractTima && (
587
- <MButton
588
- style={{
589
- alignItems: 'center',
590
- marginLeft: 20,
591
- }}
592
- onPress={() => {
593
- checkTerm(item, () => {
594
- navigation.dispatch(
595
- StackActions.push(
596
- ScreenNames.ViewContract,
597
- {
598
- loan: item,
599
- }
600
- )
601
- );
602
- });
603
- }}
604
- >
605
- <ContractTimeIcon />
606
- <MText
607
- style={[
608
- commonStyles.textNormal,
609
- {
610
- fontSize: 12,
611
- fontWeight: '300',
612
- marginTop: 8,
613
- textAlign: 'center',
614
- },
615
- ]}
616
- >
617
- Hợp đồng{'\n'}dịch vụ
618
- </MText>
619
- </MButton>
620
- )}
621
- {item?.paymentEvidenceUrl && (
622
- <MButton
623
- style={{
624
- alignItems: 'center',
625
- marginLeft: 20,
626
- }}
627
- onPress={() => {
628
- checkTerm(item, () => {
629
- navigation.dispatch(
630
- StackActions.push(
631
- ScreenNames.PaymentEvidence,
632
- {
633
- url: item?.paymentEvidenceUrl,
634
- }
635
- )
636
- );
637
- });
638
- }}
639
- >
640
- <IconEviden />
641
- <MText
642
- style={[
643
- commonStyles.textNormal,
644
- {
645
- fontSize: 12,
646
- fontWeight: '300',
647
- marginTop: 8,
648
- textAlign: 'center',
649
- },
650
- ]}
651
- >
652
- Mục đích {'\n'}sử dụng
653
- </MText>
654
- </MButton>
655
- )}
656
- {item?.showPaymentPlan && (
657
- <MButton
658
- style={{
659
- alignItems: 'center',
660
- marginLeft: 20,
661
- }}
662
- onPress={() => {
663
- checkTerm(item, () => {
664
- navigation.dispatch(
665
- StackActions.push(
666
- ScreenNames.SchedulePayment,
667
- {
668
- loan: item,
669
- }
670
- )
671
- );
672
- });
673
- }}
674
- >
675
- <IconSchedule />
676
- <MText
677
- style={[
678
- commonStyles.textNormal,
679
- {
680
- fontSize: 12,
681
- fontWeight: '300',
682
- marginTop: 8,
683
- },
684
- ]}
685
- >
686
- Lịch dự kiến
687
- </MText>
688
- </MButton>
689
- )}
690
- </View>
691
-
692
- {item.messageErrorCIMB !== '' &&
693
- item?.messageErrorCIMB &&
694
- item?.isCimbApproveFull === null ? (
695
- <View
696
- style={{
697
- backgroundColor: '#FBEFE7',
698
- marginHorizontal: -16,
699
- paddingVertical: 8,
700
- marginTop: 16,
701
- borderBottomRightRadius: 8,
702
- borderBottomLeftRadius: 8,
703
- paddingHorizontal: 16,
704
- }}
705
- >
706
- <View
707
- style={{
708
- flexDirection: 'row',
709
- justifyContent: 'space-between',
710
- alignItems: 'center',
711
- }}
712
- >
713
- <View
714
- style={{
715
- flex: 1,
716
- flexDirection: 'row',
717
- paddingRight: 20,
721
+ });
718
722
  }}
719
723
  >
720
- <Image
721
- source={require('./error.png')}
722
- style={{ width: 16, height: 16 }}
723
- />
724
- <MText style={{ marginLeft: 5 }}>
725
- Đơn vay của bạn gặp gián đoạn, vui
726
- lòng liên hệ tổng đài 1900633688
724
+ <AddInfo />
725
+ <MText
726
+ style={[
727
+ commonStyles.textNormal,
728
+ {
729
+ fontSize: 12,
730
+ fontWeight: '300',
731
+ marginTop: 8,
732
+ textAlign: 'center',
733
+ },
734
+ ]}
735
+ >
736
+ Hoàn thiện{'\n'}cung cấp thông tin
727
737
  </MText>
728
- </View>
729
-
730
- <TouchableOpacity
731
- onPress={() => {
732
- Linking.openURL(`tel:1900633688`);
733
- }}
734
- >
735
- <LinearGradient
736
- colors={['#FF8E4F', '#EF592E']}
737
- style={{
738
- paddingHorizontal: 10,
739
- height: 30,
740
- borderRadius: 30,
741
- justifyContent: 'center',
742
- alignItems: 'center',
743
- flexDirection: 'row',
744
- }}
745
- >
746
- <Call />
747
- <MText
748
- style={{
749
- color: 'white',
750
- fontSize: 12,
751
- marginLeft: 5,
738
+ </MButton>
739
+ ) : (
740
+ <View>
741
+ {item?.isUpdateLoan ||
742
+ item?.isUpdateInformation ? (
743
+ <TouchableOpacity
744
+ style={{ alignItems: 'center' }}
745
+ onPress={() => {
746
+ checkTerm(item, () => {
747
+ if (item?.isUpdateLoan) {
748
+ navigation.dispatch(
749
+ StackActions.push(
750
+ ScreenNames.CimbSelfie,
751
+ {
752
+ loan: item,
753
+ }
754
+ )
755
+ );
756
+ } else {
757
+ navigation.dispatch(
758
+ StackActions.push(
759
+ ScreenNames.QuickSubmit,
760
+ {
761
+ loan: item,
762
+ }
763
+ )
764
+ );
765
+ }
766
+ });
752
767
  }}
753
768
  >
754
- Liên hệ
755
- </MText>
756
- </LinearGradient>
757
- </TouchableOpacity>
758
- </View>
759
- </View>
760
- ) : (
761
- <View
762
- style={{
763
- flexDirection: 'row',
764
- alignItems: 'center',
765
- backgroundColor: '#FBEFE7',
766
- marginHorizontal: -16,
767
- paddingVertical: 8,
768
- marginTop: 16,
769
- borderBottomRightRadius: 8,
770
- borderBottomLeftRadius: 8,
771
- paddingHorizontal: 16,
772
- }}
773
- >
774
- <Info />
775
- <MText
776
- style={[
777
- {
778
- fontWeight: '300',
779
- fontSize: 10,
780
- fontStyle: 'italic',
781
- color: '#333333',
782
- marginLeft: 8,
783
- },
784
- ]}
785
- >
786
- {item?.suggestion
787
- ? item?.suggestion
788
- : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
789
- </MText>
769
+ <AddInfo />
770
+ <MText
771
+ style={[
772
+ commonStyles.textNormal,
773
+ {
774
+ fontSize: 12,
775
+ fontWeight: '300',
776
+ marginTop: 8,
777
+ textAlign: 'center',
778
+ },
779
+ ]}
780
+ >
781
+ Hoàn thiện{'\n'}cung cấp thông tin
782
+ </MText>
783
+ </TouchableOpacity>
784
+ ) : (
785
+ <View
786
+ style={{ alignItems: 'center' }}
787
+ >
788
+ <AddInfoDisable />
789
+ <MText
790
+ style={[
791
+ commonStyles.textNormal,
792
+ {
793
+ fontSize: 12,
794
+ fontWeight: '300',
795
+ marginTop: 8,
796
+ textAlign: 'center',
797
+ },
798
+ ]}
799
+ >
800
+ Hoàn thiện{'\n'}cung cấp thông tin
801
+ </MText>
802
+ </View>
803
+ )}
804
+ </View>
805
+ )}
806
+
807
+ {item?.isSignContract && (
808
+ <MButton
809
+ style={{
810
+ alignItems: 'center',
811
+ marginLeft: 20,
812
+ }}
813
+ onPress={() => {
814
+ checkTerm(item, () => {
815
+ if (item?.urlSignContract) {
816
+ navigation.dispatch(
817
+ StackActions.push(
818
+ ScreenNames.CIMBSign,
819
+ {
820
+ url: item?.urlSignContract,
821
+ }
822
+ )
823
+ );
824
+ } else {
825
+ Alert.alert(
826
+ 'Thông báo',
827
+ 'Bạn chưa thể ký hợp đồng bây giờ?'
828
+ );
829
+ }
830
+ });
831
+ }}
832
+ >
833
+ <IconSign2 />
834
+ <MText
835
+ style={[
836
+ commonStyles.textNormal,
837
+ {
838
+ fontSize: 12,
839
+ fontWeight: '300',
840
+ marginTop: 8,
841
+ },
842
+ ]}
843
+ >
844
+ Ký hợp đồng
845
+ </MText>
846
+ </MButton>
847
+ )}
848
+ {item?.isSignContractTima && (
849
+ <MButton
850
+ style={{
851
+ alignItems: 'center',
852
+ marginLeft: 20,
853
+ }}
854
+ onPress={() => {
855
+ checkTerm(item, () => {
856
+ navigation.dispatch(
857
+ StackActions.push(
858
+ ScreenNames.ViewContract,
859
+ {
860
+ loan: item,
861
+ }
862
+ )
863
+ );
864
+ });
865
+ }}
866
+ >
867
+ <ContractTimeIcon />
868
+ <MText
869
+ style={[
870
+ commonStyles.textNormal,
871
+ {
872
+ fontSize: 12,
873
+ fontWeight: '300',
874
+ marginTop: 8,
875
+ textAlign: 'center',
876
+ },
877
+ ]}
878
+ >
879
+ Hợp đồng{'\n'}dịch vụ
880
+ </MText>
881
+ </MButton>
882
+ )}
883
+ {item?.paymentEvidenceUrl && (
884
+ <MButton
885
+ style={{
886
+ alignItems: 'center',
887
+ marginLeft: 20,
888
+ }}
889
+ onPress={() => {
890
+ checkTerm(item, () => {
891
+ navigation.dispatch(
892
+ StackActions.push(
893
+ ScreenNames.PaymentEvidence,
894
+ {
895
+ url: item?.paymentEvidenceUrl,
896
+ }
897
+ )
898
+ );
899
+ });
900
+ }}
901
+ >
902
+ <IconEviden />
903
+ <MText
904
+ style={[
905
+ commonStyles.textNormal,
906
+ {
907
+ fontSize: 12,
908
+ fontWeight: '300',
909
+ marginTop: 8,
910
+ textAlign: 'center',
911
+ },
912
+ ]}
913
+ >
914
+ Mục đích {'\n'}sử dụng
915
+ </MText>
916
+ </MButton>
917
+ )}
918
+ {item?.showPaymentPlan && (
919
+ <MButton
920
+ style={{
921
+ alignItems: 'center',
922
+ marginLeft: 20,
923
+ }}
924
+ onPress={() => {
925
+ checkTerm(item, () => {
926
+ navigation.dispatch(
927
+ StackActions.push(
928
+ ScreenNames.SchedulePayment,
929
+ {
930
+ loan: item,
931
+ }
932
+ )
933
+ );
934
+ });
935
+ }}
936
+ >
937
+ <IconSchedule />
938
+ <MText
939
+ style={[
940
+ commonStyles.textNormal,
941
+ {
942
+ fontSize: 12,
943
+ fontWeight: '300',
944
+ marginTop: 8,
945
+ },
946
+ ]}
947
+ >
948
+ Lịch dự kiến
949
+ </MText>
950
+ </MButton>
951
+ )}
790
952
  </View>
791
- )}
792
- </View>
793
- </View>
794
- ) : // type 2 tái vay
795
- item?.typeLoan === 2 ? (
796
- <Observer>
797
- {() => (
798
- <View>
799
- <View
800
- style={{
801
- backgroundColor: '#FFFFFF',
802
- paddingHorizontal: 16,
803
- paddingTop: 16,
804
- borderRadius: 8,
805
- borderWidth: 0.5,
806
- borderColor: '#E0E0E0',
807
- }}
808
- >
953
+
954
+ {item.messageErrorCIMB !== '' &&
955
+ item?.messageErrorCIMB &&
956
+ item?.isCimbApproveFull === null ? (
809
957
  <View
810
958
  style={{
811
- flexDirection: 'row',
812
- alignItems: 'center',
959
+ backgroundColor: '#FBEFE7',
960
+ marginHorizontal: -16,
961
+ paddingVertical: 8,
962
+ marginTop: 16,
963
+ borderBottomRightRadius: 8,
964
+ borderBottomLeftRadius: 8,
965
+ paddingHorizontal: 16,
813
966
  }}
814
967
  >
815
- <Contract />
816
- <View style={{ flex: 1, paddingLeft: 8 }}>
817
- <MText
818
- style={commonStyles.textNormalBold}
968
+ <View
969
+ style={{
970
+ flexDirection: 'row',
971
+ justifyContent: 'space-between',
972
+ alignItems: 'center',
973
+ }}
974
+ >
975
+ <View
976
+ style={{
977
+ flex: 1,
978
+ flexDirection: 'row',
979
+ paddingRight: 20,
980
+ }}
819
981
  >
820
- Đơn vay {item?.id}
821
- </MText>
822
- <MText style={commonStyles.textNormal}>
823
- Số tiền vay (VND):{' '}
824
- {item?.loanAmount
825
- ? formatMoney(item?.loanAmount)
826
- : 'Chưa xác định'}
827
- </MText>
982
+ <Image
983
+ source={require('./error.png')}
984
+ style={{ width: 16, height: 16 }}
985
+ />
986
+ <MText style={{ marginLeft: 5 }}>
987
+ Đơn vay của bạn gặp gián đoạn, vui
988
+ lòng liên hệ tổng đài 1900633688
989
+ </MText>
990
+ </View>
991
+
992
+ <TouchableOpacity
993
+ onPress={() => {
994
+ Linking.openURL(`tel:1900633688`);
995
+ }}
996
+ >
997
+ <LinearGradient
998
+ colors={['#FF8E4F', '#EF592E']}
999
+ style={{
1000
+ paddingHorizontal: 10,
1001
+ height: 30,
1002
+ borderRadius: 30,
1003
+ justifyContent: 'center',
1004
+ alignItems: 'center',
1005
+ flexDirection: 'row',
1006
+ }}
1007
+ >
1008
+ <Call />
1009
+ <MText
1010
+ style={{
1011
+ color: 'white',
1012
+ fontSize: 12,
1013
+ marginLeft: 5,
1014
+ }}
1015
+ >
1016
+ Liên hệ
1017
+ </MText>
1018
+ </LinearGradient>
1019
+ </TouchableOpacity>
828
1020
  </View>
829
1021
  </View>
830
- <View
831
- style={{
832
- height: 1,
833
- backgroundColor: '#E0E0E0',
834
- marginVertical: 16,
835
- }}
836
- />
1022
+ ) : (
837
1023
  <View
838
1024
  style={{
839
1025
  flexDirection: 'row',
840
- justifyContent: 'space-between',
1026
+ alignItems: 'center',
1027
+ backgroundColor: '#FBEFE7',
1028
+ marginHorizontal: -16,
1029
+ paddingVertical: 8,
1030
+ marginTop: 16,
1031
+ borderBottomRightRadius: 8,
1032
+ borderBottomLeftRadius: 8,
1033
+ paddingHorizontal: 16,
841
1034
  }}
842
1035
  >
843
- <MText style={commonStyles.textNormal}>
844
- Trạng thái
845
- </MText>
1036
+ <Info />
846
1037
  <MText
847
1038
  style={[
848
- commonStyles.textNormalBold,
849
- { color: '#F05123' },
1039
+ {
1040
+ fontWeight: '300',
1041
+ fontSize: 10,
1042
+ fontStyle: 'italic',
1043
+ color: '#333333',
1044
+ marginLeft: 8,
1045
+ },
850
1046
  ]}
851
1047
  >
852
- {item?.loanStatus}
1048
+ {item?.suggestion
1049
+ ? item?.suggestion
1050
+ : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
853
1051
  </MText>
854
1052
  </View>
855
- {/* // cho phép update thông tin */}
856
- {item?.isUpdateLoanReBorrow ? (
857
- <TouchableOpacity
1053
+ )}
1054
+ </View>
1055
+ </View>
1056
+ ) : // type 2 tái vay
1057
+ item?.typeLoan === 2 ? (
1058
+ <Observer>
1059
+ {() => (
1060
+ <View>
1061
+ <View
1062
+ style={{
1063
+ backgroundColor: '#FFFFFF',
1064
+ paddingHorizontal: 16,
1065
+ paddingTop: 16,
1066
+ borderRadius: 8,
1067
+ borderWidth: 0.5,
1068
+ borderColor: '#E0E0E0',
1069
+ }}
1070
+ >
1071
+ <View
858
1072
  style={{
859
- marginTop: 14,
860
- marginBottom: 16,
1073
+ flexDirection: 'row',
1074
+ alignItems: 'center',
861
1075
  }}
862
- onPress={() => {
863
- checkTerm(item, () => {
864
- navigation.push(
865
- 'DigitalLending',
866
- item
867
- );
868
- });
1076
+ >
1077
+ <Contract />
1078
+ <View
1079
+ style={{ flex: 1, paddingLeft: 8 }}
1080
+ >
1081
+ <MText
1082
+ style={commonStyles.textNormalBold}
1083
+ >
1084
+ Đơn vay {item?.id}
1085
+ </MText>
1086
+ <MText
1087
+ style={commonStyles.textNormal}
1088
+ >
1089
+ Số tiền vay (VND):{' '}
1090
+ {item?.loanAmount
1091
+ ? formatMoney(item?.loanAmount)
1092
+ : 'Chưa xác định'}
1093
+ </MText>
1094
+ </View>
1095
+ </View>
1096
+ <View
1097
+ style={{
1098
+ height: 1,
1099
+ backgroundColor: '#E0E0E0',
1100
+ marginVertical: 16,
1101
+ }}
1102
+ />
1103
+ <View
1104
+ style={{
1105
+ flexDirection: 'row',
1106
+ justifyContent: 'space-between',
869
1107
  }}
870
1108
  >
871
- <LinearGradient
1109
+ <MText style={commonStyles.textNormal}>
1110
+ Trạng thái
1111
+ </MText>
1112
+ <MText
1113
+ style={[
1114
+ commonStyles.textNormalBold,
1115
+ { color: '#F05123' },
1116
+ ]}
1117
+ >
1118
+ {item?.loanStatus}
1119
+ </MText>
1120
+ </View>
1121
+ {/* // cho phép update thông tin */}
1122
+ {item?.isUpdateLoanReBorrow ? (
1123
+ <TouchableOpacity
872
1124
  style={{
873
- height: 36,
874
- borderRadius: 30,
875
- paddingHorizontal: 20,
876
- flexDirection: 'row',
877
- alignItems: 'center',
1125
+ marginTop: 14,
1126
+ marginBottom: 16,
1127
+ }}
1128
+ onPress={() => {
1129
+ checkTerm(item, () => {
1130
+ navigation.push(
1131
+ 'DigitalLending',
1132
+ item
1133
+ );
1134
+ });
878
1135
  }}
879
- colors={['#FF8E4F', '#EF592E']}
880
1136
  >
881
- <UpdateIcon />
882
- <MText
1137
+ <LinearGradient
883
1138
  style={{
884
- color: 'white',
885
- marginLeft: 10,
1139
+ height: 36,
1140
+ borderRadius: 30,
1141
+ paddingHorizontal: 20,
1142
+ flexDirection: 'row',
1143
+ alignItems: 'center',
886
1144
  }}
1145
+ colors={['#FF8E4F', '#EF592E']}
887
1146
  >
888
- Hoàn thiện hồ sơ
889
- </MText>
890
- </LinearGradient>
891
- </TouchableOpacity>
892
- ) : (
893
- <View>
894
- <View
895
- style={{
896
- height: 0.5,
897
- backgroundColor: '#E0E0E0',
898
- marginVertical: 16,
899
- }}
900
- />
901
- <View style={{ flexDirection: 'row' }}>
902
- {item?.loanStatus === null ||
903
- item?.loanStatus === '' ? (
904
- <MButton
1147
+ <UpdateIcon />
1148
+ <MText
905
1149
  style={{
906
- alignItems: 'center',
1150
+ color: 'white',
1151
+ marginLeft: 10,
907
1152
  }}
908
- onPress={() => {
909
- checkTerm(item, () => {
1153
+ >
1154
+ Hoàn thiện hồ
1155
+ </MText>
1156
+ </LinearGradient>
1157
+ </TouchableOpacity>
1158
+ ) : (
1159
+ <View>
1160
+ <View
1161
+ style={{
1162
+ height: 0.5,
1163
+ backgroundColor: '#E0E0E0',
1164
+ marginVertical: 16,
1165
+ }}
1166
+ />
1167
+ <View
1168
+ style={{ flexDirection: 'row' }}
1169
+ >
1170
+ {item?.loanStatus === null ||
1171
+ item?.loanStatus === '' ? (
1172
+ <MButton
1173
+ style={{
1174
+ alignItems: 'center',
1175
+ }}
1176
+ onPress={() => {
1177
+ checkTerm(item, () => {
1178
+ navigation.dispatch(
1179
+ StackActions.push(
1180
+ ScreenNames.CIMBxTima,
1181
+ {
1182
+ loan: item,
1183
+ }
1184
+ )
1185
+ );
1186
+ });
1187
+ }}
1188
+ >
1189
+ <AddInfo />
1190
+ <MText
1191
+ style={[
1192
+ commonStyles.textNormal,
1193
+ {
1194
+ fontSize: 12,
1195
+ fontWeight: '300',
1196
+ marginTop: 8,
1197
+ textAlign: 'center',
1198
+ },
1199
+ ]}
1200
+ >
1201
+ Hoàn thiện{'\n'}cung cấp thông
1202
+ tin
1203
+ </MText>
1204
+ </MButton>
1205
+ ) : (
1206
+ <View>
1207
+ {item?.isUpdateLoan ||
1208
+ item?.isUpdateInformation ? (
1209
+ <TouchableOpacity
1210
+ style={{
1211
+ alignItems: 'center',
1212
+ }}
1213
+ onPress={() => {
1214
+ checkTerm(item, () => {
1215
+ if (
1216
+ item?.isUpdateLoan
1217
+ ) {
1218
+ navigation.dispatch(
1219
+ StackActions.push(
1220
+ ScreenNames.CimbSelfie,
1221
+ {
1222
+ loan: item,
1223
+ }
1224
+ )
1225
+ );
1226
+ } else {
1227
+ navigation.dispatch(
1228
+ StackActions.push(
1229
+ ScreenNames.QuickSubmit,
1230
+ {
1231
+ loan: item,
1232
+ }
1233
+ )
1234
+ );
1235
+ }
1236
+ });
1237
+ }}
1238
+ >
1239
+ <AddInfo />
1240
+ <MText
1241
+ style={[
1242
+ commonStyles.textNormal,
1243
+ {
1244
+ fontSize: 12,
1245
+ fontWeight: '300',
1246
+ marginTop: 8,
1247
+ textAlign: 'center',
1248
+ },
1249
+ ]}
1250
+ >
1251
+ Hoàn thiện{'\n'}cung cấp
1252
+ thông tin
1253
+ </MText>
1254
+ </TouchableOpacity>
1255
+ ) : (
1256
+ <View
1257
+ style={{
1258
+ alignItems: 'center',
1259
+ }}
1260
+ >
1261
+ <AddInfoDisable />
1262
+ <MText
1263
+ style={[
1264
+ commonStyles.textNormal,
1265
+ {
1266
+ fontSize: 12,
1267
+ fontWeight: '300',
1268
+ marginTop: 8,
1269
+ textAlign: 'center',
1270
+ },
1271
+ ]}
1272
+ >
1273
+ Hoàn thiện{'\n'}cung cấp
1274
+ thông tin
1275
+ </MText>
1276
+ </View>
1277
+ )}
1278
+ </View>
1279
+ )}
1280
+
1281
+ {item?.isSignContract && (
1282
+ <MButton
1283
+ style={{
1284
+ alignItems: 'center',
1285
+ marginLeft: 20,
1286
+ }}
1287
+ onPress={() => {
1288
+ checkTerm(item, () => {
1289
+ if (item?.urlSignContract) {
1290
+ navigation.dispatch(
1291
+ StackActions.push(
1292
+ ScreenNames.CIMBSign,
1293
+ {
1294
+ url: item?.urlSignContract,
1295
+ }
1296
+ )
1297
+ );
1298
+ } else {
1299
+ Alert.alert(
1300
+ 'Thông báo',
1301
+ 'Bạn chưa thể ký hợp đồng bây giờ?'
1302
+ );
1303
+ }
1304
+ });
1305
+ }}
1306
+ >
1307
+ <IconSign2 />
1308
+ <MText
1309
+ style={[
1310
+ commonStyles.textNormal,
1311
+ {
1312
+ fontSize: 12,
1313
+ fontWeight: '300',
1314
+ marginTop: 8,
1315
+ },
1316
+ ]}
1317
+ >
1318
+ Ký hợp đồng
1319
+ </MText>
1320
+ </MButton>
1321
+ )}
1322
+ {item?.isSignContractTima && (
1323
+ <MButton
1324
+ style={{
1325
+ alignItems: 'center',
1326
+ marginLeft: 20,
1327
+ }}
1328
+ onPress={() => {
1329
+ checkTerm(item, () => {
1330
+ navigation.dispatch(
1331
+ StackActions.push(
1332
+ ScreenNames.ViewContract,
1333
+ {
1334
+ loan: item,
1335
+ }
1336
+ )
1337
+ );
1338
+ });
1339
+ }}
1340
+ >
1341
+ <ContractTimeIcon />
1342
+ <MText
1343
+ style={[
1344
+ commonStyles.textNormal,
1345
+ {
1346
+ fontSize: 12,
1347
+ fontWeight: '300',
1348
+ marginTop: 8,
1349
+ textAlign: 'center',
1350
+ },
1351
+ ]}
1352
+ >
1353
+ Hợp đồng{'\n'}dịch vụ
1354
+ </MText>
1355
+ </MButton>
1356
+ )}
1357
+ {item?.paymentEvidenceUrl && (
1358
+ <MButton
1359
+ style={{
1360
+ alignItems: 'center',
1361
+ marginLeft: 20,
1362
+ }}
1363
+ onPress={() => {
1364
+ checkTerm(item, () => {
1365
+ navigation.dispatch(
1366
+ StackActions.push(
1367
+ ScreenNames.PaymentEvidence,
1368
+ {
1369
+ url: item?.paymentEvidenceUrl,
1370
+ }
1371
+ )
1372
+ );
1373
+ });
1374
+ }}
1375
+ >
1376
+ <IconEviden />
1377
+ <MText
1378
+ style={[
1379
+ commonStyles.textNormal,
1380
+ {
1381
+ fontSize: 12,
1382
+ fontWeight: '300',
1383
+ marginTop: 8,
1384
+ textAlign: 'center',
1385
+ },
1386
+ ]}
1387
+ >
1388
+ Mục đích {'\n'}sử dụng
1389
+ </MText>
1390
+ </MButton>
1391
+ )}
1392
+ {item?.showPaymentPlan && (
1393
+ <MButton
1394
+ style={{
1395
+ alignItems: 'center',
1396
+ marginLeft: 20,
1397
+ }}
1398
+ onPress={() => {
910
1399
  navigation.dispatch(
911
1400
  StackActions.push(
912
- ScreenNames.CIMBxTima,
1401
+ ScreenNames.SchedulePayment,
913
1402
  {
914
1403
  loan: item,
915
1404
  }
916
1405
  )
917
1406
  );
918
- });
1407
+ }}
1408
+ >
1409
+ <IconSchedule />
1410
+ <MText
1411
+ style={[
1412
+ commonStyles.textNormal,
1413
+ {
1414
+ fontSize: 12,
1415
+ fontWeight: '300',
1416
+ marginTop: 8,
1417
+ },
1418
+ ]}
1419
+ >
1420
+ Lịch dự kiến
1421
+ </MText>
1422
+ </MButton>
1423
+ )}
1424
+ </View>
1425
+
1426
+ {item.messageErrorCIMB !== '' &&
1427
+ item?.messageErrorCIMB &&
1428
+ item?.isCimbApproveFull === null ? (
1429
+ <View
1430
+ style={{
1431
+ backgroundColor: '#FBEFE7',
1432
+ marginHorizontal: -16,
1433
+ paddingVertical: 8,
1434
+ marginTop: 16,
1435
+ borderBottomRightRadius: 8,
1436
+ borderBottomLeftRadius: 8,
1437
+ paddingHorizontal: 16,
919
1438
  }}
920
1439
  >
921
- <AddInfo />
922
- <MText
923
- style={[
924
- commonStyles.textNormal,
925
- {
926
- fontSize: 12,
927
- fontWeight: '300',
928
- marginTop: 8,
929
- textAlign: 'center',
930
- },
931
- ]}
1440
+ <View
1441
+ style={{
1442
+ flexDirection: 'row',
1443
+ justifyContent:
1444
+ 'space-between',
1445
+ alignItems: 'center',
1446
+ }}
932
1447
  >
933
- Hoàn thiện{'\n'}cung cấp thông
934
- tin
935
- </MText>
936
- </MButton>
937
- ) : (
938
- <View>
939
- {item?.isUpdateLoan ||
940
- item?.isUpdateInformation ? (
941
- <TouchableOpacity
1448
+ <View
942
1449
  style={{
943
- alignItems: 'center',
944
- }}
945
- onPress={() => {
946
- checkTerm(item, () => {
947
- if (item?.isUpdateLoan) {
948
- navigation.dispatch(
949
- StackActions.push(
950
- ScreenNames.CimbSelfie,
951
- {
952
- loan: item,
953
- }
954
- )
955
- );
956
- } else {
957
- navigation.dispatch(
958
- StackActions.push(
959
- ScreenNames.QuickSubmit,
960
- {
961
- loan: item,
962
- }
963
- )
964
- );
965
- }
966
- });
1450
+ flex: 1,
1451
+ flexDirection: 'row',
1452
+ paddingRight: 20,
967
1453
  }}
968
1454
  >
969
- <AddInfo />
1455
+ <Image
1456
+ source={require('./error.png')}
1457
+ style={{
1458
+ width: 16,
1459
+ height: 16,
1460
+ }}
1461
+ />
970
1462
  <MText
971
- style={[
972
- commonStyles.textNormal,
973
- {
974
- fontSize: 12,
975
- fontWeight: '300',
976
- marginTop: 8,
977
- textAlign: 'center',
978
- },
979
- ]}
1463
+ style={{ marginLeft: 5 }}
980
1464
  >
981
- Hoàn thiện{'\n'}cung cấp
982
- thông tin
1465
+ Đơn vay của bạn gặp gián
1466
+ đoạn, vui lòng liên hệ tổng
1467
+ đài 1900633688
983
1468
  </MText>
984
- </TouchableOpacity>
985
- ) : (
986
- <View
987
- style={{
988
- alignItems: 'center',
1469
+ </View>
1470
+
1471
+ <TouchableOpacity
1472
+ onPress={() => {
1473
+ Linking.openURL(
1474
+ `tel:1900633688`
1475
+ );
989
1476
  }}
990
1477
  >
991
- <AddInfoDisable />
992
- <MText
993
- style={[
994
- commonStyles.textNormal,
995
- {
996
- fontSize: 12,
997
- fontWeight: '300',
998
- marginTop: 8,
999
- textAlign: 'center',
1000
- },
1478
+ <LinearGradient
1479
+ colors={[
1480
+ '#FF8E4F',
1481
+ '#EF592E',
1001
1482
  ]}
1483
+ style={{
1484
+ paddingHorizontal: 10,
1485
+ height: 30,
1486
+ borderRadius: 30,
1487
+ justifyContent: 'center',
1488
+ alignItems: 'center',
1489
+ flexDirection: 'row',
1490
+ }}
1002
1491
  >
1003
- Hoàn thiện{'\n'}cung cấp
1004
- thông tin
1005
- </MText>
1006
- </View>
1007
- )}
1492
+ <Call />
1493
+ <MText
1494
+ style={{
1495
+ color: 'white',
1496
+ fontSize: 12,
1497
+ marginLeft: 5,
1498
+ }}
1499
+ >
1500
+ Liên hệ
1501
+ </MText>
1502
+ </LinearGradient>
1503
+ </TouchableOpacity>
1504
+ </View>
1008
1505
  </View>
1009
- )}
1010
-
1011
- {item?.isSignContract && (
1012
- <MButton
1506
+ ) : (
1507
+ <View
1013
1508
  style={{
1509
+ flexDirection: 'row',
1014
1510
  alignItems: 'center',
1015
- marginLeft: 20,
1016
- }}
1017
- onPress={() => {
1018
- checkTerm(item, () => {
1019
- if (item?.urlSignContract) {
1020
- navigation.dispatch(
1021
- StackActions.push(
1022
- ScreenNames.CIMBSign,
1023
- {
1024
- url: item?.urlSignContract,
1025
- }
1026
- )
1027
- );
1028
- } else {
1029
- Alert.alert(
1030
- 'Thông báo',
1031
- 'Bạn chưa thể ký hợp đồng bây giờ?'
1032
- );
1033
- }
1034
- });
1511
+ backgroundColor: '#FBEFE7',
1512
+ marginHorizontal: -16,
1513
+ paddingVertical: 8,
1514
+ marginTop: 16,
1515
+ borderBottomRightRadius: 8,
1516
+ borderBottomLeftRadius: 8,
1517
+ paddingHorizontal: 16,
1035
1518
  }}
1036
1519
  >
1037
- <IconSign2 />
1520
+ <Info />
1038
1521
  <MText
1039
1522
  style={[
1040
- commonStyles.textNormal,
1041
1523
  {
1042
- fontSize: 12,
1043
1524
  fontWeight: '300',
1044
- marginTop: 8,
1525
+ fontSize: 10,
1526
+ fontStyle: 'italic',
1527
+ color: '#333333',
1528
+ marginLeft: 8,
1045
1529
  },
1046
1530
  ]}
1047
1531
  >
1048
- Ký hợp đồng
1532
+ {item?.suggestion
1533
+ ? item?.suggestion
1534
+ : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1049
1535
  </MText>
1050
- </MButton>
1536
+ </View>
1051
1537
  )}
1052
- {item?.isSignContractTima && (
1053
- <MButton
1054
- style={{
1055
- alignItems: 'center',
1056
- marginLeft: 20,
1057
- }}
1058
- onPress={() => {
1059
- checkTerm(item, () => {
1538
+ </View>
1539
+ )}
1540
+ </View>
1541
+ </View>
1542
+ )}
1543
+ </Observer>
1544
+ ) : (
1545
+ // cimb thường
1546
+ <View>
1547
+ <View>
1548
+ {item?.loanStatus !== null &&
1549
+ item?.loanStatus !== '' ? (
1550
+ <View
1551
+ style={{
1552
+ backgroundColor: '#FFFFFF',
1553
+ paddingHorizontal: 16,
1554
+ paddingTop: 16,
1555
+ borderRadius: 8,
1556
+ borderWidth: 0.5,
1557
+ borderColor: '#E0E0E0',
1558
+ }}
1559
+ >
1560
+ <View
1561
+ style={{
1562
+ flexDirection: 'row',
1563
+ alignItems: 'center',
1564
+ }}
1565
+ >
1566
+ <Contract />
1567
+ <View
1568
+ style={{ flex: 1, paddingLeft: 8 }}
1569
+ >
1570
+ <MText
1571
+ style={commonStyles.textNormalBold}
1572
+ >
1573
+ Mã Đơn vay-{item?.id}
1574
+ </MText>
1575
+ <MText
1576
+ style={commonStyles.textNormal}
1577
+ >
1578
+ Số tiền vay (VND):{' '}
1579
+ {item?.loanAmountOffer
1580
+ ? formatMoney(
1581
+ item?.loanAmountOffer
1582
+ )
1583
+ : 'Chưa xác định'}
1584
+ </MText>
1585
+ </View>
1586
+ </View>
1587
+ <View
1588
+ style={{
1589
+ height: 1,
1590
+ backgroundColor: '#E0E0E0',
1591
+ marginVertical: 16,
1592
+ }}
1593
+ />
1594
+ <View
1595
+ style={{
1596
+ flexDirection: 'row',
1597
+ justifyContent: 'space-between',
1598
+ }}
1599
+ >
1600
+ <MText style={commonStyles.textNormal}>
1601
+ Trạng thái
1602
+ </MText>
1603
+ <MText
1604
+ style={[
1605
+ commonStyles.textNormalBold,
1606
+ { color: '#F05123' },
1607
+ ]}
1608
+ >
1609
+ {item?.loanStatus}
1610
+ </MText>
1611
+ </View>
1612
+ <View
1613
+ style={{
1614
+ height: 0.5,
1615
+ backgroundColor: '#E0E0E0',
1616
+ marginVertical: 16,
1617
+ }}
1618
+ />
1619
+ <View style={{ flexDirection: 'row' }}>
1620
+ {item?.isUpdateLoan ||
1621
+ item?.isUpdateInformation ? (
1622
+ <TouchableOpacity
1623
+ style={{ alignItems: 'center' }}
1624
+ onPress={() => {
1625
+ checkTerm(item, () => {
1626
+ if (item?.isUpdateLoan) {
1060
1627
  navigation.dispatch(
1061
1628
  StackActions.push(
1062
- ScreenNames.ViewContract,
1629
+ ScreenNames.CimbSelfie,
1063
1630
  {
1064
1631
  loan: item,
1065
1632
  }
1066
1633
  )
1067
1634
  );
1068
- });
1069
- }}
1070
- >
1071
- <ContractTimeIcon />
1072
- <MText
1073
- style={[
1074
- commonStyles.textNormal,
1075
- {
1076
- fontSize: 12,
1077
- fontWeight: '300',
1078
- marginTop: 8,
1079
- textAlign: 'center',
1080
- },
1081
- ]}
1082
- >
1083
- Hợp đồng{'\n'}dịch vụ
1084
- </MText>
1085
- </MButton>
1086
- )}
1087
- {item?.paymentEvidenceUrl && (
1088
- <MButton
1089
- style={{
1090
- alignItems: 'center',
1091
- marginLeft: 20,
1092
- }}
1093
- onPress={() => {
1094
- checkTerm(item, () => {
1635
+ } else {
1095
1636
  navigation.dispatch(
1096
1637
  StackActions.push(
1097
- ScreenNames.PaymentEvidence,
1638
+ ScreenNames.QuickSubmit,
1098
1639
  {
1099
- url: item?.paymentEvidenceUrl,
1640
+ loan: item,
1100
1641
  }
1101
1642
  )
1102
1643
  );
1103
- });
1104
- }}
1105
- >
1106
- <IconEviden />
1107
- <MText
1108
- style={[
1109
- commonStyles.textNormal,
1110
- {
1111
- fontSize: 12,
1112
- fontWeight: '300',
1113
- marginTop: 8,
1114
- textAlign: 'center',
1115
- },
1116
- ]}
1117
- >
1118
- Mục đích {'\n'}sử dụng
1119
- </MText>
1120
- </MButton>
1121
- )}
1122
- {item?.showPaymentPlan && (
1123
- <MButton
1124
- style={{
1125
- alignItems: 'center',
1126
- marginLeft: 20,
1127
- }}
1128
- onPress={() => {
1129
- navigation.dispatch(
1130
- StackActions.push(
1131
- ScreenNames.SchedulePayment,
1132
- {
1133
- loan: item,
1134
- }
1135
- )
1136
- );
1137
- }}
1138
- >
1139
- <IconSchedule />
1140
- <MText
1141
- style={[
1142
- commonStyles.textNormal,
1143
- {
1144
- fontSize: 12,
1145
- fontWeight: '300',
1146
- marginTop: 8,
1147
- },
1148
- ]}
1149
- >
1150
- Lịch dự kiến
1151
- </MText>
1152
- </MButton>
1153
- )}
1154
- </View>
1155
-
1156
- {item.messageErrorCIMB !== '' &&
1157
- item?.messageErrorCIMB &&
1158
- item?.isCimbApproveFull === null ? (
1159
- <View
1160
- style={{
1161
- backgroundColor: '#FBEFE7',
1162
- marginHorizontal: -16,
1163
- paddingVertical: 8,
1164
- marginTop: 16,
1165
- borderBottomRightRadius: 8,
1166
- borderBottomLeftRadius: 8,
1167
- paddingHorizontal: 16,
1644
+ }
1645
+ });
1168
1646
  }}
1169
1647
  >
1170
- <View
1171
- style={{
1172
- flexDirection: 'row',
1173
- justifyContent: 'space-between',
1174
- alignItems: 'center',
1175
- }}
1648
+ <AddInfo />
1649
+ <MText
1650
+ style={[
1651
+ commonStyles.textNormal,
1652
+ {
1653
+ fontSize: 12,
1654
+ fontWeight: '300',
1655
+ marginTop: 8,
1656
+ textAlign: 'center',
1657
+ },
1658
+ ]}
1176
1659
  >
1177
- <View
1178
- style={{
1179
- flex: 1,
1180
- flexDirection: 'row',
1181
- paddingRight: 20,
1182
- }}
1183
- >
1184
- <Image
1185
- source={require('./error.png')}
1186
- style={{
1187
- width: 16,
1188
- height: 16,
1189
- }}
1190
- />
1191
- <MText
1192
- style={{ marginLeft: 5 }}
1193
- >
1194
- Đơn vay của bạn gặp gián đoạn,
1195
- vui lòng liên hệ tổng đài
1196
- 1900633688
1197
- </MText>
1198
- </View>
1199
-
1200
- <TouchableOpacity
1201
- onPress={() => {
1202
- Linking.openURL(
1203
- `tel:1900633688`
1204
- );
1205
- }}
1206
- >
1207
- <LinearGradient
1208
- colors={[
1209
- '#FF8E4F',
1210
- '#EF592E',
1211
- ]}
1212
- style={{
1213
- paddingHorizontal: 10,
1214
- height: 30,
1215
- borderRadius: 30,
1216
- justifyContent: 'center',
1217
- alignItems: 'center',
1218
- flexDirection: 'row',
1219
- }}
1220
- >
1221
- <Call />
1222
- <MText
1223
- style={{
1224
- color: 'white',
1225
- fontSize: 12,
1226
- marginLeft: 5,
1227
- }}
1228
- >
1229
- Liên hệ
1230
- </MText>
1231
- </LinearGradient>
1232
- </TouchableOpacity>
1233
- </View>
1660
+ Hoàn thiện{'\n'}cung cấp thông tin
1661
+ </MText>
1662
+ </TouchableOpacity>
1663
+ ) : (
1664
+ <View
1665
+ style={{ alignItems: 'center' }}
1666
+ >
1667
+ <AddInfoDisable />
1668
+ <MText
1669
+ style={[
1670
+ commonStyles.textNormal,
1671
+ {
1672
+ fontSize: 12,
1673
+ fontWeight: '300',
1674
+ marginTop: 8,
1675
+ textAlign: 'center',
1676
+ },
1677
+ ]}
1678
+ >
1679
+ Hoàn thiện{'\n'}cung cấp thông tin
1680
+ </MText>
1234
1681
  </View>
1235
- ) : (
1236
- <View
1682
+ )}
1683
+ {item?.isSignContract && (
1684
+ <TouchableOpacity
1237
1685
  style={{
1238
- flexDirection: 'row',
1239
1686
  alignItems: 'center',
1240
- backgroundColor: '#FBEFE7',
1241
- marginHorizontal: -16,
1242
- paddingVertical: 8,
1243
- marginTop: 16,
1244
- borderBottomRightRadius: 8,
1245
- borderBottomLeftRadius: 8,
1246
- paddingHorizontal: 16,
1687
+ marginLeft: 20,
1688
+ }}
1689
+ onPress={() => {
1690
+ checkTerm(item, () => {
1691
+ if (item?.urlSignContract) {
1692
+ navigation.dispatch(
1693
+ StackActions.push(
1694
+ ScreenNames.CIMBSign,
1695
+ {
1696
+ url: item?.urlSignContract,
1697
+ }
1698
+ )
1699
+ );
1700
+ } else {
1701
+ Alert.alert(
1702
+ 'Thông báo',
1703
+ 'Bạn chưa thể ký hợp đồng bây giờ?'
1704
+ );
1705
+ }
1706
+ });
1247
1707
  }}
1248
1708
  >
1249
- <Info />
1709
+ <IconSign2 />
1250
1710
  <MText
1251
1711
  style={[
1712
+ commonStyles.textNormal,
1252
1713
  {
1714
+ fontSize: 12,
1253
1715
  fontWeight: '300',
1254
- fontSize: 10,
1255
- fontStyle: 'italic',
1256
- color: '#333333',
1257
- marginLeft: 8,
1716
+ marginTop: 8,
1258
1717
  },
1259
1718
  ]}
1260
1719
  >
1261
- {item?.suggestion
1262
- ? item?.suggestion
1263
- : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1720
+ Ký hợp đồng
1264
1721
  </MText>
1265
- </View>
1722
+ </TouchableOpacity>
1266
1723
  )}
1267
- </View>
1268
- )}
1269
- </View>
1270
- </View>
1271
- )}
1272
- </Observer>
1273
- ) : (
1274
- // cimb thường
1275
- <View>
1276
- <View>
1277
- {item?.loanStatus !== null &&
1278
- item?.loanStatus !== '' ? (
1279
- <View
1280
- style={{
1281
- backgroundColor: '#FFFFFF',
1282
- paddingHorizontal: 16,
1283
- paddingTop: 16,
1284
- borderRadius: 8,
1285
- borderWidth: 0.5,
1286
- borderColor: '#E0E0E0',
1287
- }}
1288
- >
1289
- <View
1290
- style={{
1291
- flexDirection: 'row',
1292
- alignItems: 'center',
1293
- }}
1294
- >
1295
- <Contract />
1296
- <View style={{ flex: 1, paddingLeft: 8 }}>
1297
- <MText
1298
- style={commonStyles.textNormalBold}
1299
- >
1300
- Mã Đơn vay-{item?.id}
1301
- </MText>
1302
- <MText style={commonStyles.textNormal}>
1303
- Số tiền vay (VND):{' '}
1304
- {item?.loanAmountOffer
1305
- ? formatMoney(item?.loanAmountOffer)
1306
- : 'Chưa xác định'}
1307
- </MText>
1308
- </View>
1309
- </View>
1310
- <View
1311
- style={{
1312
- height: 1,
1313
- backgroundColor: '#E0E0E0',
1314
- marginVertical: 16,
1315
- }}
1316
- />
1317
- <View
1318
- style={{
1319
- flexDirection: 'row',
1320
- justifyContent: 'space-between',
1321
- }}
1322
- >
1323
- <MText style={commonStyles.textNormal}>
1324
- Trạng thái
1325
- </MText>
1326
- <MText
1327
- style={[
1328
- commonStyles.textNormalBold,
1329
- { color: '#F05123' },
1330
- ]}
1331
- >
1332
- {item?.loanStatus}
1333
- </MText>
1334
- </View>
1335
- <View
1336
- style={{
1337
- height: 0.5,
1338
- backgroundColor: '#E0E0E0',
1339
- marginVertical: 16,
1340
- }}
1341
- />
1342
- <View style={{ flexDirection: 'row' }}>
1343
- {item?.isUpdateLoan ||
1344
- item?.isUpdateInformation ? (
1345
- <TouchableOpacity
1346
- style={{ alignItems: 'center' }}
1347
- onPress={() => {
1348
- checkTerm(item, () => {
1349
- if (item?.isUpdateLoan) {
1350
- navigation.dispatch(
1351
- StackActions.push(
1352
- ScreenNames.CimbSelfie,
1353
- {
1354
- loan: item,
1355
- }
1356
- )
1357
- );
1358
- } else {
1724
+ {item?.isSignContractTima && (
1725
+ <TouchableOpacity
1726
+ style={{
1727
+ alignItems: 'center',
1728
+ marginLeft: 20,
1729
+ }}
1730
+ onPress={() => {
1731
+ checkTerm(item, () => {
1359
1732
  navigation.dispatch(
1360
1733
  StackActions.push(
1361
- ScreenNames.QuickSubmit,
1734
+ ScreenNames.ViewContract,
1362
1735
  {
1363
1736
  loan: item,
1364
1737
  }
1365
1738
  )
1366
1739
  );
1367
- }
1368
- });
1369
- }}
1370
- >
1371
- <AddInfo />
1372
- <MText
1373
- style={[
1374
- commonStyles.textNormal,
1375
- {
1376
- fontSize: 12,
1377
- fontWeight: '300',
1378
- marginTop: 8,
1379
- textAlign: 'center',
1380
- },
1381
- ]}
1382
- >
1383
- Hoàn thiện{'\n'}cung cấp thông tin
1384
- </MText>
1385
- </TouchableOpacity>
1386
- ) : (
1387
- <View style={{ alignItems: 'center' }}>
1388
- <AddInfoDisable />
1389
- <MText
1390
- style={[
1391
- commonStyles.textNormal,
1392
- {
1393
- fontSize: 12,
1394
- fontWeight: '300',
1395
- marginTop: 8,
1396
- textAlign: 'center',
1397
- },
1398
- ]}
1740
+ });
1741
+ }}
1399
1742
  >
1400
- Hoàn thiện{'\n'}cung cấp thông tin
1401
- </MText>
1402
- </View>
1403
- )}
1404
- {item?.isSignContract && (
1405
- <TouchableOpacity
1406
- style={{
1407
- alignItems: 'center',
1408
- marginLeft: 20,
1409
- }}
1410
- onPress={() => {
1411
- checkTerm(item, () => {
1412
- if (item?.urlSignContract) {
1743
+ <ContractTimeIcon />
1744
+ <MText
1745
+ style={[
1746
+ commonStyles.textNormal,
1747
+ {
1748
+ fontSize: 12,
1749
+ fontWeight: '300',
1750
+ marginTop: 8,
1751
+ textAlign: 'center',
1752
+ },
1753
+ ]}
1754
+ >
1755
+ Hợp đồng{'\n'}dịch vụ
1756
+ </MText>
1757
+ </TouchableOpacity>
1758
+ )}
1759
+ {item?.paymentEvidenceUrl && (
1760
+ <TouchableOpacity
1761
+ style={{
1762
+ alignItems: 'center',
1763
+ marginLeft: 20,
1764
+ }}
1765
+ onPress={() => {
1766
+ checkTerm(item, () => {
1413
1767
  navigation.dispatch(
1414
1768
  StackActions.push(
1415
- ScreenNames.CIMBSign,
1769
+ ScreenNames.PaymentEvidence,
1416
1770
  {
1417
- url: item?.urlSignContract,
1771
+ url: item?.paymentEvidenceUrl,
1418
1772
  }
1419
1773
  )
1420
1774
  );
1421
- } else {
1422
- Alert.alert(
1423
- 'Thông báo',
1424
- 'Bạn chưa thể ký hợp đồng bây giờ?'
1425
- );
1426
- }
1427
- });
1428
- }}
1429
- >
1430
- <IconSign2 />
1431
- <MText
1432
- style={[
1433
- commonStyles.textNormal,
1434
- {
1435
- fontSize: 12,
1436
- fontWeight: '300',
1437
- marginTop: 8,
1438
- },
1439
- ]}
1775
+ });
1776
+ }}
1440
1777
  >
1441
- hợp đồng
1442
- </MText>
1443
- </TouchableOpacity>
1444
- )}
1445
- {item?.isSignContractTima && (
1446
- <TouchableOpacity
1447
- style={{
1448
- alignItems: 'center',
1449
- marginLeft: 20,
1450
- }}
1451
- onPress={() => {
1452
- checkTerm(item, () => {
1778
+ <IconEviden />
1779
+ <MText
1780
+ style={[
1781
+ commonStyles.textNormal,
1782
+ {
1783
+ fontSize: 12,
1784
+ fontWeight: '300',
1785
+ marginTop: 8,
1786
+ textAlign: 'center',
1787
+ },
1788
+ ]}
1789
+ >
1790
+ Mục đích {'\n'}sử dụng
1791
+ </MText>
1792
+ </TouchableOpacity>
1793
+ )}
1794
+ {item?.showPaymentPlan && (
1795
+ <TouchableOpacity
1796
+ style={{
1797
+ alignItems: 'center',
1798
+ marginLeft: 20,
1799
+ }}
1800
+ onPress={() => {
1453
1801
  navigation.dispatch(
1454
1802
  StackActions.push(
1455
- ScreenNames.ViewContract,
1803
+ ScreenNames.SchedulePayment,
1456
1804
  {
1457
1805
  loan: item,
1458
1806
  }
1459
1807
  )
1460
1808
  );
1461
- });
1462
- }}
1463
- >
1464
- <ContractTimeIcon />
1465
- <MText
1466
- style={[
1467
- commonStyles.textNormal,
1468
- {
1469
- fontSize: 12,
1470
- fontWeight: '300',
1471
- marginTop: 8,
1472
- textAlign: 'center',
1473
- },
1474
- ]}
1475
- >
1476
- Hợp đồng{'\n'}dịch vụ
1477
- </MText>
1478
- </TouchableOpacity>
1479
- )}
1480
- {item?.paymentEvidenceUrl && (
1481
- <TouchableOpacity
1482
- style={{
1483
- alignItems: 'center',
1484
- marginLeft: 20,
1485
- }}
1486
- onPress={() => {
1487
- checkTerm(item, () => {
1488
- navigation.dispatch(
1489
- StackActions.push(
1490
- ScreenNames.PaymentEvidence,
1491
- {
1492
- url: item?.paymentEvidenceUrl,
1493
- }
1494
- )
1495
- );
1496
- });
1497
- }}
1498
- >
1499
- <IconEviden />
1500
- <MText
1501
- style={[
1502
- commonStyles.textNormal,
1503
- {
1504
- fontSize: 12,
1505
- fontWeight: '300',
1506
- marginTop: 8,
1507
- textAlign: 'center',
1508
- },
1509
- ]}
1809
+ }}
1510
1810
  >
1511
- Mục đích {'\n'}sử dụng
1512
- </MText>
1513
- </TouchableOpacity>
1514
- )}
1515
- {item?.showPaymentPlan && (
1516
- <TouchableOpacity
1517
- style={{
1518
- alignItems: 'center',
1519
- marginLeft: 20,
1520
- }}
1521
- onPress={() => {
1811
+ <IconSchedule />
1812
+ <MText
1813
+ style={[
1814
+ commonStyles.textNormal,
1815
+ {
1816
+ fontSize: 12,
1817
+ fontWeight: '300',
1818
+ marginTop: 8,
1819
+ },
1820
+ ]}
1821
+ >
1822
+ Lịch dự kiến
1823
+ </MText>
1824
+ </TouchableOpacity>
1825
+ )}
1826
+ </View>
1827
+
1828
+ <View
1829
+ style={{
1830
+ flexDirection: 'row',
1831
+ alignItems: 'center',
1832
+ backgroundColor: '#FBEFE7',
1833
+ marginHorizontal: -16,
1834
+ paddingVertical: 8,
1835
+ marginTop: 16,
1836
+ borderBottomRightRadius: 8,
1837
+ borderBottomLeftRadius: 8,
1838
+ paddingHorizontal: 16,
1839
+ }}
1840
+ >
1841
+ <Info />
1842
+ <MText
1843
+ style={[
1844
+ {
1845
+ fontWeight: '300',
1846
+ fontSize: 10,
1847
+ fontStyle: 'italic',
1848
+ color: '#333333',
1849
+ marginLeft: 8,
1850
+ },
1851
+ ]}
1852
+ >
1853
+ {item?.suggestion
1854
+ ? item?.suggestion
1855
+ : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1856
+ </MText>
1857
+ </View>
1858
+ </View>
1859
+ ) : (
1860
+ <ImageBackground
1861
+ source={require('../../assets/img/bann.png')}
1862
+ style={{ flex: 1, padding: 16 }}
1863
+ resizeMode="cover"
1864
+ height={220}
1865
+ borderRadius={8}
1866
+ >
1867
+ <MText
1868
+ style={{
1869
+ color: '#333333',
1870
+ fontWeight: 'bold',
1871
+ fontSize: 12,
1872
+ }}
1873
+ >
1874
+ BẠN ĐỦ ĐIỀU KIỆN VAY TIÊU DÙNG{'\n'}THEO
1875
+ THÔNG TIN TÀI SẢN SỞ HỮU
1876
+ {'\n'}
1877
+ (XE MÁY/ Ô TÔ)
1878
+ </MText>
1879
+ <MText
1880
+ style={{
1881
+ marginTop: 12,
1882
+ fontSize: 24,
1883
+ fontWeight: 'bold',
1884
+ color: '#EF4123',
1885
+ }}
1886
+ >
1887
+ {formatMoney(item?.loanAmount)} VND
1888
+ </MText>
1889
+ <TouchableOpacity
1890
+ onPress={() => {
1891
+ checkTerm(item, () => {
1522
1892
  navigation.dispatch(
1523
1893
  StackActions.push(
1524
- ScreenNames.SchedulePayment,
1894
+ ScreenNames.CIMBxTima,
1525
1895
  {
1526
1896
  loan: item,
1527
1897
  }
1528
1898
  )
1529
1899
  );
1900
+ });
1901
+ }}
1902
+ >
1903
+ <LinearGradient
1904
+ colors={['#FF7A00', '#EF4123']}
1905
+ style={{
1906
+ backgroundColor: '#F36D21cd ',
1907
+ marginTop: 12,
1908
+ alignItems: 'center',
1909
+ borderRadius: 30,
1910
+ paddingVertical: 10,
1911
+ width: '50%',
1530
1912
  }}
1531
1913
  >
1532
- <IconSchedule />
1533
1914
  <MText
1534
- style={[
1535
- commonStyles.textNormal,
1536
- {
1537
- fontSize: 12,
1538
- fontWeight: '300',
1539
- marginTop: 8,
1540
- },
1541
- ]}
1915
+ style={{
1916
+ color: '#FFFFFF',
1917
+ fontWeight: 'bold',
1918
+ }}
1542
1919
  >
1543
- Lịch dự kiến
1920
+ Hoàn thiện hồ sơ
1544
1921
  </MText>
1545
- </TouchableOpacity>
1546
- )}
1547
- </View>
1548
-
1549
- <View
1550
- style={{
1551
- flexDirection: 'row',
1552
- alignItems: 'center',
1553
- backgroundColor: '#FBEFE7',
1554
- marginHorizontal: -16,
1555
- paddingVertical: 8,
1556
- marginTop: 16,
1557
- borderBottomRightRadius: 8,
1558
- borderBottomLeftRadius: 8,
1559
- paddingHorizontal: 16,
1560
- }}
1561
- >
1562
- <Info />
1563
- <MText
1564
- style={[
1565
- {
1566
- fontWeight: '300',
1567
- fontSize: 10,
1568
- fontStyle: 'italic',
1569
- color: '#333333',
1570
- marginLeft: 8,
1571
- },
1572
- ]}
1573
- >
1574
- {item?.suggestion
1575
- ? item?.suggestion
1576
- : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
1577
- </MText>
1578
- </View>
1579
- </View>
1580
- ) : (
1581
- <ImageBackground
1582
- source={require('../../assets/img/bann.png')}
1583
- style={{ flex: 1, padding: 16 }}
1584
- resizeMode="cover"
1585
- height={220}
1586
- borderRadius={8}
1587
- >
1588
- <MText
1589
- style={{
1590
- color: '#333333',
1591
- fontWeight: 'bold',
1592
- fontSize: 12,
1593
- }}
1594
- >
1595
- BẠN ĐỦ ĐIỀU KIỆN VAY TIÊU DÙNG{'\n'}THEO
1596
- THÔNG TIN TÀI SẢN SỞ HỮU
1597
- {'\n'}
1598
- (XE MÁY/ Ô TÔ)
1599
- </MText>
1600
- <MText
1601
- style={{
1602
- marginTop: 12,
1603
- fontSize: 24,
1604
- fontWeight: 'bold',
1605
- color: '#EF4123',
1606
- }}
1607
- >
1608
- {formatMoney(item?.loanAmount)} VND
1609
- </MText>
1610
- <TouchableOpacity
1611
- onPress={() => {
1612
- checkTerm(item, () => {
1613
- navigation.dispatch(
1614
- StackActions.push(
1615
- ScreenNames.CIMBxTima,
1616
- {
1617
- loan: item,
1618
- }
1619
- )
1620
- );
1621
- });
1622
- }}
1623
- >
1624
- <LinearGradient
1625
- colors={['#FF7A00', '#EF4123']}
1922
+ </LinearGradient>
1923
+ </TouchableOpacity>
1924
+ <View
1626
1925
  style={{
1627
- backgroundColor: '#F36D21cd ',
1628
- marginTop: 12,
1926
+ flexDirection: 'row',
1629
1927
  alignItems: 'center',
1630
- borderRadius: 30,
1631
- paddingVertical: 10,
1632
- width: '50%',
1928
+ alignContent: 'center',
1929
+ marginTop: 16,
1633
1930
  }}
1634
1931
  >
1635
1932
  <MText
1636
1933
  style={{
1637
- color: '#FFFFFF',
1638
- fontWeight: 'bold',
1934
+ fontSize: 10,
1935
+ color: '#333333',
1639
1936
  }}
1640
1937
  >
1641
- Hoàn thiện hồ
1938
+ SẢN PHẨM VAY TIÊU DÙNG HỢP TÁC GIỮA{' '}
1642
1939
  </MText>
1643
- </LinearGradient>
1644
- </TouchableOpacity>
1645
- <View
1646
- style={{
1647
- flexDirection: 'row',
1648
- alignItems: 'center',
1649
- alignContent: 'center',
1650
- marginTop: 16,
1651
- }}
1652
- >
1653
- <MText
1654
- style={{
1655
- fontSize: 10,
1656
- color: '#333333',
1657
- }}
1658
- >
1659
- SẢN PHẨM VAY TIÊU DÙNG HỢP TÁC GIỮA{' '}
1660
- </MText>
1661
- <LogoSmall />
1662
- <MText
1663
- style={{
1664
- fontSize: 12,
1665
- color: '#333333',
1666
- }}
1667
- >
1668
- {' '}
1669
- VÀ{' '}
1670
- </MText>
1671
- <CIMBSmall />
1672
- </View>
1673
- </ImageBackground>
1674
- )}
1940
+ <LogoSmall />
1941
+ <MText
1942
+ style={{
1943
+ fontSize: 12,
1944
+ color: '#333333',
1945
+ }}
1946
+ >
1947
+ {' '}
1948
+ VÀ{' '}
1949
+ </MText>
1950
+ <CIMBSmall />
1951
+ </View>
1952
+ </ImageBackground>
1953
+ )}
1954
+ </View>
1675
1955
  </View>
1676
- </View>
1677
- )}
1678
- </View>
1679
- ) : (
1680
- <Observer>
1681
- {() => (
1682
- <View>
1683
- <View
1684
- style={{
1685
- backgroundColor: '#FFFFFF',
1686
- paddingHorizontal: 16,
1687
- paddingTop: 16,
1688
- borderRadius: 8,
1689
- borderWidth: 0.5,
1690
- borderColor: '#E0E0E0',
1691
- }}
1692
- >
1956
+ )}
1957
+ </View>
1958
+ ) : (
1959
+ <Observer>
1960
+ {() => (
1961
+ <View>
1693
1962
  <View
1694
1963
  style={{
1695
- flexDirection: 'row',
1696
- alignItems: 'center',
1964
+ backgroundColor: '#FFFFFF',
1965
+ paddingHorizontal: 16,
1966
+ paddingTop: 16,
1967
+ borderRadius: 8,
1968
+ borderWidth: 0.5,
1969
+ borderColor: '#E0E0E0',
1697
1970
  }}
1698
1971
  >
1699
- <Contract />
1700
- <View style={{ flex: 1, paddingLeft: 8 }}>
1701
- <MText style={commonStyles.textNormalBold}>
1702
- Đơn vay {item?.id}
1703
- </MText>
1972
+ <View
1973
+ style={{
1974
+ flexDirection: 'row',
1975
+ alignItems: 'center',
1976
+ }}
1977
+ >
1978
+ <Contract />
1979
+ <View style={{ flex: 1, paddingLeft: 8 }}>
1980
+ <MText
1981
+ style={commonStyles.textNormalBold}
1982
+ >
1983
+ Đơn vay {item?.id}
1984
+ </MText>
1985
+ <MText style={commonStyles.textNormal}>
1986
+ Số tiền vay (VND):{' '}
1987
+ {item?.loanAmount
1988
+ ? formatMoney(item?.loanAmount)
1989
+ : 'Chưa xác định'}
1990
+ </MText>
1991
+ </View>
1992
+ </View>
1993
+ <View
1994
+ style={{
1995
+ height: 1,
1996
+ backgroundColor: '#E0E0E0',
1997
+ marginVertical: 16,
1998
+ }}
1999
+ />
2000
+ <View
2001
+ style={{
2002
+ flexDirection: 'row',
2003
+ justifyContent: 'space-between',
2004
+ alignItems: 'center',
2005
+ }}
2006
+ >
1704
2007
  <MText style={commonStyles.textNormal}>
1705
- Số tiền vay (VND):{' '}
1706
- {item?.loanAmount
1707
- ? formatMoney(item?.loanAmount)
1708
- : 'Chưa xác định'}
2008
+ Trạng thái
2009
+ </MText>
2010
+ <MText
2011
+ style={[
2012
+ commonStyles.textNormalBold,
2013
+ { color: '#F05123' },
2014
+ ]}
2015
+ >
2016
+ {item?.loanStatus}
1709
2017
  </MText>
1710
2018
  </View>
1711
- </View>
1712
- <View
1713
- style={{
1714
- height: 1,
1715
- backgroundColor: '#E0E0E0',
1716
- marginVertical: 16,
1717
- }}
1718
- />
1719
- <View
1720
- style={{
1721
- flexDirection: 'row',
1722
- justifyContent: 'space-between',
1723
- alignItems: 'center',
1724
- }}
1725
- >
1726
- <MText style={commonStyles.textNormal}>
1727
- Trạng thái
1728
- </MText>
1729
- <MText
1730
- style={[
1731
- commonStyles.textNormalBold,
1732
- { color: '#F05123' },
1733
- ]}
2019
+ <View
2020
+ style={{
2021
+ height: 0.5,
2022
+ backgroundColor: '#E0E0E0',
2023
+ marginVertical: 16,
2024
+ }}
2025
+ />
2026
+ <View
2027
+ style={{
2028
+ flexDirection: 'row',
2029
+ gap: 24,
2030
+ }}
1734
2031
  >
1735
- {item?.loanStatus}
1736
- </MText>
1737
- </View>
1738
- <View
1739
- style={{
1740
- height: 0.5,
1741
- backgroundColor: '#E0E0E0',
1742
- marginVertical: 16,
1743
- }}
1744
- />
1745
- <View
1746
- style={{
1747
- flexDirection: 'row',
1748
- gap: 24,
1749
- }}
1750
- >
1751
- {!homeStore.checkEKYC[item?.id] && (
1752
- <TouchableOpacity
1753
- style={{ alignItems: 'center' }}
1754
- onPress={() => {
1755
- checkTerm(item, () => {
1756
- navigation.dispatch(
1757
- StackActions.push(
1758
- ScreenNames.NationalID,
1759
- {
1760
- loan: item,
1761
- reLoan: true,
1762
- }
1763
- )
1764
- );
1765
- });
1766
- }}
1767
- >
1768
- <AddInfo />
1769
- <MText
1770
- style={[
1771
- commonStyles.textNormal,
1772
- {
1773
- fontSize: 12,
1774
- fontWeight: '300',
1775
- marginTop: 8,
1776
- },
1777
- ]}
2032
+ {!homeStore.checkEKYC[item?.id] && (
2033
+ <TouchableOpacity
2034
+ style={{ alignItems: 'center' }}
2035
+ onPress={() => {
2036
+ checkTerm(item, () => {
2037
+ navigation.dispatch(
2038
+ StackActions.push(
2039
+ ScreenNames.NationalID,
2040
+ {
2041
+ loan: item,
2042
+ reLoan: true,
2043
+ }
2044
+ )
2045
+ );
2046
+ });
2047
+ }}
1778
2048
  >
1779
- EKYC
1780
- </MText>
1781
- </TouchableOpacity>
1782
- )}
1783
- {/* Cập nhật thông tin với đơn ô tô digital topup */}
1784
- {item?.typeLoan === 4 &&
1785
- item?.productId === 8 ? (
1786
- <>
1787
- {item?.isUpdateInfoTopup && (
1788
- <TouchableOpacity
1789
- onPress={() => {
2049
+ <AddInfo />
2050
+ <MText
2051
+ style={[
2052
+ commonStyles.textNormal,
2053
+ {
2054
+ fontSize: 12,
2055
+ fontWeight: '300',
2056
+ marginTop: 8,
2057
+ },
2058
+ ]}
2059
+ >
2060
+ EKYC
2061
+ </MText>
2062
+ </TouchableOpacity>
2063
+ )}
2064
+ {/* Cập nhật thông tin với đơn ô tô digital topup */}
2065
+ {item?.typeLoan === 4 &&
2066
+ item?.productId === 8 ? (
2067
+ <>
2068
+ {item?.isUpdateInfoTopup && (
2069
+ <TouchableOpacity
2070
+ onPress={() => {
2071
+ navigation.dispatch(
2072
+ StackActions.push(
2073
+ ScreenNames.UpdateLoan,
2074
+ item
2075
+ )
2076
+ );
2077
+ }}
2078
+ style={{
2079
+ alignItems: 'center',
2080
+ }}
2081
+ >
2082
+ <TopupSvg />
2083
+ <MText
2084
+ style={[
2085
+ commonStyles.textNormal,
2086
+ {
2087
+ fontSize: 12,
2088
+ fontWeight: '300',
2089
+ marginTop: 8,
2090
+ },
2091
+ ]}
2092
+ >
2093
+ Cập nhật{'\n'}thông tin
2094
+ </MText>
2095
+ </TouchableOpacity>
2096
+ )}
2097
+ </>
2098
+ ) : (
2099
+ <></>
2100
+ )}
2101
+
2102
+ {/* -------------------------------------------------- */}
2103
+ {item?.isVideoDebt && (
2104
+ <TouchableOpacity
2105
+ style={{
2106
+ alignItems: 'center',
2107
+ }}
2108
+ onPress={() => {
2109
+ checkTerm(item, () => {
1790
2110
  navigation.dispatch(
1791
2111
  StackActions.push(
1792
- ScreenNames.UpdateLoan,
1793
- item
2112
+ ScreenNames.Video,
2113
+ {
2114
+ loan: item,
2115
+ }
1794
2116
  )
1795
2117
  );
1796
- }}
1797
- style={{
1798
- alignItems: 'center',
1799
- }}
1800
- >
1801
- <TopupSvg />
1802
- <MText
1803
- style={[
1804
- commonStyles.textNormal,
1805
- {
1806
- fontSize: 12,
1807
- fontWeight: '300',
1808
- marginTop: 8,
1809
- },
1810
- ]}
1811
- >
1812
- Cập nhật{'\n'}thông tin
1813
- </MText>
1814
- </TouchableOpacity>
1815
- )}
1816
- </>
1817
- ) : (
1818
- <></>
1819
- )}
1820
-
1821
- {/* -------------------------------------------------- */}
1822
- {item?.isVideoDebt && (
1823
- <TouchableOpacity
1824
- style={{
1825
- alignItems: 'center',
1826
- }}
1827
- onPress={() => {
1828
- checkTerm(item, () => {
1829
- navigation.dispatch(
1830
- StackActions.push(
1831
- ScreenNames.Video,
1832
- {
1833
- loan: item,
1834
- }
1835
- )
1836
- );
1837
- });
1838
- }}
1839
- >
1840
- <IconVideo />
1841
- <MText
1842
- style={[
1843
- commonStyles.textNormal,
1844
- {
1845
- fontSize: 12,
1846
- fontWeight: '300',
1847
- marginTop: 8,
1848
- },
1849
- ]}
2118
+ });
2119
+ }}
1850
2120
  >
1851
- Quay video
1852
- </MText>
1853
- </TouchableOpacity>
1854
- )}
1855
- {item?.typeLoan === 4 &&
1856
- item?.productId === 8 ? (
1857
- <>
1858
- {!item?.isUpdateInfoTopup &&
1859
- homeStore.checkEKYC[item?.id] && (
2121
+ <IconVideo />
2122
+ <MText
2123
+ style={[
2124
+ commonStyles.textNormal,
2125
+ {
2126
+ fontSize: 12,
2127
+ fontWeight: '300',
2128
+ marginTop: 8,
2129
+ },
2130
+ ]}
2131
+ >
2132
+ Quay video
2133
+ </MText>
2134
+ </TouchableOpacity>
2135
+ )}
2136
+ {item?.typeLoan === 4 &&
2137
+ item?.productId === 8 ? (
2138
+ <>
2139
+ {!item?.isUpdateInfoTopup &&
2140
+ homeStore.checkEKYC[item?.id] && (
2141
+ <TouchableOpacity
2142
+ style={{
2143
+ alignItems: 'center',
2144
+ }}
2145
+ onPress={() => {
2146
+ checkTerm(item, () => {
2147
+ signLoan(item);
2148
+ });
2149
+ }}
2150
+ >
2151
+ <IconSign2 />
2152
+ <MText
2153
+ style={[
2154
+ commonStyles.textNormal,
2155
+ {
2156
+ fontSize: 12,
2157
+ fontWeight: '300',
2158
+ marginTop: 8,
2159
+ },
2160
+ ]}
2161
+ >
2162
+ Ký HĐ
2163
+ </MText>
2164
+ </TouchableOpacity>
2165
+ )}
2166
+ </>
2167
+ ) : (
2168
+ <>
2169
+ {homeStore.checkEKYC[item?.id] ? (
1860
2170
  <TouchableOpacity
1861
2171
  style={{
1862
2172
  alignItems: 'center',
@@ -1881,22 +2191,43 @@ export const Home = observer(function Home() {
1881
2191
  Ký HĐ
1882
2192
  </MText>
1883
2193
  </TouchableOpacity>
2194
+ ) : (
2195
+ <View
2196
+ style={{
2197
+ alignItems: 'center',
2198
+ }}
2199
+ >
2200
+ {/* <SignDisable />
2201
+ <MText
2202
+ style={[
2203
+ commonStyles.textNormal,
2204
+ {
2205
+ fontSize: 12,
2206
+ fontWeight: '300',
2207
+ marginTop: 8,
2208
+ },
2209
+ ]}
2210
+ >
2211
+ Ký HĐ
2212
+ </MText> */}
2213
+ </View>
1884
2214
  )}
1885
- </>
1886
- ) : (
1887
- <>
1888
- {homeStore.checkEKYC[item?.id] ? (
2215
+ </>
2216
+ )}
2217
+ {item?.typeLoan &&
2218
+ item?.productId === 8 && (
1889
2219
  <TouchableOpacity
2220
+ onPress={() => {
2221
+ navigation.push(
2222
+ 'DigitalSchedulePayment',
2223
+ item
2224
+ );
2225
+ }}
1890
2226
  style={{
1891
2227
  alignItems: 'center',
1892
2228
  }}
1893
- onPress={() => {
1894
- checkTerm(item, () => {
1895
- signLoan(item);
1896
- });
1897
- }}
1898
2229
  >
1899
- <IconSign2 />
2230
+ <IconSchedule />
1900
2231
  <MText
1901
2232
  style={[
1902
2233
  commonStyles.textNormal,
@@ -1907,95 +2238,47 @@ export const Home = observer(function Home() {
1907
2238
  },
1908
2239
  ]}
1909
2240
  >
1910
-
2241
+ Lịch TT dự kiến
1911
2242
  </MText>
1912
2243
  </TouchableOpacity>
1913
- ) : (
1914
- <View
1915
- style={{
1916
- alignItems: 'center',
1917
- }}
1918
- >
1919
- {/* <SignDisable />
1920
- <MText
1921
- style={[
1922
- commonStyles.textNormal,
1923
- {
1924
- fontSize: 12,
1925
- fontWeight: '300',
1926
- marginTop: 8,
1927
- },
1928
- ]}
1929
- >
1930
- Ký HĐ
1931
- </MText> */}
1932
- </View>
1933
2244
  )}
1934
- </>
1935
- )}
1936
- {item?.typeLoan && item?.productId === 8 && (
1937
- <TouchableOpacity
1938
- onPress={() => {
1939
- navigation.push(
1940
- 'DigitalSchedulePayment',
1941
- item
1942
- );
1943
- }}
1944
- style={{
1945
- alignItems: 'center',
1946
- }}
1947
- >
1948
- <IconSchedule />
1949
- <MText
1950
- style={[
1951
- commonStyles.textNormal,
1952
- {
1953
- fontSize: 12,
1954
- fontWeight: '300',
1955
- marginTop: 8,
1956
- },
1957
- ]}
1958
- >
1959
- Lịch TT dự kiến
1960
- </MText>
1961
- </TouchableOpacity>
1962
- )}
1963
- </View>
1964
- <View
1965
- style={{
1966
- flexDirection: 'row',
1967
- alignItems: 'center',
1968
- backgroundColor: '#FBEFE7',
1969
- marginHorizontal: -16,
1970
- paddingVertical: 8,
1971
- marginTop: 16,
1972
- borderBottomRightRadius: 8,
1973
- borderBottomLeftRadius: 8,
1974
- paddingHorizontal: 16,
1975
- }}
1976
- >
1977
- <Info />
1978
- <MText
1979
- style={[
1980
- {
1981
- fontWeight: '300',
1982
- fontSize: 12,
1983
- fontStyle: 'italic',
1984
- color: '#333333',
1985
- marginLeft: 8,
1986
- },
1987
- ]}
2245
+ </View>
2246
+ <View
2247
+ style={{
2248
+ flexDirection: 'row',
2249
+ alignItems: 'center',
2250
+ backgroundColor: '#FBEFE7',
2251
+ marginHorizontal: -16,
2252
+ paddingVertical: 8,
2253
+ marginTop: 16,
2254
+ borderBottomRightRadius: 8,
2255
+ borderBottomLeftRadius: 8,
2256
+ paddingHorizontal: 16,
2257
+ }}
1988
2258
  >
1989
- Thực hiện đầy đủ các bước để giải ngân nhanh
1990
- nhất
1991
- </MText>
2259
+ <Info />
2260
+ <MText
2261
+ style={[
2262
+ {
2263
+ fontWeight: '300',
2264
+ fontSize: 12,
2265
+ fontStyle: 'italic',
2266
+ color: '#333333',
2267
+ marginLeft: 8,
2268
+ },
2269
+ ]}
2270
+ >
2271
+ Thực hiện đầy đủ các bước để giải ngân
2272
+ nhanh nhất
2273
+ </MText>
2274
+ </View>
1992
2275
  </View>
1993
2276
  </View>
1994
- </View>
1995
- )}
1996
- </Observer>
1997
- )}
1998
- </View>
2277
+ )}
2278
+ </Observer>
2279
+ )}
2280
+ </View>
2281
+ )}
1999
2282
  </View>
2000
2283
  ))}
2001
2284
  </View>
@@ -2409,8 +2692,134 @@ export const Home = observer(function Home() {
2409
2692
  </View>
2410
2693
  </SafeAreaView>
2411
2694
  </Modal>
2695
+ <Modal isVisible={showModal3}>
2696
+ <SafeAreaView style={{ backgroundColor: '#FFFFFF', borderRadius: 6 }}>
2697
+ <Image
2698
+ source={require('../../assets/tts/Banner.png')}
2699
+ style={{
2700
+ width: '100%',
2701
+ resizeMode: 'cover',
2702
+ height: (Dimensions.get('window').height / 2) * 0.7,
2703
+ borderTopLeftRadius: 6,
2704
+ borderTopRightRadius: 6,
2705
+ }}
2706
+ />
2707
+ <MText
2708
+ style={{
2709
+ fontSize: 16,
2710
+ color: '#333333',
2711
+ fontWeight: 'bold',
2712
+ textAlign: 'center',
2713
+ paddingVertical: 10,
2714
+ }}
2715
+ >
2716
+ Chúc mừng bạn!
2717
+ </MText>
2718
+ <MText
2719
+ style={{
2720
+ fontSize: 14,
2721
+ color: '#828282',
2722
+ textAlign: 'center',
2723
+ paddingHorizontal: 24,
2724
+ }}
2725
+ >
2726
+ Bạn đã được phê duyệt khoản vay từ Tima{'\n'}với số tiền là{' '}
2727
+ <MText
2728
+ style={{
2729
+ fontSize: 16,
2730
+ color: '#EF592E',
2731
+ fontWeight: 'bold',
2732
+ }}
2733
+ >
2734
+ {formatMoney(loan?.loanAmount)} VNĐ
2735
+ </MText>
2736
+ ! Vui lòng eKYC - hoàn thiện xác thực khuôn mặt và{'\n'}ký hợp
2737
+ đồng để được giải ngân
2738
+ </MText>
2739
+ <View
2740
+ style={{
2741
+ flexDirection: 'row',
2742
+ justifyContent: 'center',
2743
+ marginTop: 16,
2744
+ }}
2745
+ >
2746
+ <TouchableOpacity
2747
+ onPress={() => {
2748
+ setShowModal3(false);
2749
+ setTimeout(() => {
2750
+ navigation.push(ScreenNames.LivenessV2, {
2751
+ loan,
2752
+ });
2753
+ }, 300);
2754
+ }}
2755
+ style={{
2756
+ borderWidth: 1,
2757
+ height: 40,
2758
+ borderRadius: 40,
2759
+ alignItems: 'center',
2760
+ justifyContent: 'center',
2761
+ borderColor: '#EF592E',
2762
+ paddingHorizontal: 24,
2763
+ }}
2764
+ >
2765
+ <MText
2766
+ style={{
2767
+ color: '#EF592E',
2768
+ }}
2769
+ >
2770
+ Đi tới eKYC & Ký hợp đồng
2771
+ </MText>
2772
+ </TouchableOpacity>
2773
+ </View>
2774
+
2775
+ <TouchableOpacity
2776
+ onPress={() => {
2777
+ setShowModal3(false);
2778
+ }}
2779
+ >
2780
+ <MText
2781
+ style={{
2782
+ marginTop: 16,
2783
+ color: '#8E8E93',
2784
+ textAlign: 'center',
2785
+ }}
2786
+ >
2787
+ Tôi cần vay số tiền khác
2788
+ </MText>
2789
+ </TouchableOpacity>
2790
+
2791
+ <View
2792
+ style={{
2793
+ backgroundColor: '#EDF6FF',
2794
+ marginTop: 16,
2795
+ paddingVertical: 8,
2796
+ borderBottomLeftRadius: 6,
2797
+ borderBottomRightRadius: 6,
2798
+ }}
2799
+ >
2800
+ <TouchableOpacity
2801
+ onPress={() => {
2802
+ setShowModal3(false);
2803
+ setTimeout(() => {
2804
+ navigation.push(ScreenNames.LoanInterestRate, { loan });
2805
+ }, 300);
2806
+ }}
2807
+ >
2808
+ <MText
2809
+ style={{
2810
+ color: '#2F80ED',
2811
+ textAlign: 'center',
2812
+ fontSize: 12,
2813
+ }}
2814
+ >
2815
+ Bảng biểu lãi phí đơn vay {`->`}
2816
+ </MText>
2817
+ </TouchableOpacity>
2818
+ </View>
2819
+ </SafeAreaView>
2820
+ </Modal>
2412
2821
  </ScrollView>
2413
- <Observer>{() => <Loading isLoading={isLoading} />}</Observer>
2822
+ <Loading isLoading={isLoading} />
2414
2823
  </View>
2415
2824
  );
2416
2825
  });