react-native-timacare 3.3.54 → 3.3.56-alert
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +8 -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/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/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 +50 -54
- 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 +318 -475
- 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 +0 -1
- 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 +0 -1
- 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 +64 -66
- 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 +50 -54
- 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/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/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/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/typescript/AppStore.d.ts.map +1 -1
- package/lib/typescript/RNTimacare.d.ts.map +1 -1
- package/lib/typescript/assets/icons/index.d.ts +5 -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/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/package.json +1 -1
- package/src/AppStore.tsx +7 -2
- package/src/RNTimacare.tsx +7 -1
- package/src/assets/icons/index.tsx +8 -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/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/screens/SelectorStore.tsx +7 -2
- package/src/screens/camera/CCCDCameraScreen.tsx +50 -54
- 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 +318 -475
- 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 +0 -1
- package/src/screens/nationalIDBack/Store.tsx +44 -26
- package/src/screens/nationalIDBack/index.tsx +0 -1
- 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 +64 -66
- 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 +50 -54
- 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/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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { action, observable } from 'mobx';
|
|
3
|
-
import {
|
|
3
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
4
4
|
import { Api } from '../../services/api';
|
|
5
5
|
|
|
6
6
|
class Store {
|
|
@@ -18,10 +18,20 @@ class Store {
|
|
|
18
18
|
if (response.data.meta.errorCode === 200) {
|
|
19
19
|
if (onSuccess) onSuccess(response.data.data);
|
|
20
20
|
} else {
|
|
21
|
-
|
|
21
|
+
AlertGlobal.show({
|
|
22
|
+
type: 'warning',
|
|
23
|
+
title: 'Thông báo',
|
|
24
|
+
message: response.data.meta.errorMessage,
|
|
25
|
+
primaryText: 'Đóng',
|
|
26
|
+
});
|
|
22
27
|
}
|
|
23
28
|
} else {
|
|
24
|
-
|
|
29
|
+
AlertGlobal.show({
|
|
30
|
+
type: 'warning',
|
|
31
|
+
title: 'Thông báo',
|
|
32
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
33
|
+
primaryText: 'Đóng',
|
|
34
|
+
});
|
|
25
35
|
}
|
|
26
36
|
} catch (error) {
|
|
27
37
|
console.log(error);
|
|
@@ -35,10 +45,20 @@ class Store {
|
|
|
35
45
|
if (response.kind === 'ok') {
|
|
36
46
|
if (response.data.meta.errorCode === 200) {
|
|
37
47
|
} else {
|
|
38
|
-
|
|
48
|
+
AlertGlobal.show({
|
|
49
|
+
type: 'warning',
|
|
50
|
+
title: 'Thông báo',
|
|
51
|
+
message: response.data.meta.errorMessage,
|
|
52
|
+
primaryText: 'Đóng',
|
|
53
|
+
});
|
|
39
54
|
}
|
|
40
55
|
} else {
|
|
41
|
-
|
|
56
|
+
AlertGlobal.show({
|
|
57
|
+
type: 'warning',
|
|
58
|
+
title: 'Thông báo',
|
|
59
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
60
|
+
primaryText: 'Đóng',
|
|
61
|
+
});
|
|
42
62
|
}
|
|
43
63
|
} catch (error) {
|
|
44
64
|
console.log(error);
|
|
@@ -57,10 +77,20 @@ class Store {
|
|
|
57
77
|
if (response.data.meta.errorCode === 200) {
|
|
58
78
|
if (onSuccess) onSuccess(response.data.data);
|
|
59
79
|
} else {
|
|
60
|
-
|
|
80
|
+
AlertGlobal.show({
|
|
81
|
+
type: 'warning',
|
|
82
|
+
title: 'Thông báo',
|
|
83
|
+
message: response.data.meta.errorMessage,
|
|
84
|
+
primaryText: 'Đóng',
|
|
85
|
+
});
|
|
61
86
|
}
|
|
62
87
|
} else {
|
|
63
|
-
|
|
88
|
+
AlertGlobal.show({
|
|
89
|
+
type: 'warning',
|
|
90
|
+
title: 'Thông báo',
|
|
91
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
92
|
+
primaryText: 'Đóng',
|
|
93
|
+
});
|
|
64
94
|
}
|
|
65
95
|
} catch (error) {
|
|
66
96
|
console.log(error);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import React, { useEffect } from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { ScrollView, TextStyle, View, ViewStyle } from 'react-native';
|
|
4
4
|
import { commonStyles } from '../CommonStyles';
|
|
5
5
|
import MHeader from '../../components/MHeader';
|
|
6
6
|
import { MText } from '../../components/MText';
|
|
@@ -12,6 +12,7 @@ import LinearGradient from 'react-native-linear-gradient';
|
|
|
12
12
|
import { ScreenNames } from '../../navigation';
|
|
13
13
|
import { Api } from '../../services/api';
|
|
14
14
|
import Loading from '../../components/Loading';
|
|
15
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
15
16
|
|
|
16
17
|
export default function LoanInterestRate(props) {
|
|
17
18
|
const loan = props?.route?.params?.loan;
|
|
@@ -29,19 +30,32 @@ export default function LoanInterestRate(props) {
|
|
|
29
30
|
if (response.data?.meta?.errorCode === 200) {
|
|
30
31
|
setData(response.data?.data);
|
|
31
32
|
} else {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
AlertGlobal.show({
|
|
34
|
+
type: 'warning',
|
|
35
|
+
title: 'Thông báo',
|
|
36
|
+
message:
|
|
37
|
+
response.data?.meta?.errorMessage ||
|
|
38
|
+
'Có lỗi xảy ra, vui lòng thử lại sau',
|
|
39
|
+
primaryText: 'Đóng',
|
|
40
|
+
});
|
|
37
41
|
}
|
|
38
42
|
} else {
|
|
39
|
-
|
|
43
|
+
AlertGlobal.show({
|
|
44
|
+
type: 'warning',
|
|
45
|
+
title: 'Thông báo',
|
|
46
|
+
message: 'Có lỗi xảy ra, vui lòng thử lại sau',
|
|
47
|
+
primaryText: 'Đóng',
|
|
48
|
+
});
|
|
40
49
|
}
|
|
41
50
|
} catch (error) {
|
|
42
51
|
console.error('Error fetching data:', error);
|
|
43
52
|
setIsLoading(false);
|
|
44
|
-
|
|
53
|
+
AlertGlobal.show({
|
|
54
|
+
type: 'warning',
|
|
55
|
+
title: 'Thông báo',
|
|
56
|
+
message: 'Có lỗi xảy ra, vui lòng thử lại sau',
|
|
57
|
+
primaryText: 'Đóng',
|
|
58
|
+
});
|
|
45
59
|
}
|
|
46
60
|
};
|
|
47
61
|
|
|
@@ -62,10 +76,22 @@ export default function LoanInterestRate(props) {
|
|
|
62
76
|
if (response.data?.meta?.errorCode === 200) {
|
|
63
77
|
navigation.push(ScreenNames.LivenessV2, { loan });
|
|
64
78
|
} else {
|
|
65
|
-
|
|
79
|
+
AlertGlobal.show({
|
|
80
|
+
type: 'warning',
|
|
81
|
+
title: 'Thông báo',
|
|
82
|
+
message:
|
|
83
|
+
response.data?.meta?.errorMessage ??
|
|
84
|
+
'Có lỗi xảy ra, vui lòng thử lại sau',
|
|
85
|
+
primaryText: 'Đóng',
|
|
86
|
+
});
|
|
66
87
|
}
|
|
67
88
|
} else {
|
|
68
|
-
|
|
89
|
+
AlertGlobal.show({
|
|
90
|
+
type: 'warning',
|
|
91
|
+
title: 'Thông báo',
|
|
92
|
+
message: 'Có lỗi xảy ra, vui lòng thử lại sau',
|
|
93
|
+
primaryText: 'Đóng',
|
|
94
|
+
});
|
|
69
95
|
}
|
|
70
96
|
} catch (error) {
|
|
71
97
|
setIsLoading(false);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { observer
|
|
3
|
+
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import {
|
|
5
5
|
View,
|
|
6
6
|
NativeModules,
|
|
7
7
|
TouchableOpacity,
|
|
8
|
-
SafeAreaView,
|
|
9
8
|
TextStyle,
|
|
10
9
|
ViewStyle,
|
|
11
10
|
ImageStyle,
|
|
@@ -13,7 +12,6 @@ import {
|
|
|
13
12
|
ActivityIndicator,
|
|
14
13
|
Dimensions,
|
|
15
14
|
StyleSheet,
|
|
16
|
-
Alert,
|
|
17
15
|
Platform,
|
|
18
16
|
} from 'react-native';
|
|
19
17
|
import { MText } from '../../components/MText';
|
|
@@ -32,8 +30,6 @@ import {
|
|
|
32
30
|
import Modal from 'react-native-modal';
|
|
33
31
|
import LinearGradient from 'react-native-linear-gradient';
|
|
34
32
|
import {
|
|
35
|
-
Cam2Svg,
|
|
36
|
-
ChipSvg,
|
|
37
33
|
CloseIcon,
|
|
38
34
|
IconBackWhite,
|
|
39
35
|
TakePhotoSvg,
|
|
@@ -41,20 +37,16 @@ import {
|
|
|
41
37
|
} from '../../assets/icons';
|
|
42
38
|
import MButton from '../../components/MButton';
|
|
43
39
|
import { commonStyles } from '../CommonStyles';
|
|
44
|
-
import {
|
|
45
|
-
StackActions,
|
|
46
|
-
useNavigation,
|
|
47
|
-
useIsFocused,
|
|
48
|
-
} from '@react-navigation/native';
|
|
40
|
+
import { useNavigation, useIsFocused } from '@react-navigation/native';
|
|
49
41
|
import TextRecognition from '@react-native-ml-kit/text-recognition';
|
|
50
42
|
import { ScreenNames } from '../../navigation';
|
|
51
43
|
import { Api } from '../../services/api';
|
|
52
44
|
import Loading from '../../components/Loading';
|
|
53
|
-
import DeviceInfo from 'react-native-device-info';
|
|
54
45
|
import { IconUpload } from '../../assets/svgs';
|
|
55
46
|
import ImagePicker from 'react-native-image-crop-picker';
|
|
56
47
|
import { launchImageLibrary } from 'react-native-image-picker';
|
|
57
48
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
49
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
58
50
|
|
|
59
51
|
const { NFCReader } = NativeModules;
|
|
60
52
|
|
|
@@ -85,51 +77,49 @@ export const OCR = observer(function OCR(props: any) {
|
|
|
85
77
|
console.log(
|
|
86
78
|
'This feature is not available (on this device / in this context)'
|
|
87
79
|
);
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
'
|
|
91
|
-
|
|
92
|
-
|
|
80
|
+
AlertGlobal.show({
|
|
81
|
+
type: 'warning',
|
|
82
|
+
title: 'Thông báo',
|
|
83
|
+
message:
|
|
84
|
+
'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ị!',
|
|
85
|
+
primaryText: 'Đóng',
|
|
86
|
+
});
|
|
93
87
|
break;
|
|
94
88
|
case RESULTS.DENIED:
|
|
95
89
|
console.log(
|
|
96
90
|
'The permission has not been requested / is denied but requestable'
|
|
97
91
|
);
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
'
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
]
|
|
113
|
-
);
|
|
92
|
+
AlertGlobal.show({
|
|
93
|
+
type: 'warning',
|
|
94
|
+
title: 'Thông báo',
|
|
95
|
+
message:
|
|
96
|
+
'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',
|
|
97
|
+
primaryText: 'Đồng ý',
|
|
98
|
+
onPrimaryPress: () => {
|
|
99
|
+
if (Platform.OS === 'ios') {
|
|
100
|
+
openSettings();
|
|
101
|
+
} else {
|
|
102
|
+
requestPermissions();
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
});
|
|
114
106
|
break;
|
|
115
107
|
case RESULTS.LIMITED:
|
|
116
108
|
console.log('The permission is limited: some actions are possible');
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
'
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
]
|
|
132
|
-
);
|
|
109
|
+
AlertGlobal.show({
|
|
110
|
+
type: 'warning',
|
|
111
|
+
title: 'Thông báo',
|
|
112
|
+
message:
|
|
113
|
+
'Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',
|
|
114
|
+
primaryText: 'Đồng ý',
|
|
115
|
+
onPrimaryPress: () => {
|
|
116
|
+
if (Platform.OS === 'ios') {
|
|
117
|
+
openSettings();
|
|
118
|
+
} else {
|
|
119
|
+
requestPermissions();
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
});
|
|
133
123
|
break;
|
|
134
124
|
case RESULTS.GRANTED:
|
|
135
125
|
console.log('The permission is granted');
|
|
@@ -137,22 +127,20 @@ export const OCR = observer(function OCR(props: any) {
|
|
|
137
127
|
break;
|
|
138
128
|
case RESULTS.BLOCKED:
|
|
139
129
|
console.log('The permission is denied and not requestable anymore');
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
'
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
]
|
|
155
|
-
);
|
|
130
|
+
AlertGlobal.show({
|
|
131
|
+
type: 'warning',
|
|
132
|
+
title: 'Thông báo',
|
|
133
|
+
message:
|
|
134
|
+
'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',
|
|
135
|
+
primaryText: 'Đồng ý',
|
|
136
|
+
onPrimaryPress: () => {
|
|
137
|
+
if (Platform.OS === 'ios') {
|
|
138
|
+
openSettings();
|
|
139
|
+
} else {
|
|
140
|
+
requestPermissions();
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
});
|
|
156
144
|
break;
|
|
157
145
|
}
|
|
158
146
|
});
|
|
@@ -198,10 +186,20 @@ export const OCR = observer(function OCR(props: any) {
|
|
|
198
186
|
});
|
|
199
187
|
}, 500);
|
|
200
188
|
} else {
|
|
201
|
-
|
|
189
|
+
AlertGlobal.show({
|
|
190
|
+
type: 'warning',
|
|
191
|
+
title: 'Thông báo',
|
|
192
|
+
message: response?.data?.meta?.errorMessage,
|
|
193
|
+
primaryText: 'Đóng',
|
|
194
|
+
});
|
|
202
195
|
}
|
|
203
196
|
} else {
|
|
204
|
-
|
|
197
|
+
AlertGlobal.show({
|
|
198
|
+
type: 'error',
|
|
199
|
+
title: 'Thông báo',
|
|
200
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
201
|
+
primaryText: 'Đóng',
|
|
202
|
+
});
|
|
205
203
|
}
|
|
206
204
|
} catch (error) {
|
|
207
205
|
console.log(error);
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import React, { useEffect, useState } from 'react';
|
|
3
3
|
import {
|
|
4
|
-
Alert,
|
|
5
4
|
Dimensions,
|
|
6
5
|
Image,
|
|
7
6
|
ImageStyle,
|
|
@@ -19,6 +18,7 @@ import { ScreenNames } from '../../navigation';
|
|
|
19
18
|
import Loading from '../../components/Loading';
|
|
20
19
|
import MButton from '../../components/MButton';
|
|
21
20
|
import LinearGradient from 'react-native-linear-gradient';
|
|
21
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
22
22
|
|
|
23
23
|
const logoView: ImageStyle = {
|
|
24
24
|
position: 'absolute',
|
|
@@ -78,14 +78,31 @@ export default function RegisterBack(props) {
|
|
|
78
78
|
})
|
|
79
79
|
);
|
|
80
80
|
} else {
|
|
81
|
-
|
|
81
|
+
AlertGlobal.show({
|
|
82
|
+
type: 'warning',
|
|
83
|
+
title: 'Thông báo',
|
|
84
|
+
message:
|
|
85
|
+
response.data?.meta?.errorMessage ||
|
|
86
|
+
'Có lỗi xảy ra, vui lòng thử lại sau',
|
|
87
|
+
primaryText: 'Đóng',
|
|
88
|
+
});
|
|
82
89
|
}
|
|
83
90
|
} else {
|
|
84
|
-
|
|
91
|
+
AlertGlobal.show({
|
|
92
|
+
type: 'warning',
|
|
93
|
+
title: 'Thông báo',
|
|
94
|
+
message: 'Có lỗi xảy ra, vui lòng thử lại sau',
|
|
95
|
+
primaryText: 'Đóng',
|
|
96
|
+
});
|
|
85
97
|
}
|
|
86
98
|
} catch (error) {
|
|
87
99
|
console.log(error);
|
|
88
|
-
|
|
100
|
+
AlertGlobal.show({
|
|
101
|
+
type: 'warning',
|
|
102
|
+
title: 'Thông báo',
|
|
103
|
+
message: 'Có lỗi xảy ra, vui lòng thử lại sau',
|
|
104
|
+
primaryText: 'Đóng',
|
|
105
|
+
});
|
|
89
106
|
setIsLoading(false);
|
|
90
107
|
}
|
|
91
108
|
};
|
|
@@ -10,7 +10,6 @@ import {
|
|
|
10
10
|
TouchableOpacity,
|
|
11
11
|
View,
|
|
12
12
|
ViewStyle,
|
|
13
|
-
Alert,
|
|
14
13
|
useWindowDimensions,
|
|
15
14
|
} from 'react-native';
|
|
16
15
|
import { useNavigation, useIsFocused } from '@react-navigation/native';
|
|
@@ -38,6 +37,7 @@ import ImagePicker from 'react-native-image-crop-picker';
|
|
|
38
37
|
import { IconUpload } from '../../assets/svgs';
|
|
39
38
|
import { launchImageLibrary } from 'react-native-image-picker';
|
|
40
39
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
40
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
41
41
|
|
|
42
42
|
export default function RegisterCamera(props: any) {
|
|
43
43
|
const insets = useSafeAreaInsets();
|
|
@@ -67,51 +67,49 @@ export default function RegisterCamera(props: any) {
|
|
|
67
67
|
console.log(
|
|
68
68
|
'This feature is not available (on this device / in this context)'
|
|
69
69
|
);
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
'
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
AlertGlobal.show({
|
|
71
|
+
type: 'warning',
|
|
72
|
+
title: 'Thông báo',
|
|
73
|
+
message:
|
|
74
|
+
'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ị!',
|
|
75
|
+
primaryText: 'Đồng ý',
|
|
76
|
+
});
|
|
75
77
|
break;
|
|
76
78
|
case RESULTS.DENIED:
|
|
77
79
|
console.log(
|
|
78
80
|
'The permission has not been requested / is denied but requestable'
|
|
79
81
|
);
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
'
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
]
|
|
95
|
-
);
|
|
82
|
+
AlertGlobal.show({
|
|
83
|
+
type: 'warning',
|
|
84
|
+
title: 'Thông báo',
|
|
85
|
+
message:
|
|
86
|
+
'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',
|
|
87
|
+
primaryText: 'Đồng ý',
|
|
88
|
+
onPrimaryPress: () => {
|
|
89
|
+
if (Platform.OS === 'ios') {
|
|
90
|
+
openSettings();
|
|
91
|
+
} else {
|
|
92
|
+
requestPermissions();
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
96
|
break;
|
|
97
97
|
case RESULTS.LIMITED:
|
|
98
98
|
console.log('The permission is limited: some actions are possible');
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
'
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
]
|
|
114
|
-
);
|
|
99
|
+
AlertGlobal.show({
|
|
100
|
+
type: 'warning',
|
|
101
|
+
title: 'Thông báo',
|
|
102
|
+
message:
|
|
103
|
+
'Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',
|
|
104
|
+
primaryText: 'Đồng ý',
|
|
105
|
+
onPrimaryPress: () => {
|
|
106
|
+
if (Platform.OS === 'ios') {
|
|
107
|
+
openSettings();
|
|
108
|
+
} else {
|
|
109
|
+
requestPermissions();
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
});
|
|
115
113
|
break;
|
|
116
114
|
case RESULTS.GRANTED:
|
|
117
115
|
console.log('The permission is granted');
|
|
@@ -119,22 +117,20 @@ export default function RegisterCamera(props: any) {
|
|
|
119
117
|
break;
|
|
120
118
|
case RESULTS.BLOCKED:
|
|
121
119
|
console.log('The permission is denied and not requestable anymore');
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
'
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
]
|
|
137
|
-
);
|
|
120
|
+
AlertGlobal.show({
|
|
121
|
+
type: 'warning',
|
|
122
|
+
title: 'Thông báo',
|
|
123
|
+
message:
|
|
124
|
+
'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',
|
|
125
|
+
primaryText: 'Đồng ý',
|
|
126
|
+
onPrimaryPress: () => {
|
|
127
|
+
if (Platform.OS === 'ios') {
|
|
128
|
+
openSettings();
|
|
129
|
+
} else {
|
|
130
|
+
openSettings();
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
});
|
|
138
134
|
break;
|
|
139
135
|
}
|
|
140
136
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import React, { useEffect, useMemo, useRef, useState } from 'react';
|
|
3
3
|
import {
|
|
4
|
-
Alert,
|
|
5
4
|
ScrollView,
|
|
6
5
|
TextInput,
|
|
7
6
|
TextStyle,
|
|
@@ -29,6 +28,7 @@ import { Api } from '../../services/api';
|
|
|
29
28
|
import Loading from '../../components/Loading';
|
|
30
29
|
import moment from 'moment';
|
|
31
30
|
import appStore from '../../AppStore';
|
|
31
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
32
32
|
|
|
33
33
|
export default function ReviewInformation(props) {
|
|
34
34
|
const navigation = useNavigation();
|
|
@@ -74,10 +74,20 @@ export default function ReviewInformation(props) {
|
|
|
74
74
|
loan: props.route?.params?.loan,
|
|
75
75
|
});
|
|
76
76
|
} else {
|
|
77
|
-
|
|
77
|
+
AlertGlobal.show({
|
|
78
|
+
type: 'warning',
|
|
79
|
+
title: 'Thông báo',
|
|
80
|
+
message: response.data?.meta?.errorMessage,
|
|
81
|
+
primaryText: 'Đóng',
|
|
82
|
+
});
|
|
78
83
|
}
|
|
79
84
|
} else {
|
|
80
|
-
|
|
85
|
+
AlertGlobal.show({
|
|
86
|
+
type: 'warning',
|
|
87
|
+
title: 'Thông báo',
|
|
88
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau',
|
|
89
|
+
primaryText: 'Đóng',
|
|
90
|
+
});
|
|
81
91
|
}
|
|
82
92
|
} catch (error) {
|
|
83
93
|
setIsLoading(false);
|
|
@@ -299,26 +309,22 @@ export default function ReviewInformation(props) {
|
|
|
299
309
|
zIndex: 1000,
|
|
300
310
|
}}
|
|
301
311
|
onPress={() => {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
'
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
text: 'Không',
|
|
319
|
-
},
|
|
320
|
-
]
|
|
321
|
-
);
|
|
312
|
+
AlertGlobal.show({
|
|
313
|
+
type: 'confirm',
|
|
314
|
+
title: 'Thoát cập nhật thông tin',
|
|
315
|
+
message:
|
|
316
|
+
'Bạn có chắc chắn muốn thoát cập nhật thông tin không?',
|
|
317
|
+
primaryText: 'Có',
|
|
318
|
+
onPrimaryPress: () => {
|
|
319
|
+
navigation.dispatch(
|
|
320
|
+
CommonActions.reset({
|
|
321
|
+
index: 1,
|
|
322
|
+
routes: [{ name: ScreenNames.Main }],
|
|
323
|
+
})
|
|
324
|
+
);
|
|
325
|
+
},
|
|
326
|
+
secondaryText: 'Không',
|
|
327
|
+
});
|
|
322
328
|
}}
|
|
323
329
|
>
|
|
324
330
|
<IconBack />
|
|
@@ -471,8 +477,8 @@ export default function ReviewInformation(props) {
|
|
|
471
477
|
{values.gender === 0
|
|
472
478
|
? 'Nam'
|
|
473
479
|
: values.gender === 1
|
|
474
|
-
|
|
475
|
-
|
|
480
|
+
? 'Nữ'
|
|
481
|
+
: ''}
|
|
476
482
|
</MText>
|
|
477
483
|
<DropDown2 />
|
|
478
484
|
</TouchableOpacity>
|