react-native-timacare 3.1.45 → 3.1.47
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/components/MSelect.js +1 -1
- package/lib/commonjs/components/MSelect.js.flow +1 -1
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +6 -3
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +26 -26
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js +1 -1
- package/lib/commonjs/screens/liveness-v2/index.js.flow +11 -4
- package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
- package/lib/commonjs/screens/register/index.js +1 -1
- package/lib/commonjs/screens/register/index.js.flow +1 -1
- package/lib/commonjs/screens/splash/Untitled.png +0 -0
- package/lib/commonjs/screens/splash/index.js +1 -1
- package/lib/commonjs/screens/splash/index.js.flow +6 -4
- package/lib/commonjs/screens/splash/index.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 +5 -1
- 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 +2 -1
- 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 +4 -2
- package/lib/commonjs/screens/toan-trinh-so/ReviewLoan.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 +5 -1
- 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 +4 -0
- 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 +18 -5
- 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 +5 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSignLoan.js.map +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js +2 -0
- package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.flow +858 -0
- package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.js.flow +7 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistration.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 +5 -1
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +32 -0
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/module/components/MSelect.js +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/home/index.js +1 -1
- package/lib/module/screens/home/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/register/index.js +1 -1
- package/lib/module/screens/splash/Untitled.png +0 -0
- package/lib/module/screens/splash/index.js +1 -1
- package/lib/module/screens/splash/index.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/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 +2 -0
- package/lib/module/screens/toan-trinh-so/TopupLoanInfo.js.map +1 -0
- 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/VehicleRegistrationFront.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationFront.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/navigation/primary-navigator.d.ts +1 -0
- package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
- package/lib/typescript/screens/liveness-v2/index.d.ts.map +1 -1
- package/lib/typescript/screens/splash/index.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/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 +2 -0
- package/lib/typescript/screens/toan-trinh-so/TopupLoanInfo.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistration.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts.map +1 -1
- package/lib/typescript/services/api/api.d.ts +32 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/MSelect.tsx +1 -1
- package/src/navigation/primary-navigator.tsx +6 -3
- package/src/screens/home/index.tsx +26 -26
- package/src/screens/liveness-v2/index.tsx +11 -4
- package/src/screens/register/index.tsx +1 -1
- package/src/screens/splash/Untitled.png +0 -0
- package/src/screens/splash/index.tsx +6 -4
- package/src/screens/toan-trinh-so/ReviewInformation.tsx +5 -1
- package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +2 -1
- package/src/screens/toan-trinh-so/ReviewLoan.tsx +4 -2
- package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +5 -1
- package/src/screens/toan-trinh-so/TTSOTP.tsx +4 -0
- package/src/screens/toan-trinh-so/TTSSelfie.tsx +18 -5
- package/src/screens/toan-trinh-so/TTSSignLoan.tsx +5 -1
- package/src/screens/toan-trinh-so/TopupLoanInfo.tsx +858 -0
- package/src/screens/toan-trinh-so/VehicleRegistration.tsx +7 -1
- package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +5 -1
- package/src/services/api/api.ts +32 -0
|
@@ -24,6 +24,8 @@ import { ScreenNames } from '../../navigation';
|
|
|
24
24
|
import Loading from '../../components/Loading';
|
|
25
25
|
import MButton from '../../components/MButton';
|
|
26
26
|
import LinearGradient from 'react-native-linear-gradient';
|
|
27
|
+
import analytics from '@react-native-firebase/analytics';
|
|
28
|
+
import { AppEventsLogger } from 'react-native-fbsdk-next';
|
|
27
29
|
|
|
28
30
|
const logoView: ImageStyle = {
|
|
29
31
|
position: 'absolute',
|
|
@@ -37,10 +39,14 @@ export default function VehicleRegistration(props) {
|
|
|
37
39
|
const [photo, setPhoto] = useState(null);
|
|
38
40
|
const [isLoading, setIsLoading] = useState(false);
|
|
39
41
|
|
|
40
|
-
useEffect(() => {
|
|
42
|
+
useEffect(async () => {
|
|
41
43
|
if (props?.route?.params?.uri) {
|
|
42
44
|
setPhoto(props?.route?.params?.uri);
|
|
43
45
|
}
|
|
46
|
+
await analytics().logEvent('dangky_completed', {});
|
|
47
|
+
await AppEventsLogger().logEvent('dangky_completed', {});
|
|
48
|
+
await analytics().logEvent('dangkiem_started', {});
|
|
49
|
+
await AppEventsLogger().logEvent('dangkiem_started', {});
|
|
44
50
|
}, []);
|
|
45
51
|
|
|
46
52
|
const takePhoto = () => {
|
|
@@ -25,6 +25,8 @@ import LinearGradient from 'react-native-linear-gradient';
|
|
|
25
25
|
import { ScreenNames } from '../../navigation';
|
|
26
26
|
import { Api } from '../../services/api';
|
|
27
27
|
import Loading from '../../components/Loading';
|
|
28
|
+
import analytics from '@react-native-firebase/analytics';
|
|
29
|
+
import { AppEventsLogger } from 'react-native-fbsdk-next';
|
|
28
30
|
|
|
29
31
|
const logoView: ImageStyle = {
|
|
30
32
|
position: 'absolute',
|
|
@@ -38,10 +40,12 @@ export default function VehicleRegistrationFront(props: any) {
|
|
|
38
40
|
const [photo, setPhoto] = useState(null);
|
|
39
41
|
const [isLoading, setIsLoading] = useState(false);
|
|
40
42
|
|
|
41
|
-
useEffect(() => {
|
|
43
|
+
useEffect(async () => {
|
|
42
44
|
if (props?.route?.params?.uri) {
|
|
43
45
|
setPhoto(props?.route?.params?.uri);
|
|
44
46
|
}
|
|
47
|
+
await analytics().logEvent('dangky_started', {});
|
|
48
|
+
await AppEventsLogger().logEvent('dangky_started', {});
|
|
45
49
|
}, []);
|
|
46
50
|
|
|
47
51
|
const takePhoto = () => {
|
package/src/services/api/api.ts
CHANGED
|
@@ -2943,4 +2943,36 @@ export class Api {
|
|
|
2943
2943
|
return { kind: "bad-data" }
|
|
2944
2944
|
}
|
|
2945
2945
|
}
|
|
2946
|
+
|
|
2947
|
+
async getInfoLoanTopupTts(id) {
|
|
2948
|
+
// make the api call
|
|
2949
|
+
const response: ApiResponse<any> = await this.apisauce.get(`api/v2.0/autode/get_info_borrow_topup?loanBriefId=${id}`)
|
|
2950
|
+
// the typical ways to die when calling an api
|
|
2951
|
+
if (!response.ok) {
|
|
2952
|
+
const problem = getGeneralApiProblem(response)
|
|
2953
|
+
if (problem) return problem
|
|
2954
|
+
}
|
|
2955
|
+
// transform the data into the format we are expecting
|
|
2956
|
+
try {
|
|
2957
|
+
return { kind: "ok", data: response.data }
|
|
2958
|
+
} catch {
|
|
2959
|
+
return { kind: "bad-data" }
|
|
2960
|
+
}
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2963
|
+
async updateInfoLoanTopup(body) {
|
|
2964
|
+
// make the api call
|
|
2965
|
+
const response: ApiResponse<any> = await this.apisauce.post(`api/v2.0/autode/update_info_borrow_topup`, body)
|
|
2966
|
+
// the typical ways to die when calling an api
|
|
2967
|
+
if (!response.ok) {
|
|
2968
|
+
const problem = getGeneralApiProblem(response)
|
|
2969
|
+
if (problem) return problem
|
|
2970
|
+
}
|
|
2971
|
+
// transform the data into the format we are expecting
|
|
2972
|
+
try {
|
|
2973
|
+
return { kind: "ok", data: response.data }
|
|
2974
|
+
} catch {
|
|
2975
|
+
return { kind: "bad-data" }
|
|
2976
|
+
}
|
|
2977
|
+
}
|
|
2946
2978
|
}
|