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
|
@@ -3,8 +3,8 @@ import { observable, action, makeAutoObservable } from 'mobx';
|
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import { Api } from '../../services/api';
|
|
5
5
|
import { myLog } from '../../utils/log';
|
|
6
|
-
import { Alert } from 'react-native';
|
|
7
6
|
import selfieStore from '../selfie/SelfieStore';
|
|
7
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
8
8
|
class Store {
|
|
9
9
|
@observable photos = [];
|
|
10
10
|
@observable interval;
|
|
@@ -77,17 +77,23 @@ class Store {
|
|
|
77
77
|
if (response.data.meta.errorCode === 200) {
|
|
78
78
|
if (onSuccess) onSuccess();
|
|
79
79
|
} else {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
AlertGlobal.show({
|
|
81
|
+
type: 'warning',
|
|
82
|
+
title: 'Thông báo',
|
|
83
|
+
message: response.data.meta.errorMessage,
|
|
84
|
+
primaryText: 'Xác nhận',
|
|
85
|
+
onPrimaryPress: () => {
|
|
86
|
+
if (onSuccess) onSuccess();
|
|
86
87
|
},
|
|
87
|
-
|
|
88
|
+
});
|
|
88
89
|
}
|
|
89
90
|
} else {
|
|
90
|
-
|
|
91
|
+
AlertGlobal.show({
|
|
92
|
+
type: 'warning',
|
|
93
|
+
title: 'Thông báo',
|
|
94
|
+
message: 'Có lỗi không mong muốn xảy ra',
|
|
95
|
+
primaryText: 'Đóng',
|
|
96
|
+
});
|
|
91
97
|
}
|
|
92
98
|
} catch (error) {
|
|
93
99
|
console.log();
|
|
@@ -105,10 +111,20 @@ class Store {
|
|
|
105
111
|
this.hintAction = response.data?.data?.listActs[0];
|
|
106
112
|
onSuccess();
|
|
107
113
|
} else {
|
|
108
|
-
|
|
114
|
+
AlertGlobal.show({
|
|
115
|
+
type: 'warning',
|
|
116
|
+
title: 'Thông báo',
|
|
117
|
+
message: response.data?.meta?.errorMessage,
|
|
118
|
+
primaryText: 'Đóng',
|
|
119
|
+
});
|
|
109
120
|
}
|
|
110
121
|
} else {
|
|
111
|
-
|
|
122
|
+
AlertGlobal.show({
|
|
123
|
+
type: 'warning',
|
|
124
|
+
title: 'Thông báo',
|
|
125
|
+
message: 'Có lỗi không mong muốn xảy ra',
|
|
126
|
+
primaryText: 'Đóng',
|
|
127
|
+
});
|
|
112
128
|
}
|
|
113
129
|
} catch (error) {
|
|
114
130
|
console.log(error);
|
|
@@ -123,10 +139,20 @@ class Store {
|
|
|
123
139
|
if (response.data?.meta?.errorCode === 200) {
|
|
124
140
|
onSuccess(response.data.data);
|
|
125
141
|
} else {
|
|
126
|
-
|
|
142
|
+
AlertGlobal.show({
|
|
143
|
+
type: 'warning',
|
|
144
|
+
title: 'Thông báo',
|
|
145
|
+
message: response.data?.meta?.errorMessage,
|
|
146
|
+
primaryText: 'Đóng',
|
|
147
|
+
});
|
|
127
148
|
}
|
|
128
149
|
} else {
|
|
129
|
-
|
|
150
|
+
AlertGlobal.show({
|
|
151
|
+
type: 'warning',
|
|
152
|
+
title: 'Thông báo',
|
|
153
|
+
message: 'Có lỗi không mong muốn xảy ra',
|
|
154
|
+
primaryText: 'Đóng',
|
|
155
|
+
});
|
|
130
156
|
}
|
|
131
157
|
} catch (error) {
|
|
132
158
|
console.log(error);
|
|
@@ -187,55 +213,53 @@ class Store {
|
|
|
187
213
|
this.hintAction = this.listAction[0];
|
|
188
214
|
if (onSuccess) onSuccess();
|
|
189
215
|
} else {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
216
|
+
AlertGlobal.show({
|
|
217
|
+
type: 'warning',
|
|
218
|
+
title: 'Thông báo',
|
|
219
|
+
message:
|
|
220
|
+
response.data.meta?.errorMessage ||
|
|
193
221
|
'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
]
|
|
202
|
-
);
|
|
222
|
+
primaryText: 'Thử lại',
|
|
223
|
+
onPrimaryPress: () => {
|
|
224
|
+
if (onError) onError();
|
|
225
|
+
},
|
|
226
|
+
});
|
|
203
227
|
}
|
|
204
228
|
} else {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
229
|
+
AlertGlobal.show({
|
|
230
|
+
type: 'warning',
|
|
231
|
+
title: 'Thông báo',
|
|
232
|
+
message:
|
|
233
|
+
response.data.meta?.errorMessage ||
|
|
208
234
|
'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
text: 'Thử lại',
|
|
212
|
-
onPress: () => {
|
|
213
|
-
if (onError) onError();
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
]
|
|
217
|
-
);
|
|
218
|
-
}
|
|
219
|
-
} else {
|
|
220
|
-
Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau!', [
|
|
221
|
-
{
|
|
222
|
-
text: 'Thử lại',
|
|
223
|
-
onPress: () => {
|
|
235
|
+
primaryText: 'Thử lại',
|
|
236
|
+
onPrimaryPress: () => {
|
|
224
237
|
if (onError) onError();
|
|
225
238
|
},
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
} else {
|
|
242
|
+
AlertGlobal.show({
|
|
243
|
+
type: 'warning',
|
|
244
|
+
title: 'Thông báo',
|
|
245
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
246
|
+
primaryText: 'Thử lại',
|
|
247
|
+
onPrimaryPress: () => {
|
|
248
|
+
if (onError) onError();
|
|
226
249
|
},
|
|
227
|
-
|
|
250
|
+
});
|
|
228
251
|
}
|
|
229
252
|
} catch (error) {
|
|
230
253
|
this.isLoading = false;
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
254
|
+
AlertGlobal.show({
|
|
255
|
+
type: 'warning',
|
|
256
|
+
title: 'Thông báo',
|
|
257
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
258
|
+
primaryText: 'Thử lại',
|
|
259
|
+
onPrimaryPress: () => {
|
|
260
|
+
if (onError) onError();
|
|
237
261
|
},
|
|
238
|
-
|
|
262
|
+
});
|
|
239
263
|
}
|
|
240
264
|
}
|
|
241
265
|
|
|
@@ -274,55 +298,53 @@ class Store {
|
|
|
274
298
|
this.hintAction = this.listAction[0];
|
|
275
299
|
if (onSuccess) onSuccess();
|
|
276
300
|
} else {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
301
|
+
AlertGlobal.show({
|
|
302
|
+
type: 'warning',
|
|
303
|
+
title: 'Thông báo',
|
|
304
|
+
message:
|
|
305
|
+
response.data.meta?.errorMessage ||
|
|
280
306
|
'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
},
|
|
287
|
-
},
|
|
288
|
-
]
|
|
289
|
-
);
|
|
307
|
+
primaryText: 'Thử lại',
|
|
308
|
+
onPrimaryPress: () => {
|
|
309
|
+
if (onError) onError();
|
|
310
|
+
},
|
|
311
|
+
});
|
|
290
312
|
}
|
|
291
313
|
} else {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
314
|
+
AlertGlobal.show({
|
|
315
|
+
type: 'warning',
|
|
316
|
+
title: 'Thông báo',
|
|
317
|
+
message:
|
|
318
|
+
response.data.meta?.errorMessage ||
|
|
295
319
|
'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
text: 'Thử lại',
|
|
299
|
-
onPress: () => {
|
|
300
|
-
if (onError) onError();
|
|
301
|
-
},
|
|
302
|
-
},
|
|
303
|
-
]
|
|
304
|
-
);
|
|
305
|
-
}
|
|
306
|
-
} else {
|
|
307
|
-
Alert.alert('Thông báo', 'Có lỗi xảy ra. Vui lòng thử lại sau!', [
|
|
308
|
-
{
|
|
309
|
-
text: 'Thử lại',
|
|
310
|
-
onPress: () => {
|
|
320
|
+
primaryText: 'Thử lại',
|
|
321
|
+
onPrimaryPress: () => {
|
|
311
322
|
if (onError) onError();
|
|
312
323
|
},
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
} else {
|
|
327
|
+
AlertGlobal.show({
|
|
328
|
+
type: 'warning',
|
|
329
|
+
title: 'Thông báo',
|
|
330
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
331
|
+
primaryText: 'Thử lại',
|
|
332
|
+
onPrimaryPress: () => {
|
|
333
|
+
if (onError) onError();
|
|
313
334
|
},
|
|
314
|
-
|
|
335
|
+
});
|
|
315
336
|
}
|
|
316
337
|
} catch (error) {
|
|
317
338
|
this.isLoading = false;
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
339
|
+
AlertGlobal.show({
|
|
340
|
+
type: 'warning',
|
|
341
|
+
title: 'Thông báo',
|
|
342
|
+
message: 'Có lỗi xảy ra. Vui lòng thử lại sau!',
|
|
343
|
+
primaryText: 'Thử lại',
|
|
344
|
+
onPrimaryPress: () => {
|
|
345
|
+
if (onError) onError();
|
|
324
346
|
},
|
|
325
|
-
|
|
347
|
+
});
|
|
326
348
|
}
|
|
327
349
|
}
|
|
328
350
|
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import React, { useState, useEffect, useRef } from 'react';
|
|
3
3
|
import {
|
|
4
4
|
ActivityIndicator,
|
|
5
|
-
Alert,
|
|
6
5
|
Dimensions,
|
|
7
6
|
Modal,
|
|
8
7
|
Platform,
|
|
@@ -34,6 +33,7 @@ import { ScreenNames } from '../../navigation';
|
|
|
34
33
|
import Slack from 'react-native-slack-webhook';
|
|
35
34
|
import Loading from '../../components/Loading';
|
|
36
35
|
import { createThumbnail } from 'react-native-create-thumbnail';
|
|
36
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
37
37
|
|
|
38
38
|
const webHookURL =
|
|
39
39
|
'https://hooks.slack.com/services/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';
|
|
@@ -95,17 +95,18 @@ export const LiveNess = observer(function LiveNess(props: any) {
|
|
|
95
95
|
);
|
|
96
96
|
} catch (e) {}
|
|
97
97
|
setIsLoading(false);
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
98
|
+
AlertGlobal.show({
|
|
99
|
+
type: 'warning',
|
|
100
|
+
title: 'Thông báo',
|
|
101
|
+
message: errorMessage,
|
|
102
|
+
primaryText: 'Đồng ý',
|
|
103
|
+
onPrimaryPress: () => {
|
|
104
|
+
setPassPermission(false);
|
|
105
|
+
setTimeout(() => {
|
|
106
|
+
setPassPermission(true);
|
|
107
|
+
}, 100);
|
|
107
108
|
},
|
|
108
|
-
|
|
109
|
+
});
|
|
109
110
|
}
|
|
110
111
|
);
|
|
111
112
|
} catch (e) {
|
|
@@ -192,10 +193,12 @@ export const LiveNess = observer(function LiveNess(props: any) {
|
|
|
192
193
|
Platform.OS === 'ios' ? data.path : 'file://' + data.path
|
|
193
194
|
);
|
|
194
195
|
} else {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
'
|
|
198
|
-
|
|
196
|
+
AlertGlobal.show({
|
|
197
|
+
type: 'warning',
|
|
198
|
+
title: 'Thông báo',
|
|
199
|
+
message: 'Quá trình xác thực thất bại. Vui lòng bắt đầu lại.',
|
|
200
|
+
primaryText: 'Đóng',
|
|
201
|
+
});
|
|
199
202
|
}
|
|
200
203
|
}
|
|
201
204
|
};
|
|
@@ -208,51 +211,49 @@ export const LiveNess = observer(function LiveNess(props: any) {
|
|
|
208
211
|
).then((result) => {
|
|
209
212
|
switch (result) {
|
|
210
213
|
case RESULTS.UNAVAILABLE:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
'
|
|
214
|
-
|
|
215
|
-
|
|
214
|
+
AlertGlobal.show({
|
|
215
|
+
type: 'warning',
|
|
216
|
+
title: 'Thông báo',
|
|
217
|
+
message:
|
|
218
|
+
'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ị!',
|
|
219
|
+
primaryText: 'Đồng ý',
|
|
220
|
+
});
|
|
216
221
|
break;
|
|
217
222
|
case RESULTS.DENIED:
|
|
218
223
|
console.log(
|
|
219
224
|
'The permission has not been requested / is denied but requestable'
|
|
220
225
|
);
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
'
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
]
|
|
236
|
-
);
|
|
226
|
+
AlertGlobal.show({
|
|
227
|
+
type: 'warning',
|
|
228
|
+
title: 'Thông báo',
|
|
229
|
+
message:
|
|
230
|
+
'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',
|
|
231
|
+
primaryText: 'Đồng ý',
|
|
232
|
+
onPrimaryPress: () => {
|
|
233
|
+
if (Platform.OS === 'ios') {
|
|
234
|
+
openSettings();
|
|
235
|
+
} else {
|
|
236
|
+
requestPermissions();
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
});
|
|
237
240
|
break;
|
|
238
241
|
case RESULTS.LIMITED:
|
|
239
242
|
console.log('The permission is limited: some actions are possible');
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
'
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
]
|
|
255
|
-
);
|
|
243
|
+
AlertGlobal.show({
|
|
244
|
+
type: 'warning',
|
|
245
|
+
title: 'Thông báo',
|
|
246
|
+
message:
|
|
247
|
+
'Quyền máy ảnh bị hạn chế. Vui lòng kiểm tra lại để tiếp tục!',
|
|
248
|
+
primaryText: 'Đồng ý',
|
|
249
|
+
onPrimaryPress: () => {
|
|
250
|
+
if (Platform.OS === 'ios') {
|
|
251
|
+
openSettings();
|
|
252
|
+
} else {
|
|
253
|
+
requestPermissions();
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
});
|
|
256
257
|
break;
|
|
257
258
|
case RESULTS.GRANTED:
|
|
258
259
|
console.log('The permission is granted');
|
|
@@ -260,22 +261,20 @@ export const LiveNess = observer(function LiveNess(props: any) {
|
|
|
260
261
|
break;
|
|
261
262
|
case RESULTS.BLOCKED:
|
|
262
263
|
console.log('The permission is denied and not requestable anymore');
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
'
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
]
|
|
278
|
-
);
|
|
264
|
+
AlertGlobal.show({
|
|
265
|
+
type: 'warning',
|
|
266
|
+
title: 'Thông báo',
|
|
267
|
+
message:
|
|
268
|
+
'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',
|
|
269
|
+
primaryText: 'Đồng ý',
|
|
270
|
+
onPrimaryPress: () => {
|
|
271
|
+
if (Platform.OS === 'ios') {
|
|
272
|
+
openSettings();
|
|
273
|
+
} else {
|
|
274
|
+
openSettings();
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
});
|
|
279
278
|
break;
|
|
280
279
|
}
|
|
281
280
|
});
|
|
@@ -4,7 +4,6 @@ import { CommonActions, useNavigation } from '@react-navigation/native';
|
|
|
4
4
|
import { Observer, observer } from 'mobx-react-lite';
|
|
5
5
|
import {
|
|
6
6
|
ActivityIndicator,
|
|
7
|
-
Alert,
|
|
8
7
|
Dimensions,
|
|
9
8
|
Image,
|
|
10
9
|
Modal,
|
|
@@ -35,6 +34,7 @@ import { createThumbnail } from 'react-native-create-thumbnail';
|
|
|
35
34
|
import appStore from '../../AppStore';
|
|
36
35
|
import { logEvent, logEventFb } from '../../utils';
|
|
37
36
|
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
37
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
38
38
|
|
|
39
39
|
const { width: windowWidth } = Dimensions.get('window');
|
|
40
40
|
|
|
@@ -163,32 +163,32 @@ export const LivenessV2 = observer(function LivenessV2(props: any) {
|
|
|
163
163
|
console.log(
|
|
164
164
|
'This feature is not available (on this device / in this context)'
|
|
165
165
|
);
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
'
|
|
169
|
-
|
|
170
|
-
|
|
166
|
+
AlertGlobal.show({
|
|
167
|
+
type: 'warning',
|
|
168
|
+
title: 'Thông báo',
|
|
169
|
+
message:
|
|
170
|
+
'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ị!',
|
|
171
|
+
primaryText: 'Đồng ý',
|
|
172
|
+
});
|
|
171
173
|
break;
|
|
172
174
|
case RESULTS.DENIED:
|
|
173
175
|
console.log(
|
|
174
176
|
'The permission has not been requested / is denied but requestable'
|
|
175
177
|
);
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
'
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
]
|
|
191
|
-
);
|
|
178
|
+
AlertGlobal.show({
|
|
179
|
+
type: 'warning',
|
|
180
|
+
title: 'Thông báo',
|
|
181
|
+
message:
|
|
182
|
+
'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',
|
|
183
|
+
primaryText: 'Đồng ý',
|
|
184
|
+
onPrimaryPress: () => {
|
|
185
|
+
if (Platform.OS === 'ios') {
|
|
186
|
+
openSettings();
|
|
187
|
+
} else {
|
|
188
|
+
requestPermissions();
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
});
|
|
192
192
|
break;
|
|
193
193
|
|
|
194
194
|
case RESULTS.GRANTED:
|
|
@@ -197,22 +197,20 @@ export const LivenessV2 = observer(function LivenessV2(props: any) {
|
|
|
197
197
|
break;
|
|
198
198
|
case RESULTS.BLOCKED:
|
|
199
199
|
console.log('The permission is denied and not requestable anymore');
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
'
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
]
|
|
215
|
-
);
|
|
200
|
+
AlertGlobal.show({
|
|
201
|
+
type: 'warning',
|
|
202
|
+
title: 'Thông báo',
|
|
203
|
+
message:
|
|
204
|
+
'Bạn đã từ chối quyền máy ảnh. Vui lòng cấp quyền máy ảnh để tiếp tục!',
|
|
205
|
+
primaryText: 'Đồng ý',
|
|
206
|
+
onPrimaryPress: () => {
|
|
207
|
+
if (Platform.OS === 'ios') {
|
|
208
|
+
openSettings();
|
|
209
|
+
} else {
|
|
210
|
+
openSettings();
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
});
|
|
216
214
|
break;
|
|
217
215
|
}
|
|
218
216
|
});
|
|
@@ -253,14 +251,15 @@ export const LivenessV2 = observer(function LivenessV2(props: any) {
|
|
|
253
251
|
} catch (error) {
|
|
254
252
|
setIsLoading(false);
|
|
255
253
|
console.log(error, 'LỖI');
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
254
|
+
AlertGlobal.show({
|
|
255
|
+
type: 'warning',
|
|
256
|
+
title: 'Thông báo',
|
|
257
|
+
message: 'Quá trình xử lý hình ảnh thất bại',
|
|
258
|
+
primaryText: 'Thử lại',
|
|
259
|
+
onPrimaryPress: () => {
|
|
260
|
+
startLiveness();
|
|
262
261
|
},
|
|
263
|
-
|
|
262
|
+
});
|
|
264
263
|
}
|
|
265
264
|
};
|
|
266
265
|
|
|
@@ -354,14 +353,15 @@ export const LivenessV2 = observer(function LivenessV2(props: any) {
|
|
|
354
353
|
uploadLiveness(thump);
|
|
355
354
|
}
|
|
356
355
|
} else {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
356
|
+
AlertGlobal.show({
|
|
357
|
+
type: 'warning',
|
|
358
|
+
title: 'Thông báo',
|
|
359
|
+
message: 'Quá trình xác thực thất bại',
|
|
360
|
+
primaryText: 'Thử lại',
|
|
361
|
+
onPrimaryPress: () => {
|
|
362
|
+
startLiveness();
|
|
363
363
|
},
|
|
364
|
-
|
|
364
|
+
});
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
};
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import {
|
|
4
|
-
Alert,
|
|
5
|
-
SafeAreaView,
|
|
6
|
-
ScrollView,
|
|
7
|
-
TouchableOpacity,
|
|
8
|
-
View,
|
|
9
|
-
} from 'react-native';
|
|
3
|
+
import { SafeAreaView, ScrollView, TouchableOpacity, View } from 'react-native';
|
|
10
4
|
import { observer } from 'mobx-react-lite';
|
|
11
5
|
import {
|
|
12
6
|
useNavigation,
|
|
@@ -16,6 +10,7 @@ import {
|
|
|
16
10
|
import MHeader from '../../components/MHeader';
|
|
17
11
|
import { Api } from '../../services/api';
|
|
18
12
|
import Loading from '../../components/Loading';
|
|
13
|
+
import { AlertGlobal } from '../../components/ModalNotification/AlertGlobal';
|
|
19
14
|
import { MText } from '../../components/MText';
|
|
20
15
|
import { formatDDMMYYY, formatMoney } from '../../utils';
|
|
21
16
|
import LinearGradient from 'react-native-linear-gradient';
|
|
@@ -38,14 +33,29 @@ export const PreviewSchedulePaymentTopup = observer(
|
|
|
38
33
|
if (response.data.meta.errorCode === 200) {
|
|
39
34
|
setData(response.data.data);
|
|
40
35
|
} else {
|
|
41
|
-
|
|
36
|
+
AlertGlobal.show({
|
|
37
|
+
type: 'warning',
|
|
38
|
+
title: 'Thông báo',
|
|
39
|
+
message: response.data.meta.errorMessage,
|
|
40
|
+
primaryText: 'Đóng',
|
|
41
|
+
});
|
|
42
42
|
}
|
|
43
43
|
} else {
|
|
44
|
-
|
|
44
|
+
AlertGlobal.show({
|
|
45
|
+
type: 'warning',
|
|
46
|
+
title: 'Thông báo',
|
|
47
|
+
message: 'Có lỗi xảy ra, vui lòng thử lại sau',
|
|
48
|
+
primaryText: 'Đóng',
|
|
49
|
+
});
|
|
45
50
|
}
|
|
46
51
|
} catch (error) {
|
|
47
52
|
setIsLoading(false);
|
|
48
|
-
|
|
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
|
+
});
|
|
49
59
|
}
|
|
50
60
|
};
|
|
51
61
|
React.useEffect(() => {
|