react-native-timacare 3.3.55 → 3.3.57-cccd
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/AppStore.js +1 -1
- package/lib/commonjs/AppStore.js.flow +7 -2
- package/lib/commonjs/AppStore.js.map +1 -1
- package/lib/commonjs/RNTimacare.js +1 -1
- package/lib/commonjs/RNTimacare.js.flow +7 -1
- package/lib/commonjs/RNTimacare.js.map +1 -1
- package/lib/commonjs/assets/icons/index.js +1 -1
- package/lib/commonjs/assets/icons/index.js.flow +10 -0
- package/lib/commonjs/assets/icons/index.js.map +1 -1
- package/lib/commonjs/assets/icons/modal_confirm.svg +15 -0
- package/lib/commonjs/assets/icons/modal_notice.svg +74 -0
- package/lib/commonjs/assets/icons/modal_success.svg +55 -0
- package/lib/commonjs/assets/icons/modal_warning.svg +48 -0
- package/lib/commonjs/assets/icons/user_security.svg +10 -0
- package/lib/commonjs/assets/tts/Frame1000011947.png +0 -0
- package/lib/commonjs/components/AppModal.js +2 -0
- package/lib/commonjs/components/AppModal.js.flow +34 -0
- package/lib/commonjs/components/AppModal.js.map +1 -0
- package/lib/commonjs/components/ItemTimaOne.js +2 -0
- package/lib/commonjs/components/{ItemTimaOneV3.js.flow → ItemTimaOne.js.flow} +1 -1
- package/lib/commonjs/components/ItemTimaOne.js.map +1 -0
- package/lib/commonjs/components/ModalNotification/AlertGlobal.js +2 -0
- package/lib/commonjs/components/ModalNotification/AlertGlobal.js.flow +100 -0
- package/lib/commonjs/components/ModalNotification/AlertGlobal.js.map +1 -0
- package/lib/commonjs/components/ModalNotification/index.js +2 -0
- package/lib/commonjs/components/ModalNotification/index.js.flow +224 -0
- package/lib/commonjs/components/ModalNotification/index.js.map +1 -0
- package/lib/commonjs/components/ModalOptionLoan.js +1 -1
- package/lib/commonjs/components/ModalOptionLoan.js.flow +15 -7
- package/lib/commonjs/components/ModalOptionLoan.js.map +1 -1
- package/lib/commonjs/components/ModalOptionLoanDigital.js +1 -1
- package/lib/commonjs/components/ModalOptionLoanDigital.js.flow +15 -7
- package/lib/commonjs/components/ModalOptionLoanDigital.js.map +1 -1
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +7 -0
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/screens/NFC/OcrStart.js +2 -0
- package/lib/commonjs/screens/NFC/OcrStart.js.flow +171 -0
- package/lib/commonjs/screens/NFC/OcrStart.js.map +1 -0
- package/lib/commonjs/screens/NFC/ScanMRZ.js +2 -0
- package/lib/commonjs/screens/NFC/ScanMRZ.js.flow +563 -0
- package/lib/commonjs/screens/NFC/ScanMRZ.js.map +1 -0
- package/lib/commonjs/screens/SelectorStore.js +1 -1
- package/lib/commonjs/screens/SelectorStore.js.flow +7 -2
- package/lib/commonjs/screens/SelectorStore.js.map +1 -1
- package/lib/commonjs/screens/camera/CCCDCameraScreen.js +1 -1
- package/lib/commonjs/screens/camera/CCCDCameraScreen.js.flow +253 -187
- package/lib/commonjs/screens/camera/CCCDCameraScreen.js.map +1 -1
- package/lib/commonjs/screens/camera/index.js +1 -1
- package/lib/commonjs/screens/camera/index.js.flow +50 -54
- package/lib/commonjs/screens/camera/index.js.map +1 -1
- package/lib/commonjs/screens/cimb-sign/index.js +1 -1
- package/lib/commonjs/screens/cimb-sign/index.js.flow +10 -14
- package/lib/commonjs/screens/cimb-sign/index.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js.flow +75 -54
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js.flow +77 -54
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/store.js +1 -1
- package/lib/commonjs/screens/detail-loan/store.js.flow +39 -7
- package/lib/commonjs/screens/detail-loan/store.js.map +1 -1
- package/lib/commonjs/screens/detail-loan-tima/InforLoan.js +1 -1
- package/lib/commonjs/screens/detail-loan-tima/InforLoan.js.flow +20 -4
- package/lib/commonjs/screens/detail-loan-tima/InforLoan.js.map +1 -1
- package/lib/commonjs/screens/detail-loan-tima/PaymentSchedule.js +1 -1
- package/lib/commonjs/screens/detail-loan-tima/PaymentSchedule.js.flow +19 -4
- package/lib/commonjs/screens/detail-loan-tima/PaymentSchedule.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step6.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step6.js.flow +24 -29
- package/lib/commonjs/screens/digital-lending/Step6.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/store.js +1 -1
- package/lib/commonjs/screens/digital-lending/store.js.flow +113 -20
- package/lib/commonjs/screens/digital-lending/store.js.map +1 -1
- package/lib/commonjs/screens/eSign/Store.js +1 -1
- package/lib/commonjs/screens/eSign/Store.js.flow +69 -34
- package/lib/commonjs/screens/eSign/Store.js.map +1 -1
- package/lib/commonjs/screens/eSign/index.js +1 -1
- package/lib/commonjs/screens/eSign/index.js.flow +33 -34
- package/lib/commonjs/screens/eSign/index.js.map +1 -1
- package/lib/commonjs/screens/full-submit/accept_policy.js +1 -1
- package/lib/commonjs/screens/full-submit/accept_policy.js.flow +101 -85
- package/lib/commonjs/screens/full-submit/accept_policy.js.map +1 -1
- package/lib/commonjs/screens/full-submit/store.js +1 -1
- package/lib/commonjs/screens/full-submit/store.js.flow +157 -27
- package/lib/commonjs/screens/full-submit/store.js.map +1 -1
- package/lib/commonjs/screens/full-submit/update-info.js +1 -1
- package/lib/commonjs/screens/full-submit/update-info.js.flow +0 -1
- package/lib/commonjs/screens/full-submit/update-info.js.map +1 -1
- package/lib/commonjs/screens/home/DigitalTopupItem.js +1 -1
- package/lib/commonjs/screens/home/DigitalTopupItem.js.flow +15 -7
- package/lib/commonjs/screens/home/DigitalTopupItem.js.map +1 -1
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js +1 -1
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.flow +16 -7
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.map +1 -1
- package/lib/commonjs/screens/home/Store.js +1 -1
- package/lib/commonjs/screens/home/Store.js.flow +44 -23
- package/lib/commonjs/screens/home/Store.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +306 -298
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/liveness/LivenessStore.js +1 -1
- package/lib/commonjs/screens/liveness/LivenessStore.js.flow +111 -89
- package/lib/commonjs/screens/liveness/LivenessStore.js.map +1 -1
- package/lib/commonjs/screens/liveness/index.js +1 -1
- package/lib/commonjs/screens/liveness/index.js.flow +67 -68
- package/lib/commonjs/screens/liveness/index.js.map +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js.flow +52 -52
- package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.flow +20 -10
- package/lib/commonjs/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
- package/lib/commonjs/screens/loan/UpdateLoan.js +1 -1
- package/lib/commonjs/screens/loan/UpdateLoan.js.flow +56 -23
- package/lib/commonjs/screens/loan/UpdateLoan.js.map +1 -1
- package/lib/commonjs/screens/motobike/InfoLoanMotobike.js +1 -1
- package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.flow +43 -29
- package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.map +1 -1
- package/lib/commonjs/screens/motobike/PolicyF88.js +1 -1
- package/lib/commonjs/screens/motobike/PolicyF88.js.flow +15 -6
- package/lib/commonjs/screens/motobike/PolicyF88.js.map +1 -1
- package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js +1 -1
- package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.flow +13 -3
- package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.map +1 -1
- package/lib/commonjs/screens/mrz-scanner/index.js +1 -1
- package/lib/commonjs/screens/mrz-scanner/index.js.flow +56 -55
- package/lib/commonjs/screens/mrz-scanner/index.js.map +1 -1
- package/lib/commonjs/screens/mrz-scanner/store.js +1 -1
- package/lib/commonjs/screens/mrz-scanner/store.js.flow +13 -3
- package/lib/commonjs/screens/mrz-scanner/store.js.map +1 -1
- package/lib/commonjs/screens/nationalID/Store.js +1 -1
- package/lib/commonjs/screens/nationalID/Store.js.flow +50 -29
- package/lib/commonjs/screens/nationalID/Store.js.map +1 -1
- package/lib/commonjs/screens/nationalID/index.js +1 -1
- package/lib/commonjs/screens/nationalID/index.js.flow +123 -219
- package/lib/commonjs/screens/nationalID/index.js.map +1 -1
- package/lib/commonjs/screens/nationalIDBack/Store.js +1 -1
- package/lib/commonjs/screens/nationalIDBack/Store.js.flow +44 -26
- package/lib/commonjs/screens/nationalIDBack/Store.js.map +1 -1
- package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
- package/lib/commonjs/screens/nationalIDBack/index.js.flow +129 -210
- package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
- package/lib/commonjs/screens/notification/ListLoanStore.js +1 -1
- package/lib/commonjs/screens/notification/ListLoanStore.js.flow +19 -4
- package/lib/commonjs/screens/notification/ListLoanStore.js.map +1 -1
- package/lib/commonjs/screens/notification/index.js +1 -1
- package/lib/commonjs/screens/notification/index.js.flow +0 -1
- package/lib/commonjs/screens/notification/index.js.map +1 -1
- package/lib/commonjs/screens/notification/store.js +1 -1
- package/lib/commonjs/screens/notification/store.js.flow +7 -2
- package/lib/commonjs/screens/notification/store.js.map +1 -1
- package/lib/commonjs/screens/personal/index.js +1 -1
- package/lib/commonjs/screens/personal/index.js.flow +21 -19
- package/lib/commonjs/screens/personal/index.js.map +1 -1
- package/lib/commonjs/screens/qualify/Store.js.flow +0 -1
- package/lib/commonjs/screens/qualify/Store.js.map +1 -1
- package/lib/commonjs/screens/quick-submit/store.js +1 -1
- package/lib/commonjs/screens/quick-submit/store.js.flow +85 -15
- package/lib/commonjs/screens/quick-submit/store.js.map +1 -1
- package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
- package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.flow +20 -4
- package/lib/commonjs/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
- package/lib/commonjs/screens/schedule-payment/store.js +1 -1
- package/lib/commonjs/screens/schedule-payment/store.js.flow +13 -5
- package/lib/commonjs/screens/schedule-payment/store.js.map +1 -1
- package/lib/commonjs/screens/selfie/SelfieStore.js +1 -1
- package/lib/commonjs/screens/selfie/SelfieStore.js.flow +25 -9
- package/lib/commonjs/screens/selfie/SelfieStore.js.map +1 -1
- package/lib/commonjs/screens/selfie/index.js +1 -1
- package/lib/commonjs/screens/selfie/index.js.flow +0 -1
- package/lib/commonjs/screens/selfie/index.js.map +1 -1
- package/lib/commonjs/screens/sign-tima/ViewContract.js +1 -1
- package/lib/commonjs/screens/sign-tima/ViewContract.js.flow +17 -18
- package/lib/commonjs/screens/sign-tima/ViewContract.js.map +1 -1
- package/lib/commonjs/screens/sign-tima/store.js +1 -1
- package/lib/commonjs/screens/sign-tima/store.js.flow +37 -7
- package/lib/commonjs/screens/sign-tima/store.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.flow +36 -10
- package/lib/commonjs/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.flow +321 -609
- package/lib/commonjs/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.flow +21 -4
- package/lib/commonjs/screens/toan-trinh-so/RegisterBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.flow +50 -54
- package/lib/commonjs/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.flow +31 -25
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.flow +88 -82
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.flow +25 -5
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.flow +19 -4
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.flow +19 -4
- package/lib/commonjs/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.flow +42 -25
- package/lib/commonjs/screens/toan-trinh-so/TTSOTP.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +63 -56
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.flow +63 -55
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.flow +50 -43
- package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.flow +275 -341
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +19 -4
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.flow +19 -4
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.flow +19 -4
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/store.js.flow +82 -37
- package/lib/commonjs/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/commonjs/screens/uploadVideo/index.js +1 -1
- package/lib/commonjs/screens/uploadVideo/index.js.flow +26 -21
- package/lib/commonjs/screens/uploadVideo/index.js.map +1 -1
- package/lib/commonjs/screens/uploadVideo/videoStore.js +1 -1
- package/lib/commonjs/screens/uploadVideo/videoStore.js.flow +19 -4
- package/lib/commonjs/screens/uploadVideo/videoStore.js.map +1 -1
- package/lib/commonjs/screens/v3/AssetInformation.js +1 -1
- package/lib/commonjs/screens/v3/AssetInformation.js.flow +35 -16
- package/lib/commonjs/screens/v3/AssetInformation.js.map +1 -1
- package/lib/commonjs/screens/v3/LoanBuyCar.js +1 -1
- package/lib/commonjs/screens/v3/LoanBuyCar.js.flow +35 -16
- package/lib/commonjs/screens/v3/LoanBuyCar.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +23 -26
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/commonjs/utils/cameraCrop.js +2 -0
- package/lib/commonjs/utils/cameraCrop.js.flow +96 -0
- package/lib/commonjs/utils/cameraCrop.js.map +1 -0
- package/lib/module/AppStore.js +1 -1
- package/lib/module/AppStore.js.map +1 -1
- package/lib/module/RNTimacare.js +1 -1
- package/lib/module/RNTimacare.js.map +1 -1
- package/lib/module/assets/icons/index.js +1 -1
- package/lib/module/assets/icons/index.js.map +1 -1
- package/lib/module/assets/icons/modal_confirm.svg +15 -0
- package/lib/module/assets/icons/modal_notice.svg +74 -0
- package/lib/module/assets/icons/modal_success.svg +55 -0
- package/lib/module/assets/icons/modal_warning.svg +48 -0
- package/lib/module/assets/icons/user_security.svg +10 -0
- package/lib/module/assets/tts/Frame1000011947.png +0 -0
- package/lib/module/components/AppModal.js +2 -0
- package/lib/module/components/AppModal.js.map +1 -0
- package/lib/module/components/ItemTimaOne.js +2 -0
- package/lib/module/components/ItemTimaOne.js.map +1 -0
- package/lib/module/components/ModalNotification/AlertGlobal.js +2 -0
- package/lib/module/components/ModalNotification/AlertGlobal.js.map +1 -0
- package/lib/module/components/ModalNotification/index.js +2 -0
- package/lib/module/components/ModalNotification/index.js.map +1 -0
- package/lib/module/components/ModalOptionLoan.js +1 -1
- package/lib/module/components/ModalOptionLoan.js.map +1 -1
- package/lib/module/components/ModalOptionLoanDigital.js +1 -1
- package/lib/module/components/ModalOptionLoanDigital.js.map +1 -1
- package/lib/module/navigation/primary-navigator.js +1 -1
- package/lib/module/navigation/primary-navigator.js.map +1 -1
- package/lib/module/screens/NFC/OcrStart.js +2 -0
- package/lib/module/screens/NFC/OcrStart.js.map +1 -0
- package/lib/module/screens/NFC/ScanMRZ.js +2 -0
- package/lib/module/screens/NFC/ScanMRZ.js.map +1 -0
- package/lib/module/screens/SelectorStore.js +1 -1
- package/lib/module/screens/SelectorStore.js.map +1 -1
- package/lib/module/screens/camera/CCCDCameraScreen.js +1 -1
- package/lib/module/screens/camera/CCCDCameraScreen.js.map +1 -1
- package/lib/module/screens/camera/index.js +1 -1
- package/lib/module/screens/camera/index.js.map +1 -1
- package/lib/module/screens/cimb-sign/index.js +1 -1
- package/lib/module/screens/cimb-sign/index.js.map +1 -1
- package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
- package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
- package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
- package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
- package/lib/module/screens/detail-loan/store.js +1 -1
- package/lib/module/screens/detail-loan/store.js.map +1 -1
- package/lib/module/screens/detail-loan-tima/InforLoan.js +1 -1
- package/lib/module/screens/detail-loan-tima/InforLoan.js.map +1 -1
- package/lib/module/screens/detail-loan-tima/PaymentSchedule.js +1 -1
- package/lib/module/screens/detail-loan-tima/PaymentSchedule.js.map +1 -1
- package/lib/module/screens/digital-lending/Step6.js +1 -1
- package/lib/module/screens/digital-lending/Step6.js.map +1 -1
- package/lib/module/screens/digital-lending/store.js +1 -1
- package/lib/module/screens/digital-lending/store.js.map +1 -1
- package/lib/module/screens/eSign/Store.js +1 -1
- package/lib/module/screens/eSign/Store.js.map +1 -1
- package/lib/module/screens/eSign/index.js +1 -1
- package/lib/module/screens/eSign/index.js.map +1 -1
- package/lib/module/screens/full-submit/accept_policy.js +1 -1
- package/lib/module/screens/full-submit/accept_policy.js.map +1 -1
- package/lib/module/screens/full-submit/store.js +1 -1
- package/lib/module/screens/full-submit/store.js.map +1 -1
- package/lib/module/screens/full-submit/update-info.js +1 -1
- package/lib/module/screens/full-submit/update-info.js.map +1 -1
- package/lib/module/screens/home/DigitalTopupItem.js +1 -1
- package/lib/module/screens/home/DigitalTopupItem.js.map +1 -1
- package/lib/module/screens/home/ItemMotoBikeLoan.js +1 -1
- package/lib/module/screens/home/ItemMotoBikeLoan.js.map +1 -1
- package/lib/module/screens/home/Store.js +1 -1
- package/lib/module/screens/home/Store.js.map +1 -1
- package/lib/module/screens/home/index.js +1 -1
- package/lib/module/screens/home/index.js.map +1 -1
- package/lib/module/screens/liveness/LivenessStore.js +1 -1
- package/lib/module/screens/liveness/LivenessStore.js.map +1 -1
- package/lib/module/screens/liveness/index.js +1 -1
- package/lib/module/screens/liveness/index.js.map +1 -1
- package/lib/module/screens/liveness-v2/index.js +1 -1
- package/lib/module/screens/liveness-v2/index.js.map +1 -1
- package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js +1 -1
- package/lib/module/screens/loan/PreviewSchedulePaymentTopup.js.map +1 -1
- package/lib/module/screens/loan/UpdateLoan.js +1 -1
- package/lib/module/screens/loan/UpdateLoan.js.map +1 -1
- package/lib/module/screens/motobike/InfoLoanMotobike.js +1 -1
- package/lib/module/screens/motobike/InfoLoanMotobike.js.map +1 -1
- package/lib/module/screens/motobike/PolicyF88.js +1 -1
- package/lib/module/screens/motobike/PolicyF88.js.map +1 -1
- package/lib/module/screens/motobike/ReviewLoanMotobike.js +1 -1
- package/lib/module/screens/motobike/ReviewLoanMotobike.js.map +1 -1
- package/lib/module/screens/mrz-scanner/index.js +1 -1
- package/lib/module/screens/mrz-scanner/index.js.map +1 -1
- package/lib/module/screens/mrz-scanner/store.js +1 -1
- package/lib/module/screens/mrz-scanner/store.js.map +1 -1
- package/lib/module/screens/nationalID/Store.js +1 -1
- package/lib/module/screens/nationalID/Store.js.map +1 -1
- package/lib/module/screens/nationalID/index.js +1 -1
- package/lib/module/screens/nationalID/index.js.map +1 -1
- package/lib/module/screens/nationalIDBack/Store.js +1 -1
- package/lib/module/screens/nationalIDBack/Store.js.map +1 -1
- package/lib/module/screens/nationalIDBack/index.js +1 -1
- package/lib/module/screens/nationalIDBack/index.js.map +1 -1
- package/lib/module/screens/notification/ListLoanStore.js +1 -1
- package/lib/module/screens/notification/ListLoanStore.js.map +1 -1
- package/lib/module/screens/notification/index.js +1 -1
- package/lib/module/screens/notification/index.js.map +1 -1
- package/lib/module/screens/notification/store.js +1 -1
- package/lib/module/screens/notification/store.js.map +1 -1
- package/lib/module/screens/personal/index.js +1 -1
- package/lib/module/screens/personal/index.js.map +1 -1
- package/lib/module/screens/qualify/Store.js.map +1 -1
- package/lib/module/screens/quick-submit/store.js +1 -1
- package/lib/module/screens/quick-submit/store.js.map +1 -1
- package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js +1 -1
- package/lib/module/screens/schedule-payment/DigitalSchedulePayment.js.map +1 -1
- package/lib/module/screens/schedule-payment/store.js +1 -1
- package/lib/module/screens/schedule-payment/store.js.map +1 -1
- package/lib/module/screens/selfie/SelfieStore.js +1 -1
- package/lib/module/screens/selfie/SelfieStore.js.map +1 -1
- package/lib/module/screens/selfie/index.js +1 -1
- package/lib/module/screens/selfie/index.js.map +1 -1
- package/lib/module/screens/sign-tima/ViewContract.js +1 -1
- package/lib/module/screens/sign-tima/ViewContract.js.map +1 -1
- package/lib/module/screens/sign-tima/store.js +1 -1
- package/lib/module/screens/sign-tima/store.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/LoanInterestRate.js +1 -1
- package/lib/module/screens/toan-trinh-so/LoanInterestRate.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/OCR.js +1 -1
- package/lib/module/screens/toan-trinh-so/OCR.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/RegisterCamera.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformation.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewInformationOther.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/ReviewLoan.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSNationalIDFront.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSOTP.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSOTP.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSelfie.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js +1 -1
- package/lib/module/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js +1 -1
- package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistration.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistration.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
- package/lib/module/screens/toan-trinh-so/store.js +1 -1
- package/lib/module/screens/toan-trinh-so/store.js.map +1 -1
- package/lib/module/screens/uploadVideo/index.js +1 -1
- package/lib/module/screens/uploadVideo/index.js.map +1 -1
- package/lib/module/screens/uploadVideo/videoStore.js +1 -1
- package/lib/module/screens/uploadVideo/videoStore.js.map +1 -1
- package/lib/module/screens/v3/AssetInformation.js +1 -1
- package/lib/module/screens/v3/AssetInformation.js.map +1 -1
- package/lib/module/screens/v3/LoanBuyCar.js +1 -1
- package/lib/module/screens/v3/LoanBuyCar.js.map +1 -1
- package/lib/module/services/api/api.js +1 -1
- package/lib/module/services/api/api.js.map +1 -1
- package/lib/module/utils/cameraCrop.js +2 -0
- package/lib/module/utils/cameraCrop.js.map +1 -0
- package/lib/typescript/AppStore.d.ts.map +1 -1
- package/lib/typescript/RNTimacare.d.ts.map +1 -1
- package/lib/typescript/assets/icons/index.d.ts +6 -1
- package/lib/typescript/assets/icons/index.d.ts.map +1 -1
- package/lib/typescript/components/AppModal.d.ts +18 -0
- package/lib/typescript/components/AppModal.d.ts.map +1 -0
- package/lib/typescript/components/ItemTimaOne.d.ts +7 -0
- package/lib/typescript/components/ItemTimaOne.d.ts.map +1 -0
- package/lib/typescript/components/ModalNotification/AlertGlobal.d.ts +30 -0
- package/lib/typescript/components/ModalNotification/AlertGlobal.d.ts.map +1 -0
- package/lib/typescript/components/ModalNotification/index.d.ts +35 -0
- package/lib/typescript/components/ModalNotification/index.d.ts.map +1 -0
- package/lib/typescript/components/ModalOptionLoan.d.ts.map +1 -1
- package/lib/typescript/components/ModalOptionLoanDigital.d.ts.map +1 -1
- package/lib/typescript/navigation/primary-navigator.d.ts +3 -0
- package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
- package/lib/typescript/screens/NFC/OcrStart.d.ts +2 -0
- package/lib/typescript/screens/NFC/OcrStart.d.ts.map +1 -0
- package/lib/typescript/screens/NFC/ScanMRZ.d.ts +15 -0
- package/lib/typescript/screens/NFC/ScanMRZ.d.ts.map +1 -0
- package/lib/typescript/screens/SelectorStore.d.ts.map +1 -1
- package/lib/typescript/screens/camera/CCCDCameraScreen.d.ts.map +1 -1
- package/lib/typescript/screens/camera/index.d.ts.map +1 -1
- package/lib/typescript/screens/cimb-sign/index.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/ShowQrCode.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/store.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan-tima/InforLoan.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan-tima/PaymentSchedule.d.ts.map +1 -1
- package/lib/typescript/screens/digital-lending/Step6.d.ts.map +1 -1
- package/lib/typescript/screens/digital-lending/store.d.ts.map +1 -1
- package/lib/typescript/screens/eSign/Store.d.ts.map +1 -1
- package/lib/typescript/screens/eSign/index.d.ts.map +1 -1
- package/lib/typescript/screens/full-submit/accept_policy.d.ts.map +1 -1
- package/lib/typescript/screens/full-submit/store.d.ts.map +1 -1
- package/lib/typescript/screens/full-submit/update-info.d.ts.map +1 -1
- package/lib/typescript/screens/home/DigitalTopupItem.d.ts.map +1 -1
- package/lib/typescript/screens/home/ItemMotoBikeLoan.d.ts.map +1 -1
- package/lib/typescript/screens/home/Store.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/liveness/LivenessStore.d.ts.map +1 -1
- package/lib/typescript/screens/liveness/index.d.ts.map +1 -1
- package/lib/typescript/screens/loan/PreviewSchedulePaymentTopup.d.ts.map +1 -1
- package/lib/typescript/screens/loan/UpdateLoan.d.ts.map +1 -1
- package/lib/typescript/screens/motobike/InfoLoanMotobike.d.ts.map +1 -1
- package/lib/typescript/screens/motobike/PolicyF88.d.ts.map +1 -1
- package/lib/typescript/screens/motobike/ReviewLoanMotobike.d.ts.map +1 -1
- package/lib/typescript/screens/mrz-scanner/index.d.ts.map +1 -1
- package/lib/typescript/screens/mrz-scanner/store.d.ts.map +1 -1
- package/lib/typescript/screens/nationalID/Store.d.ts.map +1 -1
- package/lib/typescript/screens/nationalID/index.d.ts.map +1 -1
- package/lib/typescript/screens/nationalIDBack/Store.d.ts.map +1 -1
- package/lib/typescript/screens/nationalIDBack/index.d.ts.map +1 -1
- package/lib/typescript/screens/notification/ListLoanStore.d.ts.map +1 -1
- package/lib/typescript/screens/notification/index.d.ts.map +1 -1
- package/lib/typescript/screens/notification/store.d.ts.map +1 -1
- package/lib/typescript/screens/personal/index.d.ts.map +1 -1
- package/lib/typescript/screens/qualify/Store.d.ts.map +1 -1
- package/lib/typescript/screens/quick-submit/store.d.ts.map +1 -1
- package/lib/typescript/screens/schedule-payment/DigitalSchedulePayment.d.ts.map +1 -1
- package/lib/typescript/screens/schedule-payment/store.d.ts.map +1 -1
- package/lib/typescript/screens/selfie/SelfieStore.d.ts.map +1 -1
- package/lib/typescript/screens/selfie/index.d.ts.map +1 -1
- package/lib/typescript/screens/sign-tima/ViewContract.d.ts.map +1 -1
- package/lib/typescript/screens/sign-tima/store.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/LoanInterestRate.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/OCR.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/RegisterBack.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/RegisterCamera.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformation.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewInformationOther.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/ReviewLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSNationalIDBack.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSNationalIDFront.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSOTP.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TTSSignLoan.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/TopupLoanInfo.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleCamera.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/store.d.ts.map +1 -1
- package/lib/typescript/screens/uploadVideo/index.d.ts.map +1 -1
- package/lib/typescript/screens/uploadVideo/videoStore.d.ts.map +1 -1
- package/lib/typescript/screens/v3/AssetInformation.d.ts.map +1 -1
- package/lib/typescript/screens/v3/LoanBuyCar.d.ts.map +1 -1
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/lib/typescript/utils/cameraCrop.d.ts +43 -0
- package/lib/typescript/utils/cameraCrop.d.ts.map +1 -0
- package/package.json +2 -1
- package/src/AppStore.tsx +7 -2
- package/src/RNTimacare.tsx +7 -1
- package/src/assets/icons/index.tsx +10 -0
- package/src/assets/icons/modal_confirm.svg +15 -0
- package/src/assets/icons/modal_notice.svg +74 -0
- package/src/assets/icons/modal_success.svg +55 -0
- package/src/assets/icons/modal_warning.svg +48 -0
- package/src/assets/icons/user_security.svg +10 -0
- package/src/assets/tts/Frame1000011947.png +0 -0
- package/src/components/AppModal.tsx +34 -0
- package/src/components/{ItemTimaOneV3.tsx → ItemTimaOne.tsx} +1 -1
- package/src/components/ModalNotification/AlertGlobal.tsx +100 -0
- package/src/components/ModalNotification/index.tsx +224 -0
- package/src/components/ModalOptionLoan.tsx +15 -7
- package/src/components/ModalOptionLoanDigital.tsx +15 -7
- package/src/navigation/primary-navigator.tsx +7 -0
- package/src/screens/NFC/OcrStart.tsx +171 -0
- package/src/screens/NFC/ScanMRZ.tsx +563 -0
- package/src/screens/SelectorStore.tsx +7 -2
- package/src/screens/camera/CCCDCameraScreen.tsx +253 -187
- package/src/screens/camera/index.tsx +50 -54
- package/src/screens/cimb-sign/index.tsx +10 -14
- package/src/screens/detail-loan/PaymentInfo.tsx +75 -54
- package/src/screens/detail-loan/ShowQrCode.tsx +77 -54
- package/src/screens/detail-loan/store.tsx +39 -7
- package/src/screens/detail-loan-tima/InforLoan.tsx +20 -4
- package/src/screens/detail-loan-tima/PaymentSchedule.tsx +19 -4
- package/src/screens/digital-lending/Step6.tsx +24 -29
- package/src/screens/digital-lending/store.tsx +113 -20
- package/src/screens/eSign/Store.tsx +69 -34
- package/src/screens/eSign/index.tsx +33 -34
- package/src/screens/full-submit/accept_policy.tsx +101 -85
- package/src/screens/full-submit/store.tsx +157 -27
- package/src/screens/full-submit/update-info.tsx +0 -1
- package/src/screens/home/DigitalTopupItem.tsx +15 -7
- package/src/screens/home/ItemMotoBikeLoan.tsx +16 -7
- package/src/screens/home/Store.tsx +44 -23
- package/src/screens/home/index.tsx +306 -298
- package/src/screens/liveness/LivenessStore.tsx +111 -89
- package/src/screens/liveness/index.tsx +67 -68
- package/src/screens/liveness-v2/index.tsx +52 -52
- package/src/screens/loan/PreviewSchedulePaymentTopup.tsx +20 -10
- package/src/screens/loan/UpdateLoan.tsx +56 -23
- package/src/screens/motobike/InfoLoanMotobike.tsx +43 -29
- package/src/screens/motobike/PolicyF88.tsx +15 -6
- package/src/screens/motobike/ReviewLoanMotobike.tsx +13 -3
- package/src/screens/mrz-scanner/index.tsx +56 -55
- package/src/screens/mrz-scanner/store.ts +13 -3
- package/src/screens/nationalID/Store.tsx +50 -29
- package/src/screens/nationalID/index.tsx +123 -219
- package/src/screens/nationalIDBack/Store.tsx +44 -26
- package/src/screens/nationalIDBack/index.tsx +129 -210
- package/src/screens/notification/ListLoanStore.tsx +19 -4
- package/src/screens/notification/index.tsx +0 -1
- package/src/screens/notification/store.tsx +7 -2
- package/src/screens/personal/index.tsx +21 -19
- package/src/screens/qualify/Store.tsx +0 -1
- package/src/screens/quick-submit/store.tsx +85 -15
- package/src/screens/schedule-payment/DigitalSchedulePayment.tsx +20 -4
- package/src/screens/schedule-payment/store.tsx +13 -5
- package/src/screens/selfie/SelfieStore.tsx +25 -9
- package/src/screens/selfie/index.tsx +0 -1
- package/src/screens/sign-tima/ViewContract.tsx +17 -18
- package/src/screens/sign-tima/store.tsx +37 -7
- package/src/screens/toan-trinh-so/LoanInterestRate.tsx +36 -10
- package/src/screens/toan-trinh-so/OCR.tsx +321 -609
- package/src/screens/toan-trinh-so/RegisterBack.tsx +21 -4
- package/src/screens/toan-trinh-so/RegisterCamera.tsx +50 -54
- package/src/screens/toan-trinh-so/ReviewInformation.tsx +31 -25
- package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +88 -82
- package/src/screens/toan-trinh-so/ReviewLoan.tsx +25 -5
- package/src/screens/toan-trinh-so/TTSNationalIDBack.tsx +19 -4
- package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +19 -4
- package/src/screens/toan-trinh-so/TTSOTP.tsx +42 -25
- package/src/screens/toan-trinh-so/TTSSelfie.tsx +63 -56
- package/src/screens/toan-trinh-so/TTSSignLoan.tsx +63 -55
- package/src/screens/toan-trinh-so/TopupLoanInfo.tsx +50 -43
- package/src/screens/toan-trinh-so/VehicleCamera.tsx +275 -341
- package/src/screens/toan-trinh-so/VehicleRegistration.tsx +19 -4
- package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +19 -4
- package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +19 -4
- package/src/screens/toan-trinh-so/store.ts +82 -37
- package/src/screens/uploadVideo/index.tsx +26 -21
- package/src/screens/uploadVideo/videoStore.tsx +19 -4
- package/src/screens/v3/AssetInformation.tsx +35 -16
- package/src/screens/v3/LoanBuyCar.tsx +35 -16
- package/src/services/api/api.ts +23 -26
- package/src/utils/cameraCrop.ts +96 -0
- package/lib/commonjs/components/ItemTimaOneV2.js +0 -2
- package/lib/commonjs/components/ItemTimaOneV2.js.flow +0 -617
- package/lib/commonjs/components/ItemTimaOneV2.js.map +0 -1
- package/lib/commonjs/components/ItemTimaOneV3.js +0 -2
- package/lib/commonjs/components/ItemTimaOneV3.js.map +0 -1
- package/lib/module/components/ItemTimaOneV2.js +0 -2
- package/lib/module/components/ItemTimaOneV2.js.map +0 -1
- package/lib/module/components/ItemTimaOneV3.js +0 -2
- package/lib/module/components/ItemTimaOneV3.js.map +0 -1
- package/lib/typescript/components/ItemTimaOneV2.d.ts +0 -7
- package/lib/typescript/components/ItemTimaOneV2.d.ts.map +0 -1
- package/lib/typescript/components/ItemTimaOneV3.d.ts +0 -7
- package/lib/typescript/components/ItemTimaOneV3.d.ts.map +0 -1
- package/src/components/ItemTimaOneV2.tsx +0 -617
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import React, { useEffect, useState } from 'react';
|
|
3
3
|
import {
|
|
4
4
|
ActivityIndicator,
|
|
5
|
-
Alert,
|
|
6
5
|
Dimensions,
|
|
7
6
|
Image,
|
|
8
7
|
ImageBackground,
|
|
@@ -12,22 +11,16 @@ import {
|
|
|
12
11
|
RefreshControl,
|
|
13
12
|
SafeAreaView,
|
|
14
13
|
ScrollView,
|
|
15
|
-
StatusBar,
|
|
16
14
|
StyleSheet,
|
|
17
15
|
TouchableOpacity,
|
|
18
16
|
View,
|
|
19
|
-
ViewStyle,
|
|
20
17
|
} from 'react-native';
|
|
21
|
-
import {
|
|
22
|
-
useNavigation,
|
|
23
|
-
StackActions,
|
|
24
|
-
CommonActions,
|
|
25
|
-
} from '@react-navigation/native';
|
|
18
|
+
import { useNavigation, StackActions } from '@react-navigation/native';
|
|
26
19
|
import { observer, Observer } from 'mobx-react-lite';
|
|
27
20
|
import { commonStyles } from '../CommonStyles';
|
|
28
21
|
import { MText } from '../../components/MText';
|
|
29
22
|
import { color } from '../../theme';
|
|
30
|
-
import {
|
|
23
|
+
import { formatDDMMYYY, formatMoney } from '../../utils';
|
|
31
24
|
import homeStore from './Store';
|
|
32
25
|
import { ScreenNames } from '../../navigation';
|
|
33
26
|
import {
|
|
@@ -38,40 +31,25 @@ import {
|
|
|
38
31
|
CheckBoxActive,
|
|
39
32
|
CIMBSmall,
|
|
40
33
|
Close2Icon,
|
|
41
|
-
CloseIcon,
|
|
42
34
|
Contract,
|
|
43
35
|
ContractActive,
|
|
44
36
|
ContractTimeIcon,
|
|
45
|
-
IconBackWhite,
|
|
46
37
|
IconEviden,
|
|
47
|
-
IconNavClose,
|
|
48
|
-
IconNotify,
|
|
49
38
|
IconSchedule,
|
|
50
|
-
IconSign,
|
|
51
39
|
IconSign2,
|
|
52
40
|
IconVideo,
|
|
53
41
|
Info,
|
|
54
42
|
LogoSmall,
|
|
55
43
|
NotFoundSvg,
|
|
56
|
-
OcrSvg,
|
|
57
|
-
SignDisable,
|
|
58
|
-
TimaNormal,
|
|
59
|
-
TopupSuccessSvg,
|
|
60
44
|
TopupSvg,
|
|
61
45
|
UpdateIcon,
|
|
62
46
|
} from '../../assets/icons';
|
|
63
47
|
import Geolocation from 'react-native-geolocation-service';
|
|
64
|
-
|
|
65
|
-
import {
|
|
66
|
-
getUniqueId,
|
|
67
|
-
getManufacturer,
|
|
68
|
-
getDeviceId,
|
|
69
|
-
} from 'react-native-device-info';
|
|
48
|
+
|
|
70
49
|
import FullSubmitStore from '../full-submit/store';
|
|
71
50
|
import QuickSubmitStore from '../quick-submit/store';
|
|
72
51
|
import LinearGradient from 'react-native-linear-gradient';
|
|
73
|
-
|
|
74
|
-
import notificationStore from '../notification/store';
|
|
52
|
+
|
|
75
53
|
import {
|
|
76
54
|
openSettings,
|
|
77
55
|
PERMISSIONS,
|
|
@@ -88,25 +66,8 @@ import SkeletonLoanList, {
|
|
|
88
66
|
} from '../../components/SkeletonLoanCard';
|
|
89
67
|
import MButton from '../../components/MButton';
|
|
90
68
|
import ttsStore from '../toan-trinh-so/store';
|
|
91
|
-
import {
|
|
92
|
-
|
|
93
|
-
IconEdit,
|
|
94
|
-
IconEditSuccess,
|
|
95
|
-
IconEkyc,
|
|
96
|
-
IconEkycSuccess,
|
|
97
|
-
IconEkycDisable,
|
|
98
|
-
IconSignDisable,
|
|
99
|
-
IconTima16,
|
|
100
|
-
IconExpand,
|
|
101
|
-
IconExpandUp,
|
|
102
|
-
IconSignSuccess,
|
|
103
|
-
IconMoney2,
|
|
104
|
-
IconEditDisable,
|
|
105
|
-
IconTick,
|
|
106
|
-
IconOcr,
|
|
107
|
-
} from '../../assets/svgs';
|
|
108
|
-
import { o } from 'ramda';
|
|
109
|
-
import ItemTimaOneV3 from '../../components/ItemTimaOneV3';
|
|
69
|
+
import { IconMoney2 } from '../../assets/svgs';
|
|
70
|
+
import ItemTimaOne from '../../components/ItemTimaOne';
|
|
110
71
|
import ModalOptionLoan from '../../components/ModalOptionLoan';
|
|
111
72
|
import AlertLoan from '../../components/AlertLoan';
|
|
112
73
|
import DigitalTopupItem from './DigitalTopupItem';
|
|
@@ -114,21 +75,12 @@ import ModalOptionLoanDigital from '../../components/ModalOptionLoanDigital';
|
|
|
114
75
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
115
76
|
import ItemMotoBikeLoan from './ItemMotoBikeLoan';
|
|
116
77
|
import BoxGuidline from './BoxGuidline';
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
require('../../assets/img/banner1.png'),
|
|
120
|
-
require('../../assets/img/banner2.png'),
|
|
121
|
-
];
|
|
122
|
-
|
|
123
|
-
const $action: ViewStyle = {
|
|
124
|
-
flexDirection: 'column',
|
|
125
|
-
alignItems: 'center',
|
|
126
|
-
};
|
|
78
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
79
|
+
import MHeader from '../../components/MHeader';
|
|
127
80
|
|
|
128
81
|
// Gradient cam thương hiệu, dùng lặp lại ở nhiều nút trong màn hình
|
|
129
82
|
const GRADIENT_ORANGE = ['#FF8E4F', '#EF592E'];
|
|
130
83
|
|
|
131
|
-
let _unsubscribe;
|
|
132
84
|
// Dữ liệu tham chiếu tĩnh (ngân hàng, nghề nghiệp, tỉnh...) chỉ cần prefetch 1 lần/phiên
|
|
133
85
|
let _didPrefetchRefData = false;
|
|
134
86
|
|
|
@@ -161,7 +113,6 @@ export const Home = observer(function Home() {
|
|
|
161
113
|
// Hành động điều hướng chờ chạy SAU khi modal đóng hẳn (onModalHide)
|
|
162
114
|
const pendingNavRef = React.useRef<(() => void) | null>(null);
|
|
163
115
|
const [listLoan, setListLoan] = useState<any[]>([]);
|
|
164
|
-
const [checkEKYC, setCheckEKYC] = useState<any>({});
|
|
165
116
|
const [isLoading, setIsLoading] = useState(false);
|
|
166
117
|
const [loanCimb, setLoanCimb] = useState(null);
|
|
167
118
|
const [loan, setLoan] = useState(null);
|
|
@@ -297,7 +248,6 @@ export const Home = observer(function Home() {
|
|
|
297
248
|
} else {
|
|
298
249
|
}
|
|
299
250
|
} else {
|
|
300
|
-
Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau');
|
|
301
251
|
}
|
|
302
252
|
} catch (error) {
|
|
303
253
|
console.log(error);
|
|
@@ -364,73 +314,93 @@ export const Home = observer(function Home() {
|
|
|
364
314
|
console.log(
|
|
365
315
|
'This feature is not available (on this device / in this context)'
|
|
366
316
|
);
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
'
|
|
370
|
-
|
|
317
|
+
AlertGlobal.show({
|
|
318
|
+
type: 'warning',
|
|
319
|
+
title: 'Thông báo',
|
|
320
|
+
message:
|
|
321
|
+
'Máy ảnh trên thiết bị không tương thích.\nVui lòng kiểm tra lại thiết bị!',
|
|
322
|
+
primaryText: 'Đóng',
|
|
323
|
+
});
|
|
324
|
+
break;
|
|
325
|
+
case RESULTS.DENIED:
|
|
326
|
+
console.log(
|
|
327
|
+
'The permission has not been requested / is denied but requestable'
|
|
371
328
|
);
|
|
329
|
+
AlertGlobal.show({
|
|
330
|
+
type: 'warning',
|
|
331
|
+
title: 'Thông báo',
|
|
332
|
+
message:
|
|
333
|
+
'Máy ảnh trên thiết bị không tương thích.\nVui lòng kiểm tra lại thiết bị!',
|
|
334
|
+
primaryText: 'Đóng',
|
|
335
|
+
});
|
|
372
336
|
break;
|
|
373
337
|
case RESULTS.DENIED:
|
|
374
338
|
console.log(
|
|
375
339
|
'The permission has not been requested / is denied but requestable'
|
|
376
340
|
);
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
'
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
}
|
|
389
|
-
},
|
|
390
|
-
},
|
|
391
|
-
]
|
|
341
|
+
AlertGlobal.show({
|
|
342
|
+
type: 'warning',
|
|
343
|
+
title: 'Thông báo',
|
|
344
|
+
message:
|
|
345
|
+
'Bạn đã từ chối quyền vị trí. Vui lòng cấp quyền vị trí để tiếp tục!',
|
|
346
|
+
primaryText: 'Đóng',
|
|
347
|
+
});
|
|
348
|
+
break;
|
|
349
|
+
case RESULTS.DENIED:
|
|
350
|
+
console.log(
|
|
351
|
+
'The permission has not been requested / is denied but requestable'
|
|
392
352
|
);
|
|
353
|
+
AlertGlobal.show({
|
|
354
|
+
type: 'warning',
|
|
355
|
+
title: 'Thông báo',
|
|
356
|
+
message:
|
|
357
|
+
'Bạn đã từ chối quyền vị trí. Vui lòng cấp quyền vị trí để tiếp tục!',
|
|
358
|
+
primaryText: 'Đồng ý',
|
|
359
|
+
onPrimaryPress: () => {
|
|
360
|
+
if (Platform.OS === 'ios') {
|
|
361
|
+
openSettings();
|
|
362
|
+
} else {
|
|
363
|
+
requestPermissions();
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
});
|
|
393
367
|
break;
|
|
394
368
|
case RESULTS.LIMITED:
|
|
395
369
|
console.log('The permission is limited: some actions are possible');
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
'
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
]
|
|
411
|
-
);
|
|
370
|
+
AlertGlobal.show({
|
|
371
|
+
type: 'warning',
|
|
372
|
+
title: 'Thông báo',
|
|
373
|
+
message:
|
|
374
|
+
'Bạn đã từ chối quyền vị trí. Vui lòng cấp quyền vị trí để tiếp tục!',
|
|
375
|
+
primaryText: 'Đồng ý',
|
|
376
|
+
onPrimaryPress: () => {
|
|
377
|
+
if (Platform.OS === 'ios') {
|
|
378
|
+
openSettings();
|
|
379
|
+
} else {
|
|
380
|
+
requestPermissions();
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
});
|
|
412
384
|
break;
|
|
413
385
|
case RESULTS.GRANTED:
|
|
414
386
|
console.log('The permission is granted');
|
|
415
387
|
break;
|
|
416
388
|
case RESULTS.BLOCKED:
|
|
417
389
|
console.log('The permission is denied and not requestable anymore');
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
'
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
]
|
|
433
|
-
);
|
|
390
|
+
AlertGlobal.show({
|
|
391
|
+
type: 'warning',
|
|
392
|
+
title: 'Thông báo',
|
|
393
|
+
message:
|
|
394
|
+
'Bạn đã từ chối quyền vị trí. Vui lòng cấp quyền vị trí để tiếp tục!',
|
|
395
|
+
primaryText: 'Đồng ý',
|
|
396
|
+
onPrimaryPress: () => {
|
|
397
|
+
if (Platform.OS === 'ios') {
|
|
398
|
+
openSettings();
|
|
399
|
+
} else {
|
|
400
|
+
requestPermissions();
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
});
|
|
434
404
|
break;
|
|
435
405
|
}
|
|
436
406
|
});
|
|
@@ -467,14 +437,22 @@ export const Home = observer(function Home() {
|
|
|
467
437
|
setCheckTCCIMB(false);
|
|
468
438
|
closeModalThen(() => onRefresh());
|
|
469
439
|
} else {
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
440
|
+
AlertGlobal.show({
|
|
441
|
+
type: 'warning',
|
|
442
|
+
title: 'Thông báo',
|
|
443
|
+
message:
|
|
444
|
+
response?.data?.meta?.errorMessage ||
|
|
445
|
+
'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
446
|
+
primaryText: 'Đóng',
|
|
447
|
+
});
|
|
475
448
|
}
|
|
476
449
|
} catch (error) {
|
|
477
|
-
|
|
450
|
+
AlertGlobal.show({
|
|
451
|
+
type: 'warning',
|
|
452
|
+
title: 'Thông báo',
|
|
453
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
454
|
+
primaryText: 'Đóng',
|
|
455
|
+
});
|
|
478
456
|
} finally {
|
|
479
457
|
setIsConfirmingTCCIMB(false);
|
|
480
458
|
}
|
|
@@ -500,12 +478,31 @@ export const Home = observer(function Home() {
|
|
|
500
478
|
if (response.data?.meta?.errorCode === 200) {
|
|
501
479
|
closeModalThen(() => onRefresh());
|
|
502
480
|
} else {
|
|
503
|
-
|
|
481
|
+
AlertGlobal.show({
|
|
482
|
+
type: 'warning',
|
|
483
|
+
title: 'Thông báo',
|
|
484
|
+
message:
|
|
485
|
+
response?.data?.meta?.errorMessage ||
|
|
486
|
+
'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
487
|
+
primaryText: 'Đóng',
|
|
488
|
+
});
|
|
504
489
|
}
|
|
505
490
|
} else {
|
|
506
|
-
|
|
491
|
+
AlertGlobal.show({
|
|
492
|
+
type: 'warning',
|
|
493
|
+
title: 'Thông báo',
|
|
494
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
495
|
+
primaryText: 'Đóng',
|
|
496
|
+
});
|
|
507
497
|
}
|
|
508
498
|
} catch (error) {
|
|
499
|
+
AlertGlobal.show({
|
|
500
|
+
type: 'warning',
|
|
501
|
+
title: 'Thông báo',
|
|
502
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
503
|
+
primaryText: 'Đóng',
|
|
504
|
+
});
|
|
505
|
+
} finally {
|
|
509
506
|
setIsLoading(false);
|
|
510
507
|
}
|
|
511
508
|
};
|
|
@@ -522,10 +519,22 @@ export const Home = observer(function Home() {
|
|
|
522
519
|
if (response.data?.meta?.errorCode === 200) {
|
|
523
520
|
closeModalThen(() => onRefresh());
|
|
524
521
|
} else {
|
|
525
|
-
|
|
522
|
+
AlertGlobal.show({
|
|
523
|
+
type: 'warning',
|
|
524
|
+
title: 'Thông báo',
|
|
525
|
+
message:
|
|
526
|
+
response?.data?.meta?.errorMessage ||
|
|
527
|
+
'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
528
|
+
primaryText: 'Đóng',
|
|
529
|
+
});
|
|
526
530
|
}
|
|
527
531
|
} else {
|
|
528
|
-
|
|
532
|
+
AlertGlobal.show({
|
|
533
|
+
type: 'warning',
|
|
534
|
+
title: 'Thông báo',
|
|
535
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
536
|
+
primaryText: 'Đóng',
|
|
537
|
+
});
|
|
529
538
|
}
|
|
530
539
|
} catch (error) {
|
|
531
540
|
setIsLoading(false);
|
|
@@ -536,63 +545,7 @@ export const Home = observer(function Home() {
|
|
|
536
545
|
<View
|
|
537
546
|
style={[commonStyles.fill, { zIndex: 1, backgroundColor: '#FFFFFF' }]}
|
|
538
547
|
>
|
|
539
|
-
<
|
|
540
|
-
<View style={{ marginTop: insets.top + 16 }}>
|
|
541
|
-
<View
|
|
542
|
-
style={{
|
|
543
|
-
flexDirection: 'row',
|
|
544
|
-
paddingHorizontal: 16,
|
|
545
|
-
alignItems: 'center',
|
|
546
|
-
justifyContent: 'space-between',
|
|
547
|
-
paddingBottom: 8,
|
|
548
|
-
}}
|
|
549
|
-
>
|
|
550
|
-
<MText
|
|
551
|
-
style={{
|
|
552
|
-
fontWeight: 'bold',
|
|
553
|
-
color: 'white',
|
|
554
|
-
fontSize: 14,
|
|
555
|
-
}}
|
|
556
|
-
>
|
|
557
|
-
Vay Online 24/7
|
|
558
|
-
</MText>
|
|
559
|
-
<View
|
|
560
|
-
style={{
|
|
561
|
-
borderWidth: 1,
|
|
562
|
-
borderColor: 'white',
|
|
563
|
-
flexDirection: 'row',
|
|
564
|
-
borderRadius: 16,
|
|
565
|
-
height: 30,
|
|
566
|
-
alignItems: 'center',
|
|
567
|
-
}}
|
|
568
|
-
>
|
|
569
|
-
<TouchableOpacity
|
|
570
|
-
style={{
|
|
571
|
-
paddingHorizontal: 10,
|
|
572
|
-
}}
|
|
573
|
-
onPress={() => {
|
|
574
|
-
Linking.openURL(`tel:1900633688`);
|
|
575
|
-
}}
|
|
576
|
-
>
|
|
577
|
-
<Call />
|
|
578
|
-
</TouchableOpacity>
|
|
579
|
-
<View
|
|
580
|
-
style={{ width: 1, height: 30, backgroundColor: 'white' }}
|
|
581
|
-
/>
|
|
582
|
-
<TouchableOpacity
|
|
583
|
-
style={{
|
|
584
|
-
paddingHorizontal: 10,
|
|
585
|
-
}}
|
|
586
|
-
onPress={() => {
|
|
587
|
-
navigation.navigate('MyBank.Main');
|
|
588
|
-
}}
|
|
589
|
-
>
|
|
590
|
-
<CloseIcon />
|
|
591
|
-
</TouchableOpacity>
|
|
592
|
-
</View>
|
|
593
|
-
</View>
|
|
594
|
-
</View>
|
|
595
|
-
</LinearGradient>
|
|
548
|
+
<MHeader title="Vay Online 24/7" />
|
|
596
549
|
<ScrollView
|
|
597
550
|
refreshControl={
|
|
598
551
|
<RefreshControl
|
|
@@ -631,7 +584,7 @@ export const Home = observer(function Home() {
|
|
|
631
584
|
item?.typeLoan === 6 ||
|
|
632
585
|
item?.typeLoan === 7 ? (
|
|
633
586
|
<View>
|
|
634
|
-
<
|
|
587
|
+
<ItemTimaOne item={item} navigation={navigation} />
|
|
635
588
|
</View>
|
|
636
589
|
) : item?.typeLoan === 4 && !item?.isPipelineCIMB ? (
|
|
637
590
|
<DigitalTopupItem
|
|
@@ -674,9 +627,7 @@ export const Home = observer(function Home() {
|
|
|
674
627
|
</MText>
|
|
675
628
|
</View>
|
|
676
629
|
</View>
|
|
677
|
-
<View
|
|
678
|
-
style={styles.divider}
|
|
679
|
-
/>
|
|
630
|
+
<View style={styles.divider} />
|
|
680
631
|
<View
|
|
681
632
|
style={{
|
|
682
633
|
flexDirection: 'row',
|
|
@@ -695,9 +646,7 @@ export const Home = observer(function Home() {
|
|
|
695
646
|
{item?.loanStatus}
|
|
696
647
|
</MText>
|
|
697
648
|
</View>
|
|
698
|
-
<View
|
|
699
|
-
style={styles.dividerThin}
|
|
700
|
-
/>
|
|
649
|
+
<View style={styles.dividerThin} />
|
|
701
650
|
<View style={{ flexDirection: 'row' }}>
|
|
702
651
|
{item?.loanStatus === null ||
|
|
703
652
|
item?.loanStatus === '' ? (
|
|
@@ -718,7 +667,10 @@ export const Home = observer(function Home() {
|
|
|
718
667
|
>
|
|
719
668
|
<AddInfo />
|
|
720
669
|
<MText
|
|
721
|
-
style={[
|
|
670
|
+
style={[
|
|
671
|
+
commonStyles.textNormal,
|
|
672
|
+
styles.actionLabelCenter,
|
|
673
|
+
]}
|
|
722
674
|
>
|
|
723
675
|
Hoàn thiện{'\n'}cung cấp thông tin
|
|
724
676
|
</MText>
|
|
@@ -755,7 +707,10 @@ export const Home = observer(function Home() {
|
|
|
755
707
|
>
|
|
756
708
|
<AddInfo />
|
|
757
709
|
<MText
|
|
758
|
-
style={[
|
|
710
|
+
style={[
|
|
711
|
+
commonStyles.textNormal,
|
|
712
|
+
styles.actionLabelCenter,
|
|
713
|
+
]}
|
|
759
714
|
>
|
|
760
715
|
Hoàn thiện{'\n'}cung cấp thông tin
|
|
761
716
|
</MText>
|
|
@@ -764,7 +719,10 @@ export const Home = observer(function Home() {
|
|
|
764
719
|
<View style={{ alignItems: 'center' }}>
|
|
765
720
|
<AddInfoDisable />
|
|
766
721
|
<MText
|
|
767
|
-
style={[
|
|
722
|
+
style={[
|
|
723
|
+
commonStyles.textNormal,
|
|
724
|
+
styles.actionLabelCenter,
|
|
725
|
+
]}
|
|
768
726
|
>
|
|
769
727
|
Hoàn thiện{'\n'}cung cấp thông tin
|
|
770
728
|
</MText>
|
|
@@ -788,17 +746,23 @@ export const Home = observer(function Home() {
|
|
|
788
746
|
)
|
|
789
747
|
);
|
|
790
748
|
} else {
|
|
791
|
-
|
|
792
|
-
'Thông báo',
|
|
793
|
-
|
|
794
|
-
|
|
749
|
+
AlertGlobal.show({
|
|
750
|
+
title: 'Thông báo',
|
|
751
|
+
message:
|
|
752
|
+
'Bạn chưa thể ký hợp đồng bây giờ?',
|
|
753
|
+
type: 'warning',
|
|
754
|
+
primaryText: 'Đóng',
|
|
755
|
+
});
|
|
795
756
|
}
|
|
796
757
|
});
|
|
797
758
|
}}
|
|
798
759
|
>
|
|
799
760
|
<IconSign2 />
|
|
800
761
|
<MText
|
|
801
|
-
style={[
|
|
762
|
+
style={[
|
|
763
|
+
commonStyles.textNormal,
|
|
764
|
+
styles.label12,
|
|
765
|
+
]}
|
|
802
766
|
>
|
|
803
767
|
Ký hợp đồng
|
|
804
768
|
</MText>
|
|
@@ -822,7 +786,10 @@ export const Home = observer(function Home() {
|
|
|
822
786
|
>
|
|
823
787
|
<ContractTimeIcon />
|
|
824
788
|
<MText
|
|
825
|
-
style={[
|
|
789
|
+
style={[
|
|
790
|
+
commonStyles.textNormal,
|
|
791
|
+
styles.label12Center,
|
|
792
|
+
]}
|
|
826
793
|
>
|
|
827
794
|
Hợp đồng{'\n'}dịch vụ
|
|
828
795
|
</MText>
|
|
@@ -846,7 +813,10 @@ export const Home = observer(function Home() {
|
|
|
846
813
|
>
|
|
847
814
|
<IconEviden />
|
|
848
815
|
<MText
|
|
849
|
-
style={[
|
|
816
|
+
style={[
|
|
817
|
+
commonStyles.textNormal,
|
|
818
|
+
styles.label12Center,
|
|
819
|
+
]}
|
|
850
820
|
>
|
|
851
821
|
Mục đích {'\n'}sử dụng
|
|
852
822
|
</MText>
|
|
@@ -870,7 +840,10 @@ export const Home = observer(function Home() {
|
|
|
870
840
|
>
|
|
871
841
|
<IconSchedule />
|
|
872
842
|
<MText
|
|
873
|
-
style={[
|
|
843
|
+
style={[
|
|
844
|
+
commonStyles.textNormal,
|
|
845
|
+
styles.label12,
|
|
846
|
+
]}
|
|
874
847
|
>
|
|
875
848
|
Lịch dự kiến
|
|
876
849
|
</MText>
|
|
@@ -881,9 +854,7 @@ export const Home = observer(function Home() {
|
|
|
881
854
|
{item.messageErrorCIMB !== '' &&
|
|
882
855
|
item?.messageErrorCIMB &&
|
|
883
856
|
item?.isCimbApproveFull === null ? (
|
|
884
|
-
<View
|
|
885
|
-
style={styles.infoBanner}
|
|
886
|
-
>
|
|
857
|
+
<View style={styles.infoBanner}>
|
|
887
858
|
<View
|
|
888
859
|
style={{
|
|
889
860
|
flexDirection: 'row',
|
|
@@ -939,9 +910,7 @@ export const Home = observer(function Home() {
|
|
|
939
910
|
</View>
|
|
940
911
|
</View>
|
|
941
912
|
) : (
|
|
942
|
-
<View
|
|
943
|
-
style={styles.infoBannerRow}
|
|
944
|
-
>
|
|
913
|
+
<View style={styles.infoBannerRow}>
|
|
945
914
|
<Info />
|
|
946
915
|
<MText
|
|
947
916
|
style={[
|
|
@@ -989,9 +958,7 @@ export const Home = observer(function Home() {
|
|
|
989
958
|
</MText>
|
|
990
959
|
</View>
|
|
991
960
|
</View>
|
|
992
|
-
<View
|
|
993
|
-
style={styles.divider}
|
|
994
|
-
/>
|
|
961
|
+
<View style={styles.divider} />
|
|
995
962
|
<View
|
|
996
963
|
style={{
|
|
997
964
|
flexDirection: 'row',
|
|
@@ -1049,9 +1016,7 @@ export const Home = observer(function Home() {
|
|
|
1049
1016
|
</TouchableOpacity>
|
|
1050
1017
|
) : (
|
|
1051
1018
|
<View>
|
|
1052
|
-
<View
|
|
1053
|
-
style={styles.dividerThin}
|
|
1054
|
-
/>
|
|
1019
|
+
<View style={styles.dividerThin} />
|
|
1055
1020
|
<View style={{ flexDirection: 'row' }}>
|
|
1056
1021
|
{item?.loanStatus === null ||
|
|
1057
1022
|
item?.loanStatus === '' ? (
|
|
@@ -1074,7 +1039,10 @@ export const Home = observer(function Home() {
|
|
|
1074
1039
|
>
|
|
1075
1040
|
<AddInfo />
|
|
1076
1041
|
<MText
|
|
1077
|
-
style={[
|
|
1042
|
+
style={[
|
|
1043
|
+
commonStyles.textNormal,
|
|
1044
|
+
styles.actionLabelCenter,
|
|
1045
|
+
]}
|
|
1078
1046
|
>
|
|
1079
1047
|
Hoàn thiện{'\n'}cung cấp thông tin
|
|
1080
1048
|
</MText>
|
|
@@ -1113,7 +1081,10 @@ export const Home = observer(function Home() {
|
|
|
1113
1081
|
>
|
|
1114
1082
|
<AddInfo />
|
|
1115
1083
|
<MText
|
|
1116
|
-
style={[
|
|
1084
|
+
style={[
|
|
1085
|
+
commonStyles.textNormal,
|
|
1086
|
+
styles.actionLabelCenter,
|
|
1087
|
+
]}
|
|
1117
1088
|
>
|
|
1118
1089
|
Hoàn thiện{'\n'}cung cấp thông
|
|
1119
1090
|
tin
|
|
@@ -1127,7 +1098,10 @@ export const Home = observer(function Home() {
|
|
|
1127
1098
|
>
|
|
1128
1099
|
<AddInfoDisable />
|
|
1129
1100
|
<MText
|
|
1130
|
-
style={[
|
|
1101
|
+
style={[
|
|
1102
|
+
commonStyles.textNormal,
|
|
1103
|
+
styles.actionLabelCenter,
|
|
1104
|
+
]}
|
|
1131
1105
|
>
|
|
1132
1106
|
Hoàn thiện{'\n'}cung cấp thông
|
|
1133
1107
|
tin
|
|
@@ -1152,17 +1126,23 @@ export const Home = observer(function Home() {
|
|
|
1152
1126
|
)
|
|
1153
1127
|
);
|
|
1154
1128
|
} else {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
'
|
|
1158
|
-
|
|
1129
|
+
AlertGlobal.show({
|
|
1130
|
+
type: 'warning',
|
|
1131
|
+
title: 'Thông báo',
|
|
1132
|
+
message:
|
|
1133
|
+
'Bạn chưa thể ký hợp đồng bây giờ?',
|
|
1134
|
+
primaryText: 'Đóng',
|
|
1135
|
+
});
|
|
1159
1136
|
}
|
|
1160
1137
|
});
|
|
1161
1138
|
}}
|
|
1162
1139
|
>
|
|
1163
1140
|
<IconSign2 />
|
|
1164
1141
|
<MText
|
|
1165
|
-
style={[
|
|
1142
|
+
style={[
|
|
1143
|
+
commonStyles.textNormal,
|
|
1144
|
+
styles.actionLabel,
|
|
1145
|
+
]}
|
|
1166
1146
|
>
|
|
1167
1147
|
Ký hợp đồng
|
|
1168
1148
|
</MText>
|
|
@@ -1186,7 +1166,10 @@ export const Home = observer(function Home() {
|
|
|
1186
1166
|
>
|
|
1187
1167
|
<ContractTimeIcon />
|
|
1188
1168
|
<MText
|
|
1189
|
-
style={[
|
|
1169
|
+
style={[
|
|
1170
|
+
commonStyles.textNormal,
|
|
1171
|
+
styles.actionLabelCenter,
|
|
1172
|
+
]}
|
|
1190
1173
|
>
|
|
1191
1174
|
Hợp đồng{'\n'}dịch vụ
|
|
1192
1175
|
</MText>
|
|
@@ -1210,7 +1193,10 @@ export const Home = observer(function Home() {
|
|
|
1210
1193
|
>
|
|
1211
1194
|
<IconEviden />
|
|
1212
1195
|
<MText
|
|
1213
|
-
style={[
|
|
1196
|
+
style={[
|
|
1197
|
+
commonStyles.textNormal,
|
|
1198
|
+
styles.actionLabelCenter,
|
|
1199
|
+
]}
|
|
1214
1200
|
>
|
|
1215
1201
|
Mục đích {'\n'}sử dụng
|
|
1216
1202
|
</MText>
|
|
@@ -1232,7 +1218,10 @@ export const Home = observer(function Home() {
|
|
|
1232
1218
|
>
|
|
1233
1219
|
<IconSchedule />
|
|
1234
1220
|
<MText
|
|
1235
|
-
style={[
|
|
1221
|
+
style={[
|
|
1222
|
+
commonStyles.textNormal,
|
|
1223
|
+
styles.actionLabel,
|
|
1224
|
+
]}
|
|
1236
1225
|
>
|
|
1237
1226
|
Lịch dự kiến
|
|
1238
1227
|
</MText>
|
|
@@ -1243,9 +1232,7 @@ export const Home = observer(function Home() {
|
|
|
1243
1232
|
{item.messageErrorCIMB !== '' &&
|
|
1244
1233
|
item?.messageErrorCIMB &&
|
|
1245
1234
|
item?.isCimbApproveFull === null ? (
|
|
1246
|
-
<View
|
|
1247
|
-
style={styles.infoBanner}
|
|
1248
|
-
>
|
|
1235
|
+
<View style={styles.infoBanner}>
|
|
1249
1236
|
<View
|
|
1250
1237
|
style={{
|
|
1251
1238
|
flexDirection: 'row',
|
|
@@ -1307,9 +1294,7 @@ export const Home = observer(function Home() {
|
|
|
1307
1294
|
</View>
|
|
1308
1295
|
</View>
|
|
1309
1296
|
) : (
|
|
1310
|
-
<View
|
|
1311
|
-
style={styles.infoBannerRow}
|
|
1312
|
-
>
|
|
1297
|
+
<View style={styles.infoBannerRow}>
|
|
1313
1298
|
<Info />
|
|
1314
1299
|
<MText
|
|
1315
1300
|
style={[
|
|
@@ -1360,9 +1345,7 @@ export const Home = observer(function Home() {
|
|
|
1360
1345
|
</MText>
|
|
1361
1346
|
</View>
|
|
1362
1347
|
</View>
|
|
1363
|
-
<View
|
|
1364
|
-
style={styles.divider}
|
|
1365
|
-
/>
|
|
1348
|
+
<View style={styles.divider} />
|
|
1366
1349
|
<View
|
|
1367
1350
|
style={{
|
|
1368
1351
|
flexDirection: 'row',
|
|
@@ -1381,9 +1364,7 @@ export const Home = observer(function Home() {
|
|
|
1381
1364
|
{item?.loanStatus}
|
|
1382
1365
|
</MText>
|
|
1383
1366
|
</View>
|
|
1384
|
-
<View
|
|
1385
|
-
style={styles.dividerThin}
|
|
1386
|
-
/>
|
|
1367
|
+
<View style={styles.dividerThin} />
|
|
1387
1368
|
<View style={{ flexDirection: 'row' }}>
|
|
1388
1369
|
{item?.isUpdateLoan ||
|
|
1389
1370
|
item?.isUpdateInformation ? (
|
|
@@ -1415,7 +1396,10 @@ export const Home = observer(function Home() {
|
|
|
1415
1396
|
>
|
|
1416
1397
|
<AddInfo />
|
|
1417
1398
|
<MText
|
|
1418
|
-
style={[
|
|
1399
|
+
style={[
|
|
1400
|
+
commonStyles.textNormal,
|
|
1401
|
+
styles.actionLabelCenter,
|
|
1402
|
+
]}
|
|
1419
1403
|
>
|
|
1420
1404
|
Hoàn thiện{'\n'}cung cấp thông tin
|
|
1421
1405
|
</MText>
|
|
@@ -1424,7 +1408,10 @@ export const Home = observer(function Home() {
|
|
|
1424
1408
|
<View style={{ alignItems: 'center' }}>
|
|
1425
1409
|
<AddInfoDisable />
|
|
1426
1410
|
<MText
|
|
1427
|
-
style={[
|
|
1411
|
+
style={[
|
|
1412
|
+
commonStyles.textNormal,
|
|
1413
|
+
styles.actionLabelCenter,
|
|
1414
|
+
]}
|
|
1428
1415
|
>
|
|
1429
1416
|
Hoàn thiện{'\n'}cung cấp thông tin
|
|
1430
1417
|
</MText>
|
|
@@ -1445,17 +1432,23 @@ export const Home = observer(function Home() {
|
|
|
1445
1432
|
)
|
|
1446
1433
|
);
|
|
1447
1434
|
} else {
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
'
|
|
1451
|
-
|
|
1435
|
+
AlertGlobal.show({
|
|
1436
|
+
type: 'warning',
|
|
1437
|
+
title: 'Thông báo',
|
|
1438
|
+
message:
|
|
1439
|
+
'Bạn chưa thể ký hợp đồng bây giờ?',
|
|
1440
|
+
primaryText: 'Đóng',
|
|
1441
|
+
});
|
|
1452
1442
|
}
|
|
1453
1443
|
});
|
|
1454
1444
|
}}
|
|
1455
1445
|
>
|
|
1456
1446
|
<IconSign2 />
|
|
1457
1447
|
<MText
|
|
1458
|
-
style={[
|
|
1448
|
+
style={[
|
|
1449
|
+
commonStyles.textNormal,
|
|
1450
|
+
styles.actionLabel,
|
|
1451
|
+
]}
|
|
1459
1452
|
>
|
|
1460
1453
|
Ký hợp đồng
|
|
1461
1454
|
</MText>
|
|
@@ -1479,7 +1472,10 @@ export const Home = observer(function Home() {
|
|
|
1479
1472
|
>
|
|
1480
1473
|
<ContractTimeIcon />
|
|
1481
1474
|
<MText
|
|
1482
|
-
style={[
|
|
1475
|
+
style={[
|
|
1476
|
+
commonStyles.textNormal,
|
|
1477
|
+
styles.actionLabelCenter,
|
|
1478
|
+
]}
|
|
1483
1479
|
>
|
|
1484
1480
|
Hợp đồng{'\n'}dịch vụ
|
|
1485
1481
|
</MText>
|
|
@@ -1503,7 +1499,10 @@ export const Home = observer(function Home() {
|
|
|
1503
1499
|
>
|
|
1504
1500
|
<IconEviden />
|
|
1505
1501
|
<MText
|
|
1506
|
-
style={[
|
|
1502
|
+
style={[
|
|
1503
|
+
commonStyles.textNormal,
|
|
1504
|
+
styles.actionLabelCenter,
|
|
1505
|
+
]}
|
|
1507
1506
|
>
|
|
1508
1507
|
Mục đích {'\n'}sử dụng
|
|
1509
1508
|
</MText>
|
|
@@ -1525,7 +1524,10 @@ export const Home = observer(function Home() {
|
|
|
1525
1524
|
>
|
|
1526
1525
|
<IconSchedule />
|
|
1527
1526
|
<MText
|
|
1528
|
-
style={[
|
|
1527
|
+
style={[
|
|
1528
|
+
commonStyles.textNormal,
|
|
1529
|
+
styles.actionLabel,
|
|
1530
|
+
]}
|
|
1529
1531
|
>
|
|
1530
1532
|
Lịch dự kiến
|
|
1531
1533
|
</MText>
|
|
@@ -1533,9 +1535,7 @@ export const Home = observer(function Home() {
|
|
|
1533
1535
|
)}
|
|
1534
1536
|
</View>
|
|
1535
1537
|
|
|
1536
|
-
<View
|
|
1537
|
-
style={styles.infoBannerRow}
|
|
1538
|
-
>
|
|
1538
|
+
<View style={styles.infoBannerRow}>
|
|
1539
1539
|
<Info />
|
|
1540
1540
|
<MText
|
|
1541
1541
|
style={[
|
|
@@ -1732,9 +1732,7 @@ export const Home = observer(function Home() {
|
|
|
1732
1732
|
{item?.loanStatus ?? 'Chưa xác định'}
|
|
1733
1733
|
</MText>
|
|
1734
1734
|
</View>
|
|
1735
|
-
<View
|
|
1736
|
-
style={styles.dividerThin}
|
|
1737
|
-
/>
|
|
1735
|
+
<View style={styles.dividerThin} />
|
|
1738
1736
|
<View
|
|
1739
1737
|
style={{
|
|
1740
1738
|
flexDirection: 'row',
|
|
@@ -1760,7 +1758,10 @@ export const Home = observer(function Home() {
|
|
|
1760
1758
|
>
|
|
1761
1759
|
<AddInfo />
|
|
1762
1760
|
<MText
|
|
1763
|
-
style={[
|
|
1761
|
+
style={[
|
|
1762
|
+
commonStyles.textNormal,
|
|
1763
|
+
styles.label12,
|
|
1764
|
+
]}
|
|
1764
1765
|
>
|
|
1765
1766
|
EKYC
|
|
1766
1767
|
</MText>
|
|
@@ -1785,7 +1786,10 @@ export const Home = observer(function Home() {
|
|
|
1785
1786
|
>
|
|
1786
1787
|
<TopupSvg />
|
|
1787
1788
|
<MText
|
|
1788
|
-
style={[
|
|
1789
|
+
style={[
|
|
1790
|
+
commonStyles.textNormal,
|
|
1791
|
+
styles.label12,
|
|
1792
|
+
]}
|
|
1789
1793
|
>
|
|
1790
1794
|
Cập nhật{'\n'}thông tin
|
|
1791
1795
|
</MText>
|
|
@@ -1814,7 +1818,10 @@ export const Home = observer(function Home() {
|
|
|
1814
1818
|
>
|
|
1815
1819
|
<IconVideo />
|
|
1816
1820
|
<MText
|
|
1817
|
-
style={[
|
|
1821
|
+
style={[
|
|
1822
|
+
commonStyles.textNormal,
|
|
1823
|
+
styles.label12,
|
|
1824
|
+
]}
|
|
1818
1825
|
>
|
|
1819
1826
|
Quay video
|
|
1820
1827
|
</MText>
|
|
@@ -1836,7 +1843,10 @@ export const Home = observer(function Home() {
|
|
|
1836
1843
|
>
|
|
1837
1844
|
<IconSign2 />
|
|
1838
1845
|
<MText
|
|
1839
|
-
style={[
|
|
1846
|
+
style={[
|
|
1847
|
+
commonStyles.textNormal,
|
|
1848
|
+
styles.label12,
|
|
1849
|
+
]}
|
|
1840
1850
|
>
|
|
1841
1851
|
Ký HĐ
|
|
1842
1852
|
</MText>
|
|
@@ -1858,7 +1868,10 @@ export const Home = observer(function Home() {
|
|
|
1858
1868
|
>
|
|
1859
1869
|
<IconSign2 />
|
|
1860
1870
|
<MText
|
|
1861
|
-
style={[
|
|
1871
|
+
style={[
|
|
1872
|
+
commonStyles.textNormal,
|
|
1873
|
+
styles.label12Center,
|
|
1874
|
+
]}
|
|
1862
1875
|
>
|
|
1863
1876
|
Ký HĐ
|
|
1864
1877
|
</MText>
|
|
@@ -1882,16 +1895,17 @@ export const Home = observer(function Home() {
|
|
|
1882
1895
|
>
|
|
1883
1896
|
<IconSchedule />
|
|
1884
1897
|
<MText
|
|
1885
|
-
style={[
|
|
1898
|
+
style={[
|
|
1899
|
+
commonStyles.textNormal,
|
|
1900
|
+
styles.label12Center,
|
|
1901
|
+
]}
|
|
1886
1902
|
>
|
|
1887
1903
|
Lịch thanh toán{'\n'}dự kiến
|
|
1888
1904
|
</MText>
|
|
1889
1905
|
</TouchableOpacity>
|
|
1890
1906
|
)}
|
|
1891
1907
|
</View>
|
|
1892
|
-
<View
|
|
1893
|
-
style={styles.infoBannerRow}
|
|
1894
|
-
>
|
|
1908
|
+
<View style={styles.infoBannerRow}>
|
|
1895
1909
|
<Info />
|
|
1896
1910
|
<MText
|
|
1897
1911
|
style={[
|
|
@@ -2320,49 +2334,45 @@ export const Home = observer(function Home() {
|
|
|
2320
2334
|
marginTop: 8,
|
|
2321
2335
|
}}
|
|
2322
2336
|
onPress={async () => {
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2337
|
+
AlertGlobal.show({
|
|
2338
|
+
type: 'confirm',
|
|
2339
|
+
title: 'Vui lòng xác nhận lại',
|
|
2340
|
+
message: `Bạn có chắc chắn muốn huỷ khoản vay từ CIMB với số tiền ${formatMoney(
|
|
2326
2341
|
loanCimb?.loanAmount
|
|
2327
2342
|
)}`,
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
{
|
|
2362
|
-
text: 'Không',
|
|
2363
|
-
},
|
|
2364
|
-
]
|
|
2365
|
-
);
|
|
2343
|
+
primaryText: 'Có',
|
|
2344
|
+
secondaryText: 'Không',
|
|
2345
|
+
onPrimaryPress: async () => {
|
|
2346
|
+
const response =
|
|
2347
|
+
await Api.getInstance().customerCancel({
|
|
2348
|
+
LoanBriefId: loanCimb?.id,
|
|
2349
|
+
});
|
|
2350
|
+
if (response.kind === 'ok') {
|
|
2351
|
+
if (response.data.meta.errorCode === 200) {
|
|
2352
|
+
closeModal();
|
|
2353
|
+
const key = `SHOW_${loanCimb.id}`;
|
|
2354
|
+
save(key, true);
|
|
2355
|
+
AlertGlobal.show({
|
|
2356
|
+
type: 'success',
|
|
2357
|
+
title: 'Thông báo',
|
|
2358
|
+
message:
|
|
2359
|
+
'Bạn đã hủy khoản vay thành công. Vui lòng chọn khoản vay khác hoặc quay lại trang chủ.',
|
|
2360
|
+
primaryText: 'Đồng ý',
|
|
2361
|
+
onPrimaryPress() {
|
|
2362
|
+
navigation.pop();
|
|
2363
|
+
},
|
|
2364
|
+
});
|
|
2365
|
+
}
|
|
2366
|
+
} else {
|
|
2367
|
+
AlertGlobal.show({
|
|
2368
|
+
type: 'warning',
|
|
2369
|
+
title: 'Thông báo',
|
|
2370
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
2371
|
+
primaryText: 'Đóng',
|
|
2372
|
+
});
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
});
|
|
2366
2376
|
}}
|
|
2367
2377
|
>
|
|
2368
2378
|
<MText style={{ color: '#BDBDBD' }}>Huỷ</MText>
|
|
@@ -2683,9 +2693,7 @@ export const Home = observer(function Home() {
|
|
|
2683
2693
|
onPress={() => confirmTCCIMB()}
|
|
2684
2694
|
>
|
|
2685
2695
|
<LinearGradient
|
|
2686
|
-
colors={
|
|
2687
|
-
checkTCCIMB ? GRADIENT_ORANGE : ['#E0E0E0', '#E0E0E0']
|
|
2688
|
-
}
|
|
2696
|
+
colors={checkTCCIMB ? GRADIENT_ORANGE : ['#E0E0E0', '#E0E0E0']}
|
|
2689
2697
|
style={{
|
|
2690
2698
|
height: 40,
|
|
2691
2699
|
alignItems: 'center',
|