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,8 +2,9 @@
|
|
|
2
2
|
import { useNavigation } from '@react-navigation/native';
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
|
-
import {
|
|
5
|
+
import { SafeAreaView, TouchableOpacity, View } from 'react-native';
|
|
6
6
|
import WebView from 'react-native-webview';
|
|
7
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
7
8
|
import { IconBack } from '../../assets/icons';
|
|
8
9
|
import { MText } from '../../components/MText';
|
|
9
10
|
import { color } from '../../theme';
|
|
@@ -25,19 +26,14 @@ export const CIMBSign = observer(function CIMBSign(props: any) {
|
|
|
25
26
|
) {
|
|
26
27
|
navigation.goBack();
|
|
27
28
|
} else {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
'
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
{
|
|
37
|
-
text: 'Huỷ',
|
|
38
|
-
},
|
|
39
|
-
]
|
|
40
|
-
);
|
|
29
|
+
AlertGlobal.show({
|
|
30
|
+
type: 'confirm',
|
|
31
|
+
title: 'Cảnh báo',
|
|
32
|
+
message: 'Bạn có chắc chắn muốn rời khỏi màn hình ký hợp đồng?',
|
|
33
|
+
primaryText: 'Đồng ý',
|
|
34
|
+
onPrimaryPress: () => navigation.goBack(),
|
|
35
|
+
secondaryText: 'Huỷ',
|
|
36
|
+
});
|
|
41
37
|
}
|
|
42
38
|
}}
|
|
43
39
|
style={{
|
|
@@ -3,7 +3,6 @@ import { StackActions, useNavigation } from '@react-navigation/native';
|
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import React, { useEffect, useRef, useState } from 'react';
|
|
5
5
|
import {
|
|
6
|
-
Alert,
|
|
7
6
|
Clipboard,
|
|
8
7
|
Dimensions,
|
|
9
8
|
Image,
|
|
@@ -26,6 +25,7 @@ import {
|
|
|
26
25
|
TimaSmall,
|
|
27
26
|
} from '../../assets/icons';
|
|
28
27
|
import Loading from '../../components/Loading';
|
|
28
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
29
29
|
import { MText } from '../../components/MText';
|
|
30
30
|
import { ScreenNames } from '../../navigation';
|
|
31
31
|
import { formatMoney } from '../../utils';
|
|
@@ -124,14 +124,29 @@ const PaymentInfoContent = observer(function PaymentInfoContent(props: any) {
|
|
|
124
124
|
setShouldStartGuide(true);
|
|
125
125
|
}
|
|
126
126
|
} else {
|
|
127
|
-
|
|
127
|
+
AlertGlobal.show({
|
|
128
|
+
type: 'warning',
|
|
129
|
+
title: 'Thông báo',
|
|
130
|
+
message: response?.data?.meta?.errorMessage,
|
|
131
|
+
primaryText: 'Đóng',
|
|
132
|
+
});
|
|
128
133
|
}
|
|
129
134
|
} else {
|
|
130
|
-
|
|
135
|
+
AlertGlobal.show({
|
|
136
|
+
type: 'warning',
|
|
137
|
+
title: 'Thông báo',
|
|
138
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
139
|
+
primaryText: 'Đóng',
|
|
140
|
+
});
|
|
131
141
|
}
|
|
132
142
|
})
|
|
133
143
|
.catch((err) => {
|
|
134
|
-
|
|
144
|
+
AlertGlobal.show({
|
|
145
|
+
type: 'warning',
|
|
146
|
+
title: 'Thông báo',
|
|
147
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
148
|
+
primaryText: 'Đóng',
|
|
149
|
+
});
|
|
135
150
|
setIsLoading(false);
|
|
136
151
|
});
|
|
137
152
|
};
|
|
@@ -333,22 +348,31 @@ const PaymentInfoContent = observer(function PaymentInfoContent(props: any) {
|
|
|
333
348
|
.then((res) => {
|
|
334
349
|
CameraRoll.saveAsset(res.data, { type: 'photo' })
|
|
335
350
|
.then(() => {
|
|
336
|
-
|
|
351
|
+
AlertGlobal.show({
|
|
352
|
+
type: 'success',
|
|
353
|
+
title: 'Thông báo',
|
|
354
|
+
message: 'Tải mã QR thành công',
|
|
355
|
+
primaryText: 'Đóng',
|
|
356
|
+
});
|
|
337
357
|
})
|
|
338
358
|
.catch((error) => {
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
'
|
|
342
|
-
|
|
359
|
+
AlertGlobal.show({
|
|
360
|
+
type: 'warning',
|
|
361
|
+
title: 'Thông báo',
|
|
362
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
363
|
+
primaryText: 'Đóng',
|
|
364
|
+
});
|
|
343
365
|
console.log(error);
|
|
344
366
|
});
|
|
345
367
|
})
|
|
346
368
|
.catch((error) => {
|
|
347
369
|
console.log(error);
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
'
|
|
351
|
-
|
|
370
|
+
AlertGlobal.show({
|
|
371
|
+
type: 'warning',
|
|
372
|
+
title: 'Thông báo',
|
|
373
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
374
|
+
primaryText: 'Đóng',
|
|
375
|
+
});
|
|
352
376
|
});
|
|
353
377
|
}}
|
|
354
378
|
>
|
|
@@ -596,48 +620,45 @@ const PaymentInfoContent = observer(function PaymentInfoContent(props: any) {
|
|
|
596
620
|
<TouchableOpacity
|
|
597
621
|
style={{ marginHorizontal: 16, marginBottom: 16 }}
|
|
598
622
|
onPress={() => {
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
'
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
623
|
+
AlertGlobal.show({
|
|
624
|
+
type: 'confirm',
|
|
625
|
+
title: 'Xác nhận tất toán',
|
|
626
|
+
message:
|
|
627
|
+
'Bạn có chắc muốn gửi YÊU CẦU TẤT TOÁN hợp đồng không?',
|
|
628
|
+
primaryText: 'Có',
|
|
629
|
+
onPrimaryPress: async () => {
|
|
630
|
+
const response =
|
|
631
|
+
await Api.getInstance().confirm_final_settlement({
|
|
632
|
+
loanBriefId: props?.route.params?.loan?.id,
|
|
633
|
+
});
|
|
610
634
|
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
},
|
|
639
|
-
]
|
|
640
|
-
);
|
|
635
|
+
if (
|
|
636
|
+
response.kind === 'ok' &&
|
|
637
|
+
response.data?.meta?.errorCode === 200
|
|
638
|
+
) {
|
|
639
|
+
AlertGlobal.show({
|
|
640
|
+
type: 'success',
|
|
641
|
+
title: 'GỬI YÊU CẦU THÀNH CÔNG!',
|
|
642
|
+
message:
|
|
643
|
+
'Yêu cầu tất toán đang được Tima xử lý, vui lòng chờ trong ít phút.',
|
|
644
|
+
primaryText: 'Đồng ý',
|
|
645
|
+
onPrimaryPress: () => {
|
|
646
|
+
navigation.navigate('Main');
|
|
647
|
+
},
|
|
648
|
+
});
|
|
649
|
+
} else {
|
|
650
|
+
AlertGlobal.show({
|
|
651
|
+
type: 'warning',
|
|
652
|
+
title: 'Thông báo',
|
|
653
|
+
message:
|
|
654
|
+
response?.data?.meta?.errorMessage ||
|
|
655
|
+
'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
656
|
+
primaryText: 'Đóng',
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
secondaryText: 'Không',
|
|
661
|
+
});
|
|
641
662
|
}}
|
|
642
663
|
>
|
|
643
664
|
<LinearGradient
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { observer } from 'mobx-react-lite';
|
|
3
3
|
import React, { useEffect, useRef, useState } from 'react';
|
|
4
4
|
import {
|
|
5
|
-
Alert,
|
|
6
5
|
Clipboard,
|
|
7
6
|
Dimensions,
|
|
8
7
|
Image,
|
|
8
|
+
Linking,
|
|
9
9
|
Platform,
|
|
10
10
|
ScrollView,
|
|
11
11
|
StatusBar,
|
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
useTourGuideController, // hook to start, etc.
|
|
38
38
|
} from 'rn-tourguide';
|
|
39
39
|
import { load, save } from '../../utils/storage';
|
|
40
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
40
41
|
|
|
41
42
|
export const ShowQrCode = observer(function ShowQrCode(props: any) {
|
|
42
43
|
return (
|
|
@@ -111,14 +112,29 @@ const ShowQrCodeContent = observer(function ShowQrCodeContent(props: any) {
|
|
|
111
112
|
setShouldStartGuide(true);
|
|
112
113
|
}
|
|
113
114
|
} else {
|
|
114
|
-
|
|
115
|
+
AlertGlobal.show({
|
|
116
|
+
type: 'warning',
|
|
117
|
+
title: 'Thông báo',
|
|
118
|
+
message: response?.data?.meta?.errorMessage,
|
|
119
|
+
primaryText: 'Đóng',
|
|
120
|
+
});
|
|
115
121
|
}
|
|
116
122
|
} else {
|
|
117
|
-
|
|
123
|
+
AlertGlobal.show({
|
|
124
|
+
type: 'warning',
|
|
125
|
+
title: 'Thông báo',
|
|
126
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
127
|
+
primaryText: 'Đóng',
|
|
128
|
+
});
|
|
118
129
|
}
|
|
119
130
|
})
|
|
120
131
|
.catch((err) => {
|
|
121
|
-
|
|
132
|
+
AlertGlobal.show({
|
|
133
|
+
type: 'warning',
|
|
134
|
+
title: 'Thông báo',
|
|
135
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
136
|
+
primaryText: 'Đóng',
|
|
137
|
+
});
|
|
122
138
|
setIsLoading(false);
|
|
123
139
|
})
|
|
124
140
|
.finally(() => {
|
|
@@ -315,22 +331,31 @@ const ShowQrCodeContent = observer(function ShowQrCodeContent(props: any) {
|
|
|
315
331
|
console.log(res);
|
|
316
332
|
CameraRoll.saveAsset(res.data, { type: 'photo' })
|
|
317
333
|
.then(() => {
|
|
318
|
-
|
|
334
|
+
AlertGlobal.show({
|
|
335
|
+
type: 'success',
|
|
336
|
+
title: 'Thông báo',
|
|
337
|
+
message: 'Tải mã QR thành công',
|
|
338
|
+
primaryText: 'Đóng',
|
|
339
|
+
});
|
|
319
340
|
})
|
|
320
341
|
.catch((error) => {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
'
|
|
324
|
-
|
|
342
|
+
AlertGlobal.show({
|
|
343
|
+
type: 'warning',
|
|
344
|
+
title: 'Thông báo',
|
|
345
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
346
|
+
primaryText: 'Đóng',
|
|
347
|
+
});
|
|
325
348
|
console.log(error);
|
|
326
349
|
});
|
|
327
350
|
})
|
|
328
351
|
.catch((error) => {
|
|
329
352
|
console.log(error);
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
'
|
|
333
|
-
|
|
353
|
+
AlertGlobal.show({
|
|
354
|
+
type: 'warning',
|
|
355
|
+
title: 'Thông báo',
|
|
356
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
357
|
+
primaryText: 'Đóng',
|
|
358
|
+
});
|
|
334
359
|
});
|
|
335
360
|
}}
|
|
336
361
|
>
|
|
@@ -615,47 +640,45 @@ const ShowQrCodeContent = observer(function ShowQrCodeContent(props: any) {
|
|
|
615
640
|
<TouchableOpacity
|
|
616
641
|
style={{ margin: 16 }}
|
|
617
642
|
onPress={() => {
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
'
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
]
|
|
658
|
-
);
|
|
643
|
+
AlertGlobal.show({
|
|
644
|
+
type: 'confirm',
|
|
645
|
+
title: 'Xác nhận tất toán',
|
|
646
|
+
message:
|
|
647
|
+
'Bạn có chắc muốn gửi YÊU CẦU TẤT TOÁN hợp đồng không?',
|
|
648
|
+
primaryText: 'Gửi yêu cầu',
|
|
649
|
+
secondaryText: 'Quay lại',
|
|
650
|
+
onPrimaryPress: async () => {
|
|
651
|
+
const response =
|
|
652
|
+
await Api.getInstance().confirm_final_settlement({
|
|
653
|
+
loanBriefId: props?.route?.params?.id,
|
|
654
|
+
});
|
|
655
|
+
if (
|
|
656
|
+
response.kind === 'ok' &&
|
|
657
|
+
response.data?.meta?.errorCode === 200
|
|
658
|
+
) {
|
|
659
|
+
AlertGlobal.show({
|
|
660
|
+
type: 'success',
|
|
661
|
+
title: 'Gửi yêu cầu thành công',
|
|
662
|
+
message:
|
|
663
|
+
'Yêu cầu tất toán đang được Tima xử lý, vui\nlòng chờ trong ít phút.',
|
|
664
|
+
primaryText: 'Liên hệ Tima',
|
|
665
|
+
showClose: true,
|
|
666
|
+
onPrimaryPress: () => {
|
|
667
|
+
Linking.openURL(`tel:1900633688`);
|
|
668
|
+
},
|
|
669
|
+
});
|
|
670
|
+
} else {
|
|
671
|
+
AlertGlobal.show({
|
|
672
|
+
type: 'warning',
|
|
673
|
+
title: 'Thông báo',
|
|
674
|
+
message:
|
|
675
|
+
response?.data?.meta?.errorMessage ||
|
|
676
|
+
'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
677
|
+
primaryText: 'Đóng',
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
},
|
|
681
|
+
});
|
|
659
682
|
}}
|
|
660
683
|
>
|
|
661
684
|
<LinearGradient
|
|
@@ -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;
|
|
@@ -21,12 +21,23 @@ class Store {
|
|
|
21
21
|
this.paymentInfo = response.data.data;
|
|
22
22
|
onSuccess(response.data.data);
|
|
23
23
|
} else {
|
|
24
|
-
|
|
24
|
+
AlertGlobal.show({
|
|
25
|
+
type: 'warning',
|
|
26
|
+
title: 'Thông báo',
|
|
27
|
+
message: response.data.meta.errorMessage,
|
|
28
|
+
primaryText: 'Đóng',
|
|
29
|
+
});
|
|
30
|
+
|
|
25
31
|
this.paymentInfo = null;
|
|
26
32
|
onFailure();
|
|
27
33
|
}
|
|
28
34
|
} else {
|
|
29
|
-
|
|
35
|
+
AlertGlobal.show({
|
|
36
|
+
type: 'warning',
|
|
37
|
+
title: 'Thông báo',
|
|
38
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
39
|
+
primaryText: 'Đóng',
|
|
40
|
+
});
|
|
30
41
|
this.paymentInfo = null;
|
|
31
42
|
onFailure();
|
|
32
43
|
}
|
|
@@ -50,12 +61,23 @@ class Store {
|
|
|
50
61
|
if (onSuccess) onSuccess(response.data.data);
|
|
51
62
|
} else {
|
|
52
63
|
this.loan = null;
|
|
53
|
-
|
|
64
|
+
|
|
65
|
+
AlertGlobal.show({
|
|
66
|
+
type: 'warning',
|
|
67
|
+
title: 'Thông báo',
|
|
68
|
+
message: response.data.meta.errorMessage,
|
|
69
|
+
primaryText: 'Đóng',
|
|
70
|
+
});
|
|
54
71
|
if (onFailure) onFailure();
|
|
55
72
|
}
|
|
56
73
|
} else {
|
|
57
74
|
this.loan = null;
|
|
58
|
-
|
|
75
|
+
AlertGlobal.show({
|
|
76
|
+
type: 'warning',
|
|
77
|
+
title: 'Thông báo',
|
|
78
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
79
|
+
primaryText: 'Đóng',
|
|
80
|
+
});
|
|
59
81
|
if (onFailure) onFailure();
|
|
60
82
|
}
|
|
61
83
|
} catch (error) {
|
|
@@ -87,12 +109,22 @@ class Store {
|
|
|
87
109
|
} else {
|
|
88
110
|
this.listPayment = [];
|
|
89
111
|
if (onFailure) onFailure();
|
|
90
|
-
|
|
112
|
+
AlertGlobal.show({
|
|
113
|
+
type: 'warning',
|
|
114
|
+
title: 'Thông báo',
|
|
115
|
+
message: response.data.meta.errorMessage,
|
|
116
|
+
primaryText: 'Đóng',
|
|
117
|
+
});
|
|
91
118
|
}
|
|
92
119
|
} else {
|
|
93
120
|
this.listPayment = [];
|
|
94
121
|
if (onFailure) onFailure();
|
|
95
|
-
|
|
122
|
+
AlertGlobal.show({
|
|
123
|
+
type: 'warning',
|
|
124
|
+
title: 'Thông báo',
|
|
125
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
126
|
+
primaryText: 'Đóng',
|
|
127
|
+
});
|
|
96
128
|
}
|
|
97
129
|
} catch (error) {
|
|
98
130
|
this.listPayment = [];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import React, { useEffect, useState } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { ScrollView, TouchableOpacity, View } from 'react-native';
|
|
4
4
|
import { MText } from '../../components/MText';
|
|
5
5
|
import { IconArrowDown } from '../../assets/icons';
|
|
6
6
|
import { formatDDMMYYY, formatMoney } from '../../utils';
|
|
@@ -11,6 +11,7 @@ import LinearGradient from 'react-native-linear-gradient';
|
|
|
11
11
|
import { useNavigation } from '@react-navigation/native';
|
|
12
12
|
import { commonStyles } from '../CommonStyles';
|
|
13
13
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
14
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
14
15
|
|
|
15
16
|
const cardStyle = {
|
|
16
17
|
backgroundColor: '#FFFFFF',
|
|
@@ -62,13 +63,28 @@ export default function InforLoan({ id }: { id: number }) {
|
|
|
62
63
|
if (response.data?.meta?.errorCode === 200) {
|
|
63
64
|
setData(response.data?.data);
|
|
64
65
|
} else {
|
|
65
|
-
|
|
66
|
+
AlertGlobal.show({
|
|
67
|
+
type: 'warning',
|
|
68
|
+
title: 'Thông báo',
|
|
69
|
+
message: response?.data?.meta?.errorMessage,
|
|
70
|
+
primaryText: 'Đóng',
|
|
71
|
+
});
|
|
66
72
|
}
|
|
67
73
|
} else {
|
|
68
|
-
|
|
74
|
+
AlertGlobal.show({
|
|
75
|
+
type: 'warning',
|
|
76
|
+
title: 'Thông báo',
|
|
77
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
78
|
+
primaryText: 'Đóng',
|
|
79
|
+
});
|
|
69
80
|
}
|
|
70
81
|
} catch (error) {
|
|
71
|
-
|
|
82
|
+
AlertGlobal.show({
|
|
83
|
+
type: 'warning',
|
|
84
|
+
title: 'Thông báo',
|
|
85
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
86
|
+
primaryText: 'Đóng',
|
|
87
|
+
});
|
|
72
88
|
} finally {
|
|
73
89
|
setIsLoading(false);
|
|
74
90
|
}
|
|
@@ -3,7 +3,6 @@ import React, { useEffect, useState } from 'react';
|
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import { useNavigation } from '@react-navigation/native';
|
|
5
5
|
import {
|
|
6
|
-
Alert,
|
|
7
6
|
ScrollView,
|
|
8
7
|
TouchableOpacity,
|
|
9
8
|
View,
|
|
@@ -18,6 +17,7 @@ import { commonStyles } from '../CommonStyles';
|
|
|
18
17
|
import { SkeletonPaymentScheduleList } from '../../components/SkeletonLoanCard';
|
|
19
18
|
import MHeader from '../../components/MHeader';
|
|
20
19
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
20
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
21
21
|
|
|
22
22
|
export const PaymentSchedule = observer(function PaymentSchedule({
|
|
23
23
|
id,
|
|
@@ -40,15 +40,30 @@ export const PaymentSchedule = observer(function PaymentSchedule({
|
|
|
40
40
|
if (response.data.meta.errorCode === 200) {
|
|
41
41
|
setData(response.data?.data);
|
|
42
42
|
} else {
|
|
43
|
-
|
|
43
|
+
AlertGlobal.show({
|
|
44
|
+
type: 'warning',
|
|
45
|
+
title: 'Thông báo',
|
|
46
|
+
message: response?.data?.meta?.errorMessage,
|
|
47
|
+
primaryText: 'Đóng',
|
|
48
|
+
});
|
|
44
49
|
}
|
|
45
50
|
} else {
|
|
46
|
-
|
|
51
|
+
AlertGlobal.show({
|
|
52
|
+
type: 'warning',
|
|
53
|
+
title: 'Thông báo',
|
|
54
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
55
|
+
primaryText: 'Đóng',
|
|
56
|
+
});
|
|
47
57
|
}
|
|
48
58
|
})
|
|
49
59
|
.catch((err) => {
|
|
50
60
|
setIsLoading(false);
|
|
51
|
-
|
|
61
|
+
AlertGlobal.show({
|
|
62
|
+
type: 'warning',
|
|
63
|
+
title: 'Thông báo',
|
|
64
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
65
|
+
primaryText: 'Đóng',
|
|
66
|
+
});
|
|
52
67
|
});
|
|
53
68
|
};
|
|
54
69
|
|
|
@@ -3,7 +3,6 @@ import React, { useState } from 'react';
|
|
|
3
3
|
import { useNavigation } from '@react-navigation/native';
|
|
4
4
|
import { observer } from 'mobx-react-lite';
|
|
5
5
|
import {
|
|
6
|
-
Alert,
|
|
7
6
|
Dimensions,
|
|
8
7
|
Image,
|
|
9
8
|
ScrollView,
|
|
@@ -26,6 +25,7 @@ import { MText } from '../../components/MText';
|
|
|
26
25
|
import digitalLendingStore from './store';
|
|
27
26
|
import { ScreenNames } from '../../navigation';
|
|
28
27
|
import Modal from 'react-native-modal';
|
|
28
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
29
29
|
|
|
30
30
|
export const Step6 = observer(function Step6() {
|
|
31
31
|
const navigation = useNavigation();
|
|
@@ -414,34 +414,29 @@ export const Step6 = observer(function Step6() {
|
|
|
414
414
|
<StepIcon />
|
|
415
415
|
<TouchableOpacity
|
|
416
416
|
onPress={() => {
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
'
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
{
|
|
441
|
-
text: 'Huỷ',
|
|
442
|
-
},
|
|
443
|
-
]
|
|
444
|
-
);
|
|
417
|
+
AlertGlobal.show({
|
|
418
|
+
type: 'confirm',
|
|
419
|
+
title: 'Vui lòng xác nhận lại',
|
|
420
|
+
message: 'Những thông tin đã đúng với thông tin của bạn chưa?',
|
|
421
|
+
primaryText: 'Xác nhận',
|
|
422
|
+
onPrimaryPress: () => {
|
|
423
|
+
digitalLendingStore.uploadLoanReborrow(
|
|
424
|
+
digitalLendingStore.body,
|
|
425
|
+
() => {
|
|
426
|
+
AlertGlobal.show({
|
|
427
|
+
type: 'success',
|
|
428
|
+
title: 'Cập nhật thông tin thành công',
|
|
429
|
+
primaryText: 'Đồng ý',
|
|
430
|
+
onPrimaryPress: () => {
|
|
431
|
+
navigation.pop();
|
|
432
|
+
digitalLendingStore.clear();
|
|
433
|
+
},
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
);
|
|
437
|
+
},
|
|
438
|
+
secondaryText: 'Huỷ',
|
|
439
|
+
});
|
|
445
440
|
}}
|
|
446
441
|
disabled={check === 1 && photo === null ? true : false}
|
|
447
442
|
>
|