react-native-timacare 3.3.55 → 3.3.56-alert

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 (574) hide show
  1. package/lib/commonjs/AppStore.js +1 -1
  2. package/lib/commonjs/AppStore.js.flow +7 -2
  3. package/lib/commonjs/AppStore.js.map +1 -1
  4. package/lib/commonjs/RNTimacare.js +1 -1
  5. package/lib/commonjs/RNTimacare.js.flow +7 -1
  6. package/lib/commonjs/RNTimacare.js.map +1 -1
  7. package/lib/commonjs/assets/icons/index.js +1 -1
  8. package/lib/commonjs/assets/icons/index.js.flow +8 -0
  9. package/lib/commonjs/assets/icons/index.js.map +1 -1
  10. package/lib/commonjs/assets/icons/modal_confirm.svg +15 -0
  11. package/lib/commonjs/assets/icons/modal_notice.svg +74 -0
  12. package/lib/commonjs/assets/icons/modal_success.svg +55 -0
  13. package/lib/commonjs/assets/icons/modal_warning.svg +48 -0
  14. package/lib/commonjs/components/AppModal.js +2 -0
  15. package/lib/commonjs/components/AppModal.js.flow +34 -0
  16. package/lib/commonjs/components/AppModal.js.map +1 -0
  17. package/lib/commonjs/components/ItemTimaOne.js +2 -0
  18. package/lib/commonjs/components/{ItemTimaOneV3.js.flow → ItemTimaOne.js.flow} +1 -1
  19. package/lib/commonjs/components/ItemTimaOne.js.map +1 -0
  20. package/lib/commonjs/components/ModalNotification/AlertGlobal.js +2 -0
  21. package/lib/commonjs/components/ModalNotification/AlertGlobal.js.flow +100 -0
  22. package/lib/commonjs/components/ModalNotification/AlertGlobal.js.map +1 -0
  23. package/lib/commonjs/components/ModalNotification/index.js +2 -0
  24. package/lib/commonjs/components/ModalNotification/index.js.flow +224 -0
  25. package/lib/commonjs/components/ModalNotification/index.js.map +1 -0
  26. package/lib/commonjs/components/ModalOptionLoan.js +1 -1
  27. package/lib/commonjs/components/ModalOptionLoan.js.flow +15 -7
  28. package/lib/commonjs/components/ModalOptionLoan.js.map +1 -1
  29. package/lib/commonjs/components/ModalOptionLoanDigital.js +1 -1
  30. package/lib/commonjs/components/ModalOptionLoanDigital.js.flow +15 -7
  31. package/lib/commonjs/components/ModalOptionLoanDigital.js.map +1 -1
  32. package/lib/commonjs/screens/SelectorStore.js +1 -1
  33. package/lib/commonjs/screens/SelectorStore.js.flow +7 -2
  34. package/lib/commonjs/screens/SelectorStore.js.map +1 -1
  35. package/lib/commonjs/screens/camera/CCCDCameraScreen.js +1 -1
  36. package/lib/commonjs/screens/camera/CCCDCameraScreen.js.flow +50 -54
  37. package/lib/commonjs/screens/camera/CCCDCameraScreen.js.map +1 -1
  38. package/lib/commonjs/screens/camera/index.js +1 -1
  39. package/lib/commonjs/screens/camera/index.js.flow +50 -54
  40. package/lib/commonjs/screens/camera/index.js.map +1 -1
  41. package/lib/commonjs/screens/cimb-sign/index.js +1 -1
  42. package/lib/commonjs/screens/cimb-sign/index.js.flow +10 -14
  43. package/lib/commonjs/screens/cimb-sign/index.js.map +1 -1
  44. package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
  45. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.flow +75 -54
  46. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
  47. package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
  48. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.flow +77 -54
  49. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
  50. package/lib/commonjs/screens/detail-loan/store.js +1 -1
  51. package/lib/commonjs/screens/detail-loan/store.js.flow +39 -7
  52. package/lib/commonjs/screens/detail-loan/store.js.map +1 -1
  53. package/lib/commonjs/screens/detail-loan-tima/InforLoan.js +1 -1
  54. package/lib/commonjs/screens/detail-loan-tima/InforLoan.js.flow +20 -4
  55. package/lib/commonjs/screens/detail-loan-tima/InforLoan.js.map +1 -1
  56. package/lib/commonjs/screens/detail-loan-tima/PaymentSchedule.js +1 -1
  57. package/lib/commonjs/screens/detail-loan-tima/PaymentSchedule.js.flow +19 -4
  58. package/lib/commonjs/screens/detail-loan-tima/PaymentSchedule.js.map +1 -1
  59. package/lib/commonjs/screens/digital-lending/Step6.js +1 -1
  60. package/lib/commonjs/screens/digital-lending/Step6.js.flow +24 -29
  61. package/lib/commonjs/screens/digital-lending/Step6.js.map +1 -1
  62. package/lib/commonjs/screens/digital-lending/store.js +1 -1
  63. package/lib/commonjs/screens/digital-lending/store.js.flow +113 -20
  64. package/lib/commonjs/screens/digital-lending/store.js.map +1 -1
  65. package/lib/commonjs/screens/eSign/Store.js +1 -1
  66. package/lib/commonjs/screens/eSign/Store.js.flow +69 -34
  67. package/lib/commonjs/screens/eSign/Store.js.map +1 -1
  68. package/lib/commonjs/screens/eSign/index.js +1 -1
  69. package/lib/commonjs/screens/eSign/index.js.flow +33 -34
  70. package/lib/commonjs/screens/eSign/index.js.map +1 -1
  71. package/lib/commonjs/screens/full-submit/accept_policy.js +1 -1
  72. package/lib/commonjs/screens/full-submit/accept_policy.js.flow +101 -85
  73. package/lib/commonjs/screens/full-submit/accept_policy.js.map +1 -1
  74. package/lib/commonjs/screens/full-submit/store.js +1 -1
  75. package/lib/commonjs/screens/full-submit/store.js.flow +157 -27
  76. package/lib/commonjs/screens/full-submit/store.js.map +1 -1
  77. package/lib/commonjs/screens/full-submit/update-info.js +1 -1
  78. package/lib/commonjs/screens/full-submit/update-info.js.flow +0 -1
  79. package/lib/commonjs/screens/full-submit/update-info.js.map +1 -1
  80. package/lib/commonjs/screens/home/DigitalTopupItem.js +1 -1
  81. package/lib/commonjs/screens/home/DigitalTopupItem.js.flow +15 -7
  82. package/lib/commonjs/screens/home/DigitalTopupItem.js.map +1 -1
  83. package/lib/commonjs/screens/home/ItemMotoBikeLoan.js +1 -1
  84. package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.flow +16 -7
  85. package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.map +1 -1
  86. package/lib/commonjs/screens/home/Store.js +1 -1
  87. package/lib/commonjs/screens/home/Store.js.flow +44 -23
  88. package/lib/commonjs/screens/home/Store.js.map +1 -1
  89. package/lib/commonjs/screens/home/index.js +1 -1
  90. package/lib/commonjs/screens/home/index.js.flow +299 -186
  91. package/lib/commonjs/screens/home/index.js.map +1 -1
  92. package/lib/commonjs/screens/liveness/LivenessStore.js +1 -1
  93. package/lib/commonjs/screens/liveness/LivenessStore.js.flow +111 -89
  94. package/lib/commonjs/screens/liveness/LivenessStore.js.map +1 -1
  95. package/lib/commonjs/screens/liveness/index.js +1 -1
  96. package/lib/commonjs/screens/liveness/index.js.flow +67 -68
  97. package/lib/commonjs/screens/liveness/index.js.map +1 -1
  98. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  99. package/lib/commonjs/screens/liveness-v2/index.js.flow +52 -52
  100. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  101. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
  102. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.flow +20 -10
  103. package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
  104. package/lib/commonjs/screens/loan/UpdateLoan.js +1 -1
  105. package/lib/commonjs/screens/loan/UpdateLoan.js.flow +56 -23
  106. package/lib/commonjs/screens/loan/UpdateLoan.js.map +1 -1
  107. package/lib/commonjs/screens/motobike/InfoLoanMotobike.js +1 -1
  108. package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.flow +43 -29
  109. package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.map +1 -1
  110. package/lib/commonjs/screens/motobike/PolicyF88.js +1 -1
  111. package/lib/commonjs/screens/motobike/PolicyF88.js.flow +15 -6
  112. package/lib/commonjs/screens/motobike/PolicyF88.js.map +1 -1
  113. package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js +1 -1
  114. package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.flow +13 -3
  115. package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.map +1 -1
  116. package/lib/commonjs/screens/mrz-scanner/index.js +1 -1
  117. package/lib/commonjs/screens/mrz-scanner/index.js.flow +56 -55
  118. package/lib/commonjs/screens/mrz-scanner/index.js.map +1 -1
  119. package/lib/commonjs/screens/mrz-scanner/store.js +1 -1
  120. package/lib/commonjs/screens/mrz-scanner/store.js.flow +13 -3
  121. package/lib/commonjs/screens/mrz-scanner/store.js.map +1 -1
  122. package/lib/commonjs/screens/nationalID/Store.js +1 -1
  123. package/lib/commonjs/screens/nationalID/Store.js.flow +50 -29
  124. package/lib/commonjs/screens/nationalID/Store.js.map +1 -1
  125. package/lib/commonjs/screens/nationalID/index.js +1 -1
  126. package/lib/commonjs/screens/nationalID/index.js.flow +0 -1
  127. package/lib/commonjs/screens/nationalID/index.js.map +1 -1
  128. package/lib/commonjs/screens/nationalIDBack/Store.js +1 -1
  129. package/lib/commonjs/screens/nationalIDBack/Store.js.flow +44 -26
  130. package/lib/commonjs/screens/nationalIDBack/Store.js.map +1 -1
  131. package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
  132. package/lib/commonjs/screens/nationalIDBack/index.js.flow +0 -1
  133. package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
  134. package/lib/commonjs/screens/notification/ListLoanStore.js +1 -1
  135. package/lib/commonjs/screens/notification/ListLoanStore.js.flow +19 -4
  136. package/lib/commonjs/screens/notification/ListLoanStore.js.map +1 -1
  137. package/lib/commonjs/screens/notification/index.js +1 -1
  138. package/lib/commonjs/screens/notification/index.js.flow +0 -1
  139. package/lib/commonjs/screens/notification/index.js.map +1 -1
  140. package/lib/commonjs/screens/notification/store.js +1 -1
  141. package/lib/commonjs/screens/notification/store.js.flow +7 -2
  142. package/lib/commonjs/screens/notification/store.js.map +1 -1
  143. package/lib/commonjs/screens/personal/index.js +1 -1
  144. package/lib/commonjs/screens/personal/index.js.flow +21 -19
  145. package/lib/commonjs/screens/personal/index.js.map +1 -1
  146. package/lib/commonjs/screens/qualify/Store.js.flow +0 -1
  147. package/lib/commonjs/screens/qualify/Store.js.map +1 -1
  148. package/lib/commonjs/screens/quick-submit/store.js +1 -1
  149. package/lib/commonjs/screens/quick-submit/store.js.flow +85 -15
  150. package/lib/commonjs/screens/quick-submit/store.js.map +1 -1
  151. package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
  152. package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.flow +20 -4
  153. package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
  154. package/lib/commonjs/screens/schedule-payment/store.js +1 -1
  155. package/lib/commonjs/screens/schedule-payment/store.js.flow +13 -5
  156. package/lib/commonjs/screens/schedule-payment/store.js.map +1 -1
  157. package/lib/commonjs/screens/selfie/SelfieStore.js +1 -1
  158. package/lib/commonjs/screens/selfie/SelfieStore.js.flow +25 -9
  159. package/lib/commonjs/screens/selfie/SelfieStore.js.map +1 -1
  160. package/lib/commonjs/screens/selfie/index.js +1 -1
  161. package/lib/commonjs/screens/selfie/index.js.flow +0 -1
  162. package/lib/commonjs/screens/selfie/index.js.map +1 -1
  163. package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
  164. package/lib/commonjs/screens/sign-tima/ViewContract.js.flow +17 -18
  165. package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
  166. package/lib/commonjs/screens/sign-tima/store.js +1 -1
  167. package/lib/commonjs/screens/sign-tima/store.js.flow +37 -7
  168. package/lib/commonjs/screens/sign-tima/store.js.map +1 -1
  169. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js +1 -1
  170. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.flow +36 -10
  171. package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
  172. package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
  173. package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +64 -66
  174. package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
  175. package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js +1 -1
  176. package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.flow +21 -4
  177. package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.map +1 -1
  178. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +1 -1
  179. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +50 -54
  180. package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
  181. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
  182. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +31 -25
  183. package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  184. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  185. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +88 -82
  186. package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  187. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
  188. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +25 -5
  189. package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  190. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
  191. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.flow +19 -4
  192. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
  193. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
  194. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +19 -4
  195. package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
  196. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js +1 -1
  197. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.flow +42 -25
  198. package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.map +1 -1
  199. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
  200. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +63 -56
  201. package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  202. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  203. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +63 -55
  204. package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  205. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
  206. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.flow +50 -43
  207. package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -1
  208. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
  209. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +50 -54
  210. package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  211. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +1 -1
  212. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +19 -4
  213. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
  214. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
  215. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +19 -4
  216. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
  217. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
  218. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +19 -4
  219. package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
  220. package/lib/commonjs/screens/toan-trinh-so/store.js +1 -1
  221. package/lib/commonjs/screens/toan-trinh-so/store.js.flow +82 -37
  222. package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -1
  223. package/lib/commonjs/screens/uploadVideo/index.js +1 -1
  224. package/lib/commonjs/screens/uploadVideo/index.js.flow +26 -21
  225. package/lib/commonjs/screens/uploadVideo/index.js.map +1 -1
  226. package/lib/commonjs/screens/uploadVideo/videoStore.js +1 -1
  227. package/lib/commonjs/screens/uploadVideo/videoStore.js.flow +19 -4
  228. package/lib/commonjs/screens/uploadVideo/videoStore.js.map +1 -1
  229. package/lib/commonjs/screens/v3/AssetInformation.js +1 -1
  230. package/lib/commonjs/screens/v3/AssetInformation.js.flow +35 -16
  231. package/lib/commonjs/screens/v3/AssetInformation.js.map +1 -1
  232. package/lib/commonjs/screens/v3/LoanBuyCar.js +1 -1
  233. package/lib/commonjs/screens/v3/LoanBuyCar.js.flow +35 -16
  234. package/lib/commonjs/screens/v3/LoanBuyCar.js.map +1 -1
  235. package/lib/commonjs/services/api/api.js +1 -1
  236. package/lib/commonjs/services/api/api.js.flow +23 -26
  237. package/lib/commonjs/services/api/api.js.map +1 -1
  238. package/lib/module/AppStore.js +1 -1
  239. package/lib/module/AppStore.js.map +1 -1
  240. package/lib/module/RNTimacare.js +1 -1
  241. package/lib/module/RNTimacare.js.map +1 -1
  242. package/lib/module/assets/icons/index.js +1 -1
  243. package/lib/module/assets/icons/index.js.map +1 -1
  244. package/lib/module/assets/icons/modal_confirm.svg +15 -0
  245. package/lib/module/assets/icons/modal_notice.svg +74 -0
  246. package/lib/module/assets/icons/modal_success.svg +55 -0
  247. package/lib/module/assets/icons/modal_warning.svg +48 -0
  248. package/lib/module/components/AppModal.js +2 -0
  249. package/lib/module/components/AppModal.js.map +1 -0
  250. package/lib/module/components/ItemTimaOne.js +2 -0
  251. package/lib/module/components/ItemTimaOne.js.map +1 -0
  252. package/lib/module/components/ModalNotification/AlertGlobal.js +2 -0
  253. package/lib/module/components/ModalNotification/AlertGlobal.js.map +1 -0
  254. package/lib/module/components/ModalNotification/index.js +2 -0
  255. package/lib/module/components/ModalNotification/index.js.map +1 -0
  256. package/lib/module/components/ModalOptionLoan.js +1 -1
  257. package/lib/module/components/ModalOptionLoan.js.map +1 -1
  258. package/lib/module/components/ModalOptionLoanDigital.js +1 -1
  259. package/lib/module/components/ModalOptionLoanDigital.js.map +1 -1
  260. package/lib/module/screens/SelectorStore.js +1 -1
  261. package/lib/module/screens/SelectorStore.js.map +1 -1
  262. package/lib/module/screens/camera/CCCDCameraScreen.js +1 -1
  263. package/lib/module/screens/camera/CCCDCameraScreen.js.map +1 -1
  264. package/lib/module/screens/camera/index.js +1 -1
  265. package/lib/module/screens/camera/index.js.map +1 -1
  266. package/lib/module/screens/cimb-sign/index.js +1 -1
  267. package/lib/module/screens/cimb-sign/index.js.map +1 -1
  268. package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
  269. package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
  270. package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
  271. package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
  272. package/lib/module/screens/detail-loan/store.js +1 -1
  273. package/lib/module/screens/detail-loan/store.js.map +1 -1
  274. package/lib/module/screens/detail-loan-tima/InforLoan.js +1 -1
  275. package/lib/module/screens/detail-loan-tima/InforLoan.js.map +1 -1
  276. package/lib/module/screens/detail-loan-tima/PaymentSchedule.js +1 -1
  277. package/lib/module/screens/detail-loan-tima/PaymentSchedule.js.map +1 -1
  278. package/lib/module/screens/digital-lending/Step6.js +1 -1
  279. package/lib/module/screens/digital-lending/Step6.js.map +1 -1
  280. package/lib/module/screens/digital-lending/store.js +1 -1
  281. package/lib/module/screens/digital-lending/store.js.map +1 -1
  282. package/lib/module/screens/eSign/Store.js +1 -1
  283. package/lib/module/screens/eSign/Store.js.map +1 -1
  284. package/lib/module/screens/eSign/index.js +1 -1
  285. package/lib/module/screens/eSign/index.js.map +1 -1
  286. package/lib/module/screens/full-submit/accept_policy.js +1 -1
  287. package/lib/module/screens/full-submit/accept_policy.js.map +1 -1
  288. package/lib/module/screens/full-submit/store.js +1 -1
  289. package/lib/module/screens/full-submit/store.js.map +1 -1
  290. package/lib/module/screens/full-submit/update-info.js +1 -1
  291. package/lib/module/screens/full-submit/update-info.js.map +1 -1
  292. package/lib/module/screens/home/DigitalTopupItem.js +1 -1
  293. package/lib/module/screens/home/DigitalTopupItem.js.map +1 -1
  294. package/lib/module/screens/home/ItemMotoBikeLoan.js +1 -1
  295. package/lib/module/screens/home/ItemMotoBikeLoan.js.map +1 -1
  296. package/lib/module/screens/home/Store.js +1 -1
  297. package/lib/module/screens/home/Store.js.map +1 -1
  298. package/lib/module/screens/home/index.js +1 -1
  299. package/lib/module/screens/home/index.js.map +1 -1
  300. package/lib/module/screens/liveness/LivenessStore.js +1 -1
  301. package/lib/module/screens/liveness/LivenessStore.js.map +1 -1
  302. package/lib/module/screens/liveness/index.js +1 -1
  303. package/lib/module/screens/liveness/index.js.map +1 -1
  304. package/lib/module/screens/liveness-v2/index.js +1 -1
  305. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  306. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
  307. package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
  308. package/lib/module/screens/loan/UpdateLoan.js +1 -1
  309. package/lib/module/screens/loan/UpdateLoan.js.map +1 -1
  310. package/lib/module/screens/motobike/InfoLoanMotobike.js +1 -1
  311. package/lib/module/screens/motobike/InfoLoanMotobike.js.map +1 -1
  312. package/lib/module/screens/motobike/PolicyF88.js +1 -1
  313. package/lib/module/screens/motobike/PolicyF88.js.map +1 -1
  314. package/lib/module/screens/motobike/ReviewLoanMotobike.js +1 -1
  315. package/lib/module/screens/motobike/ReviewLoanMotobike.js.map +1 -1
  316. package/lib/module/screens/mrz-scanner/index.js +1 -1
  317. package/lib/module/screens/mrz-scanner/index.js.map +1 -1
  318. package/lib/module/screens/mrz-scanner/store.js +1 -1
  319. package/lib/module/screens/mrz-scanner/store.js.map +1 -1
  320. package/lib/module/screens/nationalID/Store.js +1 -1
  321. package/lib/module/screens/nationalID/Store.js.map +1 -1
  322. package/lib/module/screens/nationalID/index.js +1 -1
  323. package/lib/module/screens/nationalID/index.js.map +1 -1
  324. package/lib/module/screens/nationalIDBack/Store.js +1 -1
  325. package/lib/module/screens/nationalIDBack/Store.js.map +1 -1
  326. package/lib/module/screens/nationalIDBack/index.js +1 -1
  327. package/lib/module/screens/nationalIDBack/index.js.map +1 -1
  328. package/lib/module/screens/notification/ListLoanStore.js +1 -1
  329. package/lib/module/screens/notification/ListLoanStore.js.map +1 -1
  330. package/lib/module/screens/notification/index.js +1 -1
  331. package/lib/module/screens/notification/index.js.map +1 -1
  332. package/lib/module/screens/notification/store.js +1 -1
  333. package/lib/module/screens/notification/store.js.map +1 -1
  334. package/lib/module/screens/personal/index.js +1 -1
  335. package/lib/module/screens/personal/index.js.map +1 -1
  336. package/lib/module/screens/qualify/Store.js.map +1 -1
  337. package/lib/module/screens/quick-submit/store.js +1 -1
  338. package/lib/module/screens/quick-submit/store.js.map +1 -1
  339. package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
  340. package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
  341. package/lib/module/screens/schedule-payment/store.js +1 -1
  342. package/lib/module/screens/schedule-payment/store.js.map +1 -1
  343. package/lib/module/screens/selfie/SelfieStore.js +1 -1
  344. package/lib/module/screens/selfie/SelfieStore.js.map +1 -1
  345. package/lib/module/screens/selfie/index.js +1 -1
  346. package/lib/module/screens/selfie/index.js.map +1 -1
  347. package/lib/module/screens/sign-tima/ViewContract.js +1 -1
  348. package/lib/module/screens/sign-tima/ViewContract.js.map +1 -1
  349. package/lib/module/screens/sign-tima/store.js +1 -1
  350. package/lib/module/screens/sign-tima/store.js.map +1 -1
  351. package/lib/module/screens/toan-trinh-so/LoanInterestRate.js +1 -1
  352. package/lib/module/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
  353. package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
  354. package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
  355. package/lib/module/screens/toan-trinh-so/RegisterBack.js +1 -1
  356. package/lib/module/screens/toan-trinh-so/RegisterBack.js.map +1 -1
  357. package/lib/module/screens/toan-trinh-so/RegisterCamera.js +1 -1
  358. package/lib/module/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
  359. package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
  360. package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
  361. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
  362. package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
  363. package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
  364. package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
  365. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
  366. package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
  367. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
  368. package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
  369. package/lib/module/screens/toan-trinh-so/TTSOTP.js +1 -1
  370. package/lib/module/screens/toan-trinh-so/TTSOTP.js.map +1 -1
  371. package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
  372. package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
  373. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
  374. package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
  375. package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
  376. package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -1
  377. package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
  378. package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
  379. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +1 -1
  380. package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
  381. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
  382. package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
  383. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
  384. package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
  385. package/lib/module/screens/toan-trinh-so/store.js +1 -1
  386. package/lib/module/screens/toan-trinh-so/store.js.map +1 -1
  387. package/lib/module/screens/uploadVideo/index.js +1 -1
  388. package/lib/module/screens/uploadVideo/index.js.map +1 -1
  389. package/lib/module/screens/uploadVideo/videoStore.js +1 -1
  390. package/lib/module/screens/uploadVideo/videoStore.js.map +1 -1
  391. package/lib/module/screens/v3/AssetInformation.js +1 -1
  392. package/lib/module/screens/v3/AssetInformation.js.map +1 -1
  393. package/lib/module/screens/v3/LoanBuyCar.js +1 -1
  394. package/lib/module/screens/v3/LoanBuyCar.js.map +1 -1
  395. package/lib/module/services/api/api.js +1 -1
  396. package/lib/module/services/api/api.js.map +1 -1
  397. package/lib/typescript/AppStore.d.ts.map +1 -1
  398. package/lib/typescript/RNTimacare.d.ts.map +1 -1
  399. package/lib/typescript/assets/icons/index.d.ts +5 -1
  400. package/lib/typescript/assets/icons/index.d.ts.map +1 -1
  401. package/lib/typescript/components/AppModal.d.ts +18 -0
  402. package/lib/typescript/components/AppModal.d.ts.map +1 -0
  403. package/lib/typescript/components/ItemTimaOne.d.ts +7 -0
  404. package/lib/typescript/components/ItemTimaOne.d.ts.map +1 -0
  405. package/lib/typescript/components/ModalNotification/AlertGlobal.d.ts +30 -0
  406. package/lib/typescript/components/ModalNotification/AlertGlobal.d.ts.map +1 -0
  407. package/lib/typescript/components/ModalNotification/index.d.ts +35 -0
  408. package/lib/typescript/components/ModalNotification/index.d.ts.map +1 -0
  409. package/lib/typescript/components/ModalOptionLoan.d.ts.map +1 -1
  410. package/lib/typescript/components/ModalOptionLoanDigital.d.ts.map +1 -1
  411. package/lib/typescript/screens/SelectorStore.d.ts.map +1 -1
  412. package/lib/typescript/screens/camera/CCCDCameraScreen.d.ts.map +1 -1
  413. package/lib/typescript/screens/camera/index.d.ts.map +1 -1
  414. package/lib/typescript/screens/cimb-sign/index.d.ts.map +1 -1
  415. package/lib/typescript/screens/detail-loan/ShowQrCode.d.ts.map +1 -1
  416. package/lib/typescript/screens/detail-loan/store.d.ts.map +1 -1
  417. package/lib/typescript/screens/detail-loan-tima/InforLoan.d.ts.map +1 -1
  418. package/lib/typescript/screens/detail-loan-tima/PaymentSchedule.d.ts.map +1 -1
  419. package/lib/typescript/screens/digital-lending/Step6.d.ts.map +1 -1
  420. package/lib/typescript/screens/digital-lending/store.d.ts.map +1 -1
  421. package/lib/typescript/screens/eSign/Store.d.ts.map +1 -1
  422. package/lib/typescript/screens/eSign/index.d.ts.map +1 -1
  423. package/lib/typescript/screens/full-submit/accept_policy.d.ts.map +1 -1
  424. package/lib/typescript/screens/full-submit/store.d.ts.map +1 -1
  425. package/lib/typescript/screens/full-submit/update-info.d.ts.map +1 -1
  426. package/lib/typescript/screens/home/DigitalTopupItem.d.ts.map +1 -1
  427. package/lib/typescript/screens/home/ItemMotoBikeLoan.d.ts.map +1 -1
  428. package/lib/typescript/screens/home/Store.d.ts.map +1 -1
  429. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  430. package/lib/typescript/screens/liveness/LivenessStore.d.ts.map +1 -1
  431. package/lib/typescript/screens/liveness/index.d.ts.map +1 -1
  432. package/lib/typescript/screens/loan/PreviewSchedulePaymentTopup.d.ts.map +1 -1
  433. package/lib/typescript/screens/loan/UpdateLoan.d.ts.map +1 -1
  434. package/lib/typescript/screens/motobike/InfoLoanMotobike.d.ts.map +1 -1
  435. package/lib/typescript/screens/motobike/PolicyF88.d.ts.map +1 -1
  436. package/lib/typescript/screens/motobike/ReviewLoanMotobike.d.ts.map +1 -1
  437. package/lib/typescript/screens/mrz-scanner/index.d.ts.map +1 -1
  438. package/lib/typescript/screens/mrz-scanner/store.d.ts.map +1 -1
  439. package/lib/typescript/screens/nationalID/Store.d.ts.map +1 -1
  440. package/lib/typescript/screens/nationalID/index.d.ts.map +1 -1
  441. package/lib/typescript/screens/nationalIDBack/Store.d.ts.map +1 -1
  442. package/lib/typescript/screens/nationalIDBack/index.d.ts.map +1 -1
  443. package/lib/typescript/screens/notification/ListLoanStore.d.ts.map +1 -1
  444. package/lib/typescript/screens/notification/index.d.ts.map +1 -1
  445. package/lib/typescript/screens/notification/store.d.ts.map +1 -1
  446. package/lib/typescript/screens/personal/index.d.ts.map +1 -1
  447. package/lib/typescript/screens/qualify/Store.d.ts.map +1 -1
  448. package/lib/typescript/screens/quick-submit/store.d.ts.map +1 -1
  449. package/lib/typescript/screens/schedule-payment/DigitalSchedulePayment.d.ts.map +1 -1
  450. package/lib/typescript/screens/schedule-payment/store.d.ts.map +1 -1
  451. package/lib/typescript/screens/selfie/SelfieStore.d.ts.map +1 -1
  452. package/lib/typescript/screens/selfie/index.d.ts.map +1 -1
  453. package/lib/typescript/screens/sign-tima/ViewContract.d.ts.map +1 -1
  454. package/lib/typescript/screens/sign-tima/store.d.ts.map +1 -1
  455. package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts.map +1 -1
  456. package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -1
  457. package/lib/typescript/screens/toan-trinh-so/RegisterBack.d.ts.map +1 -1
  458. package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts.map +1 -1
  459. package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
  460. package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -1
  461. package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
  462. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDBack.d.ts.map +1 -1
  463. package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts.map +1 -1
  464. package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts.map +1 -1
  465. package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
  466. package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
  467. package/lib/typescript/screens/toan-trinh-so/TopupLoanInfo.d.ts.map +1 -1
  468. package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
  469. package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts.map +1 -1
  470. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts.map +1 -1
  471. package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts.map +1 -1
  472. package/lib/typescript/screens/toan-trinh-so/store.d.ts.map +1 -1
  473. package/lib/typescript/screens/uploadVideo/index.d.ts.map +1 -1
  474. package/lib/typescript/screens/uploadVideo/videoStore.d.ts.map +1 -1
  475. package/lib/typescript/screens/v3/AssetInformation.d.ts.map +1 -1
  476. package/lib/typescript/screens/v3/LoanBuyCar.d.ts.map +1 -1
  477. package/lib/typescript/services/api/api.d.ts.map +1 -1
  478. package/package.json +1 -1
  479. package/src/AppStore.tsx +7 -2
  480. package/src/RNTimacare.tsx +7 -1
  481. package/src/assets/icons/index.tsx +8 -0
  482. package/src/assets/icons/modal_confirm.svg +15 -0
  483. package/src/assets/icons/modal_notice.svg +74 -0
  484. package/src/assets/icons/modal_success.svg +55 -0
  485. package/src/assets/icons/modal_warning.svg +48 -0
  486. package/src/components/AppModal.tsx +34 -0
  487. package/src/components/{ItemTimaOneV3.tsx → ItemTimaOne.tsx} +1 -1
  488. package/src/components/ModalNotification/AlertGlobal.tsx +100 -0
  489. package/src/components/ModalNotification/index.tsx +224 -0
  490. package/src/components/ModalOptionLoan.tsx +15 -7
  491. package/src/components/ModalOptionLoanDigital.tsx +15 -7
  492. package/src/screens/SelectorStore.tsx +7 -2
  493. package/src/screens/camera/CCCDCameraScreen.tsx +50 -54
  494. package/src/screens/camera/index.tsx +50 -54
  495. package/src/screens/cimb-sign/index.tsx +10 -14
  496. package/src/screens/detail-loan/PaymentInfo.tsx +75 -54
  497. package/src/screens/detail-loan/ShowQrCode.tsx +77 -54
  498. package/src/screens/detail-loan/store.tsx +39 -7
  499. package/src/screens/detail-loan-tima/InforLoan.tsx +20 -4
  500. package/src/screens/detail-loan-tima/PaymentSchedule.tsx +19 -4
  501. package/src/screens/digital-lending/Step6.tsx +24 -29
  502. package/src/screens/digital-lending/store.tsx +113 -20
  503. package/src/screens/eSign/Store.tsx +69 -34
  504. package/src/screens/eSign/index.tsx +33 -34
  505. package/src/screens/full-submit/accept_policy.tsx +101 -85
  506. package/src/screens/full-submit/store.tsx +157 -27
  507. package/src/screens/full-submit/update-info.tsx +0 -1
  508. package/src/screens/home/DigitalTopupItem.tsx +15 -7
  509. package/src/screens/home/ItemMotoBikeLoan.tsx +16 -7
  510. package/src/screens/home/Store.tsx +44 -23
  511. package/src/screens/home/index.tsx +299 -186
  512. package/src/screens/liveness/LivenessStore.tsx +111 -89
  513. package/src/screens/liveness/index.tsx +67 -68
  514. package/src/screens/liveness-v2/index.tsx +52 -52
  515. package/src/screens/loan/PreviewSchedulePaymentTopup.tsx +20 -10
  516. package/src/screens/loan/UpdateLoan.tsx +56 -23
  517. package/src/screens/motobike/InfoLoanMotobike.tsx +43 -29
  518. package/src/screens/motobike/PolicyF88.tsx +15 -6
  519. package/src/screens/motobike/ReviewLoanMotobike.tsx +13 -3
  520. package/src/screens/mrz-scanner/index.tsx +56 -55
  521. package/src/screens/mrz-scanner/store.ts +13 -3
  522. package/src/screens/nationalID/Store.tsx +50 -29
  523. package/src/screens/nationalID/index.tsx +0 -1
  524. package/src/screens/nationalIDBack/Store.tsx +44 -26
  525. package/src/screens/nationalIDBack/index.tsx +0 -1
  526. package/src/screens/notification/ListLoanStore.tsx +19 -4
  527. package/src/screens/notification/index.tsx +0 -1
  528. package/src/screens/notification/store.tsx +7 -2
  529. package/src/screens/personal/index.tsx +21 -19
  530. package/src/screens/qualify/Store.tsx +0 -1
  531. package/src/screens/quick-submit/store.tsx +85 -15
  532. package/src/screens/schedule-payment/DigitalSchedulePayment.tsx +20 -4
  533. package/src/screens/schedule-payment/store.tsx +13 -5
  534. package/src/screens/selfie/SelfieStore.tsx +25 -9
  535. package/src/screens/selfie/index.tsx +0 -1
  536. package/src/screens/sign-tima/ViewContract.tsx +17 -18
  537. package/src/screens/sign-tima/store.tsx +37 -7
  538. package/src/screens/toan-trinh-so/LoanInterestRate.tsx +36 -10
  539. package/src/screens/toan-trinh-so/OCR.tsx +64 -66
  540. package/src/screens/toan-trinh-so/RegisterBack.tsx +21 -4
  541. package/src/screens/toan-trinh-so/RegisterCamera.tsx +50 -54
  542. package/src/screens/toan-trinh-so/ReviewInformation.tsx +31 -25
  543. package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +88 -82
  544. package/src/screens/toan-trinh-so/ReviewLoan.tsx +25 -5
  545. package/src/screens/toan-trinh-so/TTSNationalIDBack.tsx +19 -4
  546. package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +19 -4
  547. package/src/screens/toan-trinh-so/TTSOTP.tsx +42 -25
  548. package/src/screens/toan-trinh-so/TTSSelfie.tsx +63 -56
  549. package/src/screens/toan-trinh-so/TTSSignLoan.tsx +63 -55
  550. package/src/screens/toan-trinh-so/TopupLoanInfo.tsx +50 -43
  551. package/src/screens/toan-trinh-so/VehicleCamera.tsx +50 -54
  552. package/src/screens/toan-trinh-so/VehicleRegistration.tsx +19 -4
  553. package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +19 -4
  554. package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +19 -4
  555. package/src/screens/toan-trinh-so/store.ts +82 -37
  556. package/src/screens/uploadVideo/index.tsx +26 -21
  557. package/src/screens/uploadVideo/videoStore.tsx +19 -4
  558. package/src/screens/v3/AssetInformation.tsx +35 -16
  559. package/src/screens/v3/LoanBuyCar.tsx +35 -16
  560. package/src/services/api/api.ts +23 -26
  561. package/lib/commonjs/components/ItemTimaOneV2.js +0 -2
  562. package/lib/commonjs/components/ItemTimaOneV2.js.flow +0 -617
  563. package/lib/commonjs/components/ItemTimaOneV2.js.map +0 -1
  564. package/lib/commonjs/components/ItemTimaOneV3.js +0 -2
  565. package/lib/commonjs/components/ItemTimaOneV3.js.map +0 -1
  566. package/lib/module/components/ItemTimaOneV2.js +0 -2
  567. package/lib/module/components/ItemTimaOneV2.js.map +0 -1
  568. package/lib/module/components/ItemTimaOneV3.js +0 -2
  569. package/lib/module/components/ItemTimaOneV3.js.map +0 -1
  570. package/lib/typescript/components/ItemTimaOneV2.d.ts +0 -7
  571. package/lib/typescript/components/ItemTimaOneV2.d.ts.map +0 -1
  572. package/lib/typescript/components/ItemTimaOneV3.d.ts +0 -7
  573. package/lib/typescript/components/ItemTimaOneV3.d.ts.map +0 -1
  574. package/src/components/ItemTimaOneV2.tsx +0 -617
@@ -2,7 +2,7 @@
2
2
  import { observable, action } from 'mobx';
3
3
  import { Api } from '../../services/api';
4
4
  import { myLog } from '../../utils/log';
5
- import { Alert } from 'react-native';
5
+ import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
6
6
  import { NATIONAL_ID, save, USER } from '../../utils/storage';
7
7
  import appStore from '../../AppStore';
8
8
 
@@ -38,35 +38,47 @@ class Store {
38
38
  onSuccess(response.data.data);
39
39
  }
40
40
  } else {
41
- Alert.alert(
42
- 'Thông báo',
43
- 'Vui lòng chụp đầy đủ không bị cắt góc CMND/CCCD mặt sau',
44
- [{ text: 'Đồng ý' }]
45
- );
41
+ AlertGlobal.show({
42
+ type: 'warning',
43
+ title: 'Thông báo',
44
+ message:
45
+ 'Vui lòng chụp đầy đủ không bị cắt góc CMND/CCCD mặt sau',
46
+ primaryText: 'Đồng ý',
47
+ });
46
48
  }
47
49
  } else {
48
- Alert.alert(
49
- 'Thông báo',
50
- `Vui lòng chụp đúng ảnh CMND/CCCD mặt sau`,
51
- [{ text: 'Đồng ý' }]
52
- );
50
+ AlertGlobal.show({
51
+ type: 'warning',
52
+ title: 'Thông báo',
53
+ message: `Vui lòng chụp đúng ảnh CMND/CCCD mặt sau`,
54
+ primaryText: 'Đồng ý',
55
+ });
53
56
  }
54
57
  } else {
55
- Alert.alert('Thông báo', `Vui lòng chụp đúng ảnh CMND/CCCD mặt sau`, [
56
- { text: 'Đồng ý' },
57
- ]);
58
+ AlertGlobal.show({
59
+ type: 'warning',
60
+ title: 'Thông báo',
61
+ message: `Vui lòng chụp đúng ảnh CMND/CCCD mặt sau`,
62
+ primaryText: 'Đồng ý',
63
+ });
58
64
  }
59
65
  } else {
60
- Alert.alert('Thông báo', response.data.meta.errorMessage, [
61
- { text: 'Đồng ý' },
62
- ]);
66
+ AlertGlobal.show({
67
+ type: 'warning',
68
+ title: 'Thông báo',
69
+ message: response.data.meta.errorMessage,
70
+ primaryText: 'Đồng ý',
71
+ });
63
72
  }
64
73
  } else {
65
74
  this.isLoading = false;
66
75
  this.isError = false;
67
- Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau', [
68
- { text: 'Đồng ý' },
69
- ]);
76
+ AlertGlobal.show({
77
+ type: 'warning',
78
+ title: 'Thông báo',
79
+ message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
80
+ primaryText: 'Đồng ý',
81
+ });
70
82
  }
71
83
  }
72
84
 
@@ -85,17 +97,23 @@ class Store {
85
97
  }
86
98
  } else {
87
99
  if (onError) onError();
88
- Alert.alert('Thông báo', response.data.meta.errorMessage, [
89
- { text: 'Đồng ý' },
90
- ]);
100
+ AlertGlobal.show({
101
+ type: 'warning',
102
+ title: 'Thông báo',
103
+ message: response.data.meta.errorMessage,
104
+ primaryText: 'Đồng ý',
105
+ });
91
106
  }
92
107
  } else {
93
108
  this.isLoading = false;
94
109
  this.isError = false;
95
110
  if (onError) onError();
96
- Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau', [
97
- { text: 'Đồng ý' },
98
- ]);
111
+ AlertGlobal.show({
112
+ type: 'warning',
113
+ title: 'Thông báo',
114
+ message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
115
+ primaryText: 'Đồng ý',
116
+ });
99
117
  }
100
118
  }
101
119
  }
@@ -2,7 +2,6 @@
2
2
  import React, { useState } from 'react';
3
3
  import {
4
4
  ActivityIndicator,
5
- Alert,
6
5
  Dimensions,
7
6
  Image,
8
7
  ImageStyle,
@@ -2,7 +2,7 @@
2
2
  import { observable, action } from 'mobx';
3
3
  import { Api } from '../../services/api';
4
4
  import { myLog } from '../../utils/log';
5
- import { Alert } from 'react-native';
5
+ import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
6
6
 
7
7
  class ListLoanStore {
8
8
  @observable isLoading = false;
@@ -94,7 +94,12 @@ class ListLoanStore {
94
94
  } else {
95
95
  this.isLoading = false;
96
96
  this.isError = false;
97
- Alert.alert('Lỗi', response.Messages);
97
+ AlertGlobal.show({
98
+ type: 'warning',
99
+ title: 'Lỗi',
100
+ message: response.Messages,
101
+ primaryText: 'Đóng',
102
+ });
98
103
  }
99
104
  }
100
105
 
@@ -119,7 +124,12 @@ class ListLoanStore {
119
124
  } else {
120
125
  this.isLoading = false;
121
126
  this.isError = false;
122
- Alert.alert('Lỗi', response.Messages);
127
+ AlertGlobal.show({
128
+ type: 'warning',
129
+ title: 'Lỗi',
130
+ message: response.Messages,
131
+ primaryText: 'Đóng',
132
+ });
123
133
  }
124
134
  }
125
135
 
@@ -140,7 +150,12 @@ class ListLoanStore {
140
150
  }
141
151
  } else {
142
152
  this.statusError = false;
143
- Alert.alert('Lỗi', response.Messages);
153
+ AlertGlobal.show({
154
+ type: 'warning',
155
+ title: 'Lỗi',
156
+ message: response.Messages,
157
+ primaryText: 'Đóng',
158
+ });
144
159
  }
145
160
  }
146
161
  }
@@ -1,7 +1,6 @@
1
1
  //@ts-nocheck
2
2
  import React, { useEffect, useState } from 'react';
3
3
  import {
4
- Alert,
5
4
  SafeAreaView,
6
5
  ScrollView,
7
6
  TouchableOpacity,
@@ -1,7 +1,7 @@
1
1
  //@ts-nocheck
2
2
  import { action, observable } from 'mobx';
3
- import { Alert } from 'react-native';
4
3
  import { Api } from '../../services/api';
4
+ import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
5
5
 
6
6
  class Store {
7
7
  @observable isLoading = false;
@@ -17,7 +17,12 @@ class Store {
17
17
  if (response.data.meta.errorCode === 200) {
18
18
  this.data = response.data.data;
19
19
  } else {
20
- Alert.alert('Thông báo', response.data.meta.errorMessage);
20
+ AlertGlobal.show({
21
+ type: 'warning',
22
+ title: 'Thông báo',
23
+ message: response.data.meta.errorMessage,
24
+ primaryText: 'Đóng',
25
+ });
21
26
  }
22
27
  } else {
23
28
  // Alert.alert("Thông báo", "Có lỗi xảy ra. Vui lòng thử lại sau")
@@ -3,7 +3,6 @@ import { CommonActions, useNavigation } from '@react-navigation/native';
3
3
  import { observer } from 'mobx-react-lite';
4
4
  import React from 'react';
5
5
  import {
6
- Alert,
7
6
  Image,
8
7
  ImageStyle,
9
8
  SafeAreaView,
@@ -12,6 +11,7 @@ import {
12
11
  View,
13
12
  } from 'react-native';
14
13
  import { IconLogout, IconProfile } from '../../assets/icons';
14
+ import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
15
15
  import appStore from '../../AppStore';
16
16
  import { MText } from '../../components/MText';
17
17
  import { ScreenNames } from '../../navigation';
@@ -31,25 +31,27 @@ export const Personal = observer(function Personal() {
31
31
  const navigation = useNavigation();
32
32
 
33
33
  const logout = async () => {
34
- Alert.alert('Thông báo', 'Bạn có chắc chắn muốn đăng xuất?', [
35
- { text: 'Bỏ qua', onPress: (value) => {} },
36
- {
37
- text: 'Đồng ý',
38
- onPress: async () => {
39
- appStore.logout();
40
- clear();
41
- reset();
42
- appStore.selectedTab = 'TAB1';
43
- Api.getInstance().changeAuth();
44
- navigation.dispatch(
45
- CommonActions.reset({
46
- index: 1,
47
- routes: [{ name: ScreenNames.Splash }],
48
- })
49
- );
50
- },
34
+ AlertGlobal.show({
35
+ type: 'confirm',
36
+ title: 'Thông báo',
37
+ message: 'Bạn có chắc chắn muốn đăng xuất?',
38
+ primaryText: 'Đồng ý',
39
+ onPrimaryPress: async () => {
40
+ appStore.logout();
41
+ clear();
42
+ reset();
43
+ appStore.selectedTab = 'TAB1';
44
+ Api.getInstance().changeAuth();
45
+ navigation.dispatch(
46
+ CommonActions.reset({
47
+ index: 1,
48
+ routes: [{ name: ScreenNames.Splash }],
49
+ })
50
+ );
51
51
  },
52
- ]);
52
+ secondaryText: 'Bỏ qua',
53
+ onSecondaryPress: (value) => {},
54
+ });
53
55
  };
54
56
  return (
55
57
  <View style={[commonStyles.fill, { backgroundColor: 'white' }]}>
@@ -1,6 +1,5 @@
1
1
  //@ts-nocheck
2
2
  import { action, observable } from 'mobx';
3
- import { Alert } from 'react-native';
4
3
  import { Api } from '../../services/api';
5
4
 
6
5
  class Store {
@@ -1,7 +1,7 @@
1
1
  //@ts-nocheck
2
2
  import { action, observable } from 'mobx';
3
- import { Alert } from 'react-native';
4
3
  import { Api } from '../../services/api';
4
+ import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
5
5
 
6
6
  class Store {
7
7
  @observable isLoading = false;
@@ -46,7 +46,12 @@ class Store {
46
46
  return { id: item.id, name: item.jobName };
47
47
  });
48
48
  } else {
49
- Alert.alert('Thông báo', response.data.meta.errorMessage);
49
+ AlertGlobal.show({
50
+ type: 'warning',
51
+ title: 'Thông báo',
52
+ message: response.data.meta.errorMessage,
53
+ primaryText: 'Đóng',
54
+ });
50
55
  }
51
56
  } else {
52
57
  // Alert.alert("Thông báo", "Không lấy được danh sách thành phố.")
@@ -67,10 +72,20 @@ class Store {
67
72
  return { id: item.provinceId, name: item.name };
68
73
  });
69
74
  } else {
70
- Alert.alert('Thông báo', response.data.meta.errorMessage);
75
+ AlertGlobal.show({
76
+ type: 'warning',
77
+ title: 'Thông báo',
78
+ message: response.data.meta.errorMessage,
79
+ primaryText: 'Đóng',
80
+ });
71
81
  }
72
82
  } else {
73
- Alert.alert('Thông báo', 'Không lấy được danh sách thành phố.');
83
+ AlertGlobal.show({
84
+ type: 'warning',
85
+ title: 'Thông báo',
86
+ message: 'Không lấy được danh sách thành phố.',
87
+ primaryText: 'Đóng',
88
+ });
74
89
  }
75
90
  } catch (error) {
76
91
  console.log(error);
@@ -86,10 +101,20 @@ class Store {
86
101
  if (response.data.meta.errorCode === 200) {
87
102
  this.listBrand = response.data.data;
88
103
  } else {
89
- Alert.alert('Thông báo', response.data.meta.errorMessage);
104
+ AlertGlobal.show({
105
+ type: 'warning',
106
+ title: 'Thông báo',
107
+ message: response.data.meta.errorMessage,
108
+ primaryText: 'Đóng',
109
+ });
90
110
  }
91
111
  } else {
92
- Alert.alert('Thông báo', 'Không lấy được danh sách hãng xe.');
112
+ AlertGlobal.show({
113
+ type: 'warning',
114
+ title: 'Thông báo',
115
+ message: 'Không lấy được danh sách hãng xe.',
116
+ primaryText: 'Đóng',
117
+ });
93
118
  }
94
119
  } catch (error) {
95
120
  console.log(error);
@@ -105,10 +130,20 @@ class Store {
105
130
  if (response.data.meta.errorCode === 200) {
106
131
  this.listYear = response.data.data;
107
132
  } else {
108
- Alert.alert('Thông báo', response.data.meta.errorMessage);
133
+ AlertGlobal.show({
134
+ type: 'warning',
135
+ title: 'Thông báo',
136
+ message: response.data.meta.errorMessage,
137
+ primaryText: 'Đóng',
138
+ });
109
139
  }
110
140
  } else {
111
- Alert.alert('Thông báo', 'Không lấy được danh sách năm sản xuất');
141
+ AlertGlobal.show({
142
+ type: 'warning',
143
+ title: 'Thông báo',
144
+ message: 'Không lấy được danh sách năm sản xuất',
145
+ primaryText: 'Đóng',
146
+ });
112
147
  }
113
148
  } catch (error) {
114
149
  console.log(error);
@@ -126,10 +161,20 @@ class Store {
126
161
  return { id: item.id, name: item.fullName };
127
162
  });
128
163
  } else {
129
- Alert.alert('Thông báo', response.data.meta.errorMessage);
164
+ AlertGlobal.show({
165
+ type: 'warning',
166
+ title: 'Thông báo',
167
+ message: response.data.meta.errorMessage,
168
+ primaryText: 'Đóng',
169
+ });
130
170
  }
131
171
  } else {
132
- Alert.alert('Thông báo', 'Không lấy được danh sách xe máy.');
172
+ AlertGlobal.show({
173
+ type: 'warning',
174
+ title: 'Thông báo',
175
+ message: 'Không lấy được danh sách xe máy.',
176
+ primaryText: 'Đóng',
177
+ });
133
178
  }
134
179
  } catch (error) {
135
180
  console.log(error);
@@ -147,11 +192,21 @@ class Store {
147
192
  if (response.data.meta.errorCode === 200) {
148
193
  if (onSuccess) onSuccess(response.data.data);
149
194
  } else {
150
- Alert.alert('Thông báo', response.data.meta.errorMessage);
195
+ AlertGlobal.show({
196
+ type: 'warning',
197
+ title: 'Thông báo',
198
+ message: response.data.meta.errorMessage,
199
+ primaryText: 'Đóng',
200
+ });
151
201
  if (onError) onError();
152
202
  }
153
203
  } else {
154
- Alert.alert('Thông báo', 'Không thể lấy thông tin đơn vay');
204
+ AlertGlobal.show({
205
+ type: 'warning',
206
+ title: 'Thông báo',
207
+ message: 'Không thể lấy thông tin đơn vay',
208
+ primaryText: 'Đóng',
209
+ });
155
210
  if (onError) onError();
156
211
  }
157
212
  } catch (error) {
@@ -171,14 +226,29 @@ class Store {
171
226
  if (response.data.meta.errorCode === 200) {
172
227
  if (onSuccess) onSuccess();
173
228
  } else {
174
- Alert.alert('Thông báo', response.data.meta.errorMessage);
229
+ AlertGlobal.show({
230
+ type: 'warning',
231
+ title: 'Thông báo',
232
+ message: response.data.meta.errorMessage,
233
+ primaryText: 'Đóng',
234
+ });
175
235
  }
176
236
  } else {
177
- Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau.');
237
+ AlertGlobal.show({
238
+ type: 'warning',
239
+ title: 'Thông báo',
240
+ message: 'Có lỗi xảy ra. Vui lòng thử lại sau.',
241
+ primaryText: 'Đóng',
242
+ });
178
243
  }
179
244
  } catch (error) {
180
245
  this.isLoading = false;
181
- Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau.');
246
+ AlertGlobal.show({
247
+ type: 'warning',
248
+ title: 'Thông báo',
249
+ message: 'Có lỗi xảy ra. Vui lòng thử lại sau.',
250
+ primaryText: 'Đóng',
251
+ });
182
252
  }
183
253
  }
184
254
  }
@@ -2,8 +2,9 @@
2
2
  import React, { useEffect, useState } from 'react';
3
3
  import { observer } from 'mobx-react-lite';
4
4
  import { useNavigation } from '@react-navigation/native';
5
- import { Alert, SafeAreaView, ScrollView, View } from 'react-native';
5
+ import { SafeAreaView, ScrollView, View } from 'react-native';
6
6
  import MHeader from '../../components/MHeader';
7
+ import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
7
8
  import { Api } from '../../services/api';
8
9
  import Loading from '../../components/Loading';
9
10
  import { MText } from '../../components/MText';
@@ -28,14 +29,29 @@ export const DigitalSchedulePayment = observer(function DigitalSchedulePayment(
28
29
  if (res.data?.meta?.errorCode === 200) {
29
30
  setData(res.data.data);
30
31
  } else {
31
- Alert.alert('Thông báo', res.data?.meta?.errorMessage);
32
+ AlertGlobal.show({
33
+ type: 'warning',
34
+ title: 'Thông báo',
35
+ message: res.data?.meta?.errorMessage,
36
+ primaryText: 'Đóng',
37
+ });
32
38
  }
33
39
  } else {
34
- Alert.alert('Thông báo', 'Lấy dữ liệu thất bại');
40
+ AlertGlobal.show({
41
+ type: 'warning',
42
+ title: 'Thông báo',
43
+ message: 'Lấy dữ liệu thất bại',
44
+ primaryText: 'Đóng',
45
+ });
35
46
  }
36
47
  } catch (error) {
37
48
  console.log(error);
38
- Alert.alert('Thông báo', 'Lấy dữ liệu thất bại');
49
+ AlertGlobal.show({
50
+ type: 'warning',
51
+ title: 'Thông báo',
52
+ message: 'Lấy dữ liệu thất bại',
53
+ primaryText: 'Đóng',
54
+ });
39
55
  } finally {
40
56
  setIsLoading(false);
41
57
  }
@@ -1,7 +1,7 @@
1
1
  //@ts-nocheck
2
2
  import { action, observable } from 'mobx';
3
- import { Alert } from 'react-native';
4
3
  import { Api } from '../../services/api';
4
+ import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
5
5
 
6
6
  class Store {
7
7
  @observable isLoading = false;
@@ -17,15 +17,23 @@ class Store {
17
17
  if (onSuccess) onSuccess(response.data.data);
18
18
  this.data = response.data.data;
19
19
  } else {
20
- Alert.alert('Thông báo', response.data.meta.errorMessage, [
21
- { text: 'Đồng ý' },
22
- ]);
20
+ AlertGlobal.show({
21
+ type: 'warning',
22
+ title: 'Thông báo',
23
+ message: response.data.meta.errorMessage,
24
+ primaryText: 'Đồng ý',
25
+ });
23
26
  if (onError) onError();
24
27
  }
25
28
  } else {
26
29
  this.isLoading = false;
27
30
  if (onError) onError();
28
- Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau!');
31
+ AlertGlobal.show({
32
+ type: 'warning',
33
+ title: 'Thông báo',
34
+ message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
35
+ primaryText: 'Đóng',
36
+ });
29
37
  }
30
38
  }
31
39
  }
@@ -2,7 +2,7 @@
2
2
  import { observable, action } from 'mobx';
3
3
  import { Api } from '../../services/api';
4
4
  import { myLog } from '../../utils/log';
5
- import { Alert } from 'react-native';
5
+ import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
6
6
 
7
7
  class Store {
8
8
  @observable photo;
@@ -24,16 +24,24 @@ class Store {
24
24
  onSuccess(response.data.data);
25
25
  }
26
26
  } else {
27
- Alert.alert('Thông báo', response.data.meta.errorMessage, [
28
- { text: 'Đồng ý' },
29
- ]);
27
+ AlertGlobal.show({
28
+ type: 'warning',
29
+ title: 'Thông báo',
30
+ message: response.data.meta.errorMessage,
31
+ primaryText: 'Đồng ý',
32
+ });
30
33
  if (onFailure) onFailure();
31
34
  }
32
35
  } else {
33
36
  this.isLoading = false;
34
37
  this.isError = false;
35
38
  if (onFailure) onFailure();
36
- Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau');
39
+ AlertGlobal.show({
40
+ type: 'warning',
41
+ title: 'Thông báo',
42
+ message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
43
+ primaryText: 'Đóng',
44
+ });
37
45
  }
38
46
  }
39
47
 
@@ -53,16 +61,24 @@ class Store {
53
61
  onSuccess(response.data.data);
54
62
  }
55
63
  } else {
56
- Alert.alert('Thông báo', response.data.meta.errorMessage, [
57
- { text: 'Đồng ý' },
58
- ]);
64
+ AlertGlobal.show({
65
+ type: 'warning',
66
+ title: 'Thông báo',
67
+ message: response.data.meta.errorMessage,
68
+ primaryText: 'Đồng ý',
69
+ });
59
70
  onError();
60
71
  }
61
72
  } else {
62
73
  this.isLoading = false;
63
74
  this.isError = false;
64
75
  onError();
65
- Alert.alert('Lỗi', 'Có lỗi xảy ra. Vui lòng thử lại');
76
+ AlertGlobal.show({
77
+ type: 'warning',
78
+ title: 'Lỗi',
79
+ message: 'Có lỗi xảy ra. Vui lòng thử lại',
80
+ primaryText: 'Đóng',
81
+ });
66
82
  }
67
83
  }
68
84
  }
@@ -2,7 +2,6 @@
2
2
  import React, { useState, Fragment } from 'react';
3
3
  import {
4
4
  ActivityIndicator,
5
- Alert,
6
5
  Dimensions,
7
6
  Image,
8
7
  ImageStyle,
@@ -6,11 +6,12 @@ import {
6
6
  } from '@react-navigation/native';
7
7
  import { observer } from 'mobx-react-lite';
8
8
  import React, { useEffect, useState } from 'react';
9
- import { Alert, SafeAreaView, TouchableOpacity, View } from 'react-native';
9
+ import { SafeAreaView, TouchableOpacity, View } from 'react-native';
10
10
  import LinearGradient from 'react-native-linear-gradient';
11
11
  import Pdf from 'react-native-pdf';
12
12
  import { CheckBox, CheckBoxActive, IconBack } from '../../assets/icons';
13
13
  import Loading from '../../components/Loading';
14
+ import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
14
15
  import { MText } from '../../components/MText';
15
16
  import { ScreenNames } from '../../navigation';
16
17
  import { color } from '../../theme';
@@ -45,24 +46,22 @@ export const ViewContract = observer(function ViewContract(props: any) {
45
46
  id: props.route.params.loan.id,
46
47
  });
47
48
  } else {
48
- Alert.alert(
49
- 'Thông báo',
50
- response.data?.meta?.errorMessage ||
49
+ AlertGlobal.show({
50
+ type: 'warning',
51
+ title: 'Thông báo',
52
+ message:
53
+ response.data?.meta?.errorMessage ||
51
54
  'Có lỗi xảy ra, vui lòng thử lại sau',
52
- [
53
- {
54
- text: 'OK',
55
- onPress: () => {
56
- navigation.dispatch(
57
- CommonActions.reset({
58
- index: 1,
59
- routes: [{ name: ScreenNames.Main }],
60
- })
61
- );
62
- },
63
- },
64
- ]
65
- );
55
+ primaryText: 'OK',
56
+ onPrimaryPress: () => {
57
+ navigation.dispatch(
58
+ CommonActions.reset({
59
+ index: 1,
60
+ routes: [{ name: ScreenNames.Main }],
61
+ })
62
+ );
63
+ },
64
+ });
66
65
  }
67
66
  } catch (error) {
68
67
  console.log(error);