react-native-timacare 3.1.47 → 3.1.49
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/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +4 -47
- 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 +29 -4
- package/lib/commonjs/screens/liveness-v2/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 +15 -2
- 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 +29 -4
- package/lib/commonjs/screens/toan-trinh-so/ReviewInformationOther.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 +15 -2
- 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 +15 -2
- 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 +15 -2
- 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 +14 -2
- 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 +32 -2
- package/lib/commonjs/screens/toan-trinh-so/TopupLoanInfo.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 +29 -4
- 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 +15 -2
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationFront.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/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/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/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/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/liveness-v2/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/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/VehicleRegistration.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationFront.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/screens/home/index.tsx +4 -47
- package/src/screens/liveness-v2/index.tsx +29 -4
- package/src/screens/toan-trinh-so/ReviewInformation.tsx +15 -2
- package/src/screens/toan-trinh-so/ReviewInformationOther.tsx +29 -4
- package/src/screens/toan-trinh-so/TTSNationalIDFront.tsx +15 -2
- package/src/screens/toan-trinh-so/TTSOTP.tsx +15 -2
- package/src/screens/toan-trinh-so/TTSSelfie.tsx +15 -2
- package/src/screens/toan-trinh-so/TTSSignLoan.tsx +14 -2
- package/src/screens/toan-trinh-so/TopupLoanInfo.tsx +32 -2
- package/src/screens/toan-trinh-so/VehicleRegistration.tsx +29 -4
- package/src/screens/toan-trinh-so/VehicleRegistrationFront.tsx +15 -2
|
@@ -154,7 +154,10 @@ export const Home = observer(function Home() {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
|
-
if (
|
|
157
|
+
if (
|
|
158
|
+
(item?.typeLoan === 5 || item?.typeLoan === 6) &&
|
|
159
|
+
item.step === 5
|
|
160
|
+
) {
|
|
158
161
|
setLoan(item);
|
|
159
162
|
setTimeout(() => {
|
|
160
163
|
setShowModal3(true);
|
|
@@ -172,52 +175,6 @@ export const Home = observer(function Home() {
|
|
|
172
175
|
console.log(error);
|
|
173
176
|
setIsLoading(false);
|
|
174
177
|
}
|
|
175
|
-
|
|
176
|
-
// homeStore.getListLoanPending(
|
|
177
|
-
// async (res) => {
|
|
178
|
-
// setListLoan(res);
|
|
179
|
-
// if (res) {
|
|
180
|
-
// Promise.all(
|
|
181
|
-
// res?.map(async (item) => {
|
|
182
|
-
// homeStore.getCheckEKYC(
|
|
183
|
-
// { loanBriefId: item.id },
|
|
184
|
-
// (response) => {}
|
|
185
|
-
// );
|
|
186
|
-
// if (item?.productId !== 8) {
|
|
187
|
-
// if (item?.messageErrorCIMB && item.messageErrorCIMB !== '') {
|
|
188
|
-
// setLoanCimb(item);
|
|
189
|
-
// setTimeout(() => {
|
|
190
|
-
// setShowModal(true);
|
|
191
|
-
// }, 200);
|
|
192
|
-
// }
|
|
193
|
-
// if (
|
|
194
|
-
// (item?.typeLoan === 4 || item?.typeLoan === 2) &&
|
|
195
|
-
// item?.isCimbApproveFull !== null
|
|
196
|
-
// ) {
|
|
197
|
-
// const checkShow = await load(`SHOW_${item?.id}`);
|
|
198
|
-
// if (!checkShow || checkShow !== true) {
|
|
199
|
-
// setLoanCimb(item);
|
|
200
|
-
// setTimeout(() => {
|
|
201
|
-
// setShowModal2(true);
|
|
202
|
-
// }, 200);
|
|
203
|
-
// }
|
|
204
|
-
// }
|
|
205
|
-
// }
|
|
206
|
-
// if (item?.typeLoan === 5 && item.step === 5) {
|
|
207
|
-
// setLoan(item);
|
|
208
|
-
// setTimeout(() => {
|
|
209
|
-
// setShowModal3(true);
|
|
210
|
-
// }, 300);
|
|
211
|
-
// }
|
|
212
|
-
// })
|
|
213
|
-
// );
|
|
214
|
-
// }
|
|
215
|
-
// setIsLoading(false);
|
|
216
|
-
// },
|
|
217
|
-
// () => {
|
|
218
|
-
// setIsLoading(false);
|
|
219
|
-
// }
|
|
220
|
-
// );
|
|
221
178
|
};
|
|
222
179
|
|
|
223
180
|
useEffect(() => {
|
|
@@ -32,6 +32,7 @@ import { color } from '../../theme';
|
|
|
32
32
|
import { createThumbnail } from 'react-native-create-thumbnail';
|
|
33
33
|
import analytics from '@react-native-firebase/analytics';
|
|
34
34
|
import { AppEventsLogger } from 'react-native-fbsdk-next';
|
|
35
|
+
import appStore from '../../AppStore';
|
|
35
36
|
|
|
36
37
|
const { width: windowWidth } = Dimensions.get('window');
|
|
37
38
|
|
|
@@ -391,8 +392,20 @@ export const LivenessV2 = observer(function LivenessV2(props: any) {
|
|
|
391
392
|
};
|
|
392
393
|
|
|
393
394
|
useEffect(async () => {
|
|
394
|
-
await analytics().logEvent('ekyc_started', {
|
|
395
|
-
|
|
395
|
+
await analytics().logEvent('ekyc_started', {
|
|
396
|
+
event: 'ekyc_started',
|
|
397
|
+
createdAt: new Date(),
|
|
398
|
+
deviceId: appStore.deviceId,
|
|
399
|
+
loanId: loan?.id,
|
|
400
|
+
utmSource: loan?.utmSource,
|
|
401
|
+
});
|
|
402
|
+
await AppEventsLogger().logEvent('ekyc_started', {
|
|
403
|
+
event: 'ekyc_started',
|
|
404
|
+
createdAt: new Date(),
|
|
405
|
+
deviceId: appStore.deviceId,
|
|
406
|
+
loanId: loan?.id,
|
|
407
|
+
utmSource: loan?.utmSource,
|
|
408
|
+
});
|
|
396
409
|
}, []);
|
|
397
410
|
|
|
398
411
|
return (
|
|
@@ -573,8 +586,20 @@ export const LivenessV2 = observer(function LivenessV2(props: any) {
|
|
|
573
586
|
justifyContent: 'center',
|
|
574
587
|
}}
|
|
575
588
|
onPress={async () => {
|
|
576
|
-
await analytics().logEvent('ekyc_completed', {
|
|
577
|
-
|
|
589
|
+
await analytics().logEvent('ekyc_completed', {
|
|
590
|
+
event: 'ekyc_completed',
|
|
591
|
+
createdAt: new Date(),
|
|
592
|
+
deviceId: appStore.deviceId,
|
|
593
|
+
loanId: loan?.id,
|
|
594
|
+
utmSource: loan?.utmSource,
|
|
595
|
+
});
|
|
596
|
+
await AppEventsLogger().logEvent('ekyc_completed', {
|
|
597
|
+
event: 'ekyc_completed',
|
|
598
|
+
createdAt: new Date(),
|
|
599
|
+
deviceId: appStore.deviceId,
|
|
600
|
+
loanId: loan?.id,
|
|
601
|
+
utmSource: loan?.utmSource,
|
|
602
|
+
});
|
|
578
603
|
livenessStore.ekycSuccess = false;
|
|
579
604
|
if (loan?.typeLoan === 5) {
|
|
580
605
|
navigation.dispatch(
|
|
@@ -30,6 +30,7 @@ import Loading from '../../components/Loading';
|
|
|
30
30
|
import moment from 'moment';
|
|
31
31
|
import analytics from '@react-native-firebase/analytics';
|
|
32
32
|
import { AppEventsLogger } from 'react-native-fbsdk-next';
|
|
33
|
+
import appStore from '../../AppStore';
|
|
33
34
|
|
|
34
35
|
export default function ReviewInformation(props) {
|
|
35
36
|
const navigation = useNavigation();
|
|
@@ -248,8 +249,20 @@ export default function ReviewInformation(props) {
|
|
|
248
249
|
getData();
|
|
249
250
|
ttsStore.getListBank();
|
|
250
251
|
ttsStore.getRelationship();
|
|
251
|
-
await analytics().logEvent('thongtinvay_started', {
|
|
252
|
-
|
|
252
|
+
await analytics().logEvent('thongtinvay_started', {
|
|
253
|
+
event: 'thongtinvay_started',
|
|
254
|
+
createdAt: new Date(),
|
|
255
|
+
deviceId: appStore.deviceId,
|
|
256
|
+
loanId: props.route?.params?.loan?.id,
|
|
257
|
+
utmSource: props.route?.params?.loan?.utmSource,
|
|
258
|
+
});
|
|
259
|
+
await AppEventsLogger().logEvent('thongtinvay_started', {
|
|
260
|
+
event: 'thongtinvay_started',
|
|
261
|
+
createdAt: new Date(),
|
|
262
|
+
deviceId: appStore.deviceId,
|
|
263
|
+
loanId: props.route?.params?.loan?.id,
|
|
264
|
+
utmSource: props.route?.params?.loan?.utmSource,
|
|
265
|
+
});
|
|
253
266
|
}, []);
|
|
254
267
|
|
|
255
268
|
return (
|
|
@@ -32,6 +32,7 @@ import Loading from '../../components/Loading';
|
|
|
32
32
|
import * as yup from 'yup';
|
|
33
33
|
import analytics from '@react-native-firebase/analytics';
|
|
34
34
|
import { AppEventsLogger } from 'react-native-fbsdk-next';
|
|
35
|
+
import appStore from '../../AppStore';
|
|
35
36
|
|
|
36
37
|
export default function ReviewInformationOther(props) {
|
|
37
38
|
const navigation = useNavigation();
|
|
@@ -191,10 +192,34 @@ export default function ReviewInformationOther(props) {
|
|
|
191
192
|
setIsLoading(false);
|
|
192
193
|
if (response.kind === 'ok') {
|
|
193
194
|
if (response.data?.meta?.errorCode === 200) {
|
|
194
|
-
await analytics().logEvent('lead', {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
await analytics().logEvent('lead', {
|
|
196
|
+
event: 'lead',
|
|
197
|
+
createdAt: new Date(),
|
|
198
|
+
deviceId: appStore.deviceId,
|
|
199
|
+
loanId: props.route?.params?.loan?.id,
|
|
200
|
+
utmSource: props.route?.params?.loan?.utmSource,
|
|
201
|
+
});
|
|
202
|
+
await AppEventsLogger().logEvent('lead', {
|
|
203
|
+
event: 'lead',
|
|
204
|
+
createdAt: new Date(),
|
|
205
|
+
deviceId: appStore.deviceId,
|
|
206
|
+
loanId: props.route?.params?.loan?.id,
|
|
207
|
+
utmSource: props.route?.params?.loan?.utmSource,
|
|
208
|
+
});
|
|
209
|
+
await analytics().logEvent('thongtinvay_completed', {
|
|
210
|
+
event: 'thongtinvay_completed',
|
|
211
|
+
createdAt: new Date(),
|
|
212
|
+
deviceId: appStore.deviceId,
|
|
213
|
+
loanId: props.route?.params?.loan?.id,
|
|
214
|
+
utmSource: props.route?.params?.loan?.utmSource,
|
|
215
|
+
});
|
|
216
|
+
await AppEventsLogger().logEvent('thongtinvay_completed', {
|
|
217
|
+
event: 'thongtinvay_completed',
|
|
218
|
+
createdAt: new Date(),
|
|
219
|
+
deviceId: appStore.deviceId,
|
|
220
|
+
loanId: props.route?.params?.loan?.id,
|
|
221
|
+
utmSource: props.route?.params?.loan?.utmSource,
|
|
222
|
+
});
|
|
198
223
|
Alert.alert('Thông báo', 'Cập nhật thông tin thành công', [
|
|
199
224
|
{
|
|
200
225
|
text: 'Đồng ý',
|
|
@@ -30,6 +30,7 @@ import { Api } from '../../services/api';
|
|
|
30
30
|
import Loading from '../../components/Loading';
|
|
31
31
|
import analytics from '@react-native-firebase/analytics';
|
|
32
32
|
import { AppEventsLogger } from 'react-native-fbsdk-next';
|
|
33
|
+
import appStore from '../../AppStore';
|
|
33
34
|
|
|
34
35
|
const logoView: ImageStyle = {
|
|
35
36
|
position: 'absolute',
|
|
@@ -51,8 +52,20 @@ export const TTSNationalIDFront = observer(function TTSNationalIDFront(props) {
|
|
|
51
52
|
if (props?.route?.params?.uri) {
|
|
52
53
|
setPhoto(props?.route?.params?.uri);
|
|
53
54
|
}
|
|
54
|
-
await analytics().logEvent('cccd_started', {
|
|
55
|
-
|
|
55
|
+
await analytics().logEvent('cccd_started', {
|
|
56
|
+
event: 'cccd_started',
|
|
57
|
+
createdAt: new Date(),
|
|
58
|
+
deviceId: appStore.deviceId,
|
|
59
|
+
loanId: props.route?.params?.loan?.id,
|
|
60
|
+
utmSource: props.route?.params?.loan?.utmSource,
|
|
61
|
+
});
|
|
62
|
+
await AppEventsLogger().logEvent('cccd_started', {
|
|
63
|
+
event: 'cccd_started',
|
|
64
|
+
createdAt: new Date(),
|
|
65
|
+
deviceId: appStore.deviceId,
|
|
66
|
+
loanId: props.route?.params?.loan?.id,
|
|
67
|
+
utmSource: props.route?.params?.loan?.utmSource,
|
|
68
|
+
});
|
|
56
69
|
}, []);
|
|
57
70
|
|
|
58
71
|
const takePhoto = () => {
|
|
@@ -25,6 +25,7 @@ import { ScreenNames } from '../../navigation';
|
|
|
25
25
|
import { CommonActions, useNavigation } from '@react-navigation/native';
|
|
26
26
|
import analytics from '@react-native-firebase/analytics';
|
|
27
27
|
import { AppEventsLogger } from 'react-native-fbsdk-next';
|
|
28
|
+
import appStore from '../../AppStore';
|
|
28
29
|
|
|
29
30
|
const logoView: ImageStyle = {
|
|
30
31
|
position: 'absolute',
|
|
@@ -118,8 +119,20 @@ export default function TTSOTP({ route }: any) {
|
|
|
118
119
|
Api.getInstance().verifySign({
|
|
119
120
|
loanBriefId: loan?.id,
|
|
120
121
|
});
|
|
121
|
-
await analytics().logEvent('kyhopdong_completed', {
|
|
122
|
-
|
|
122
|
+
await analytics().logEvent('kyhopdong_completed', {
|
|
123
|
+
event: 'kyhopdong_completed',
|
|
124
|
+
createdAt: new Date(),
|
|
125
|
+
deviceId: appStore.deviceId,
|
|
126
|
+
loanId: loan?.id,
|
|
127
|
+
utmSource: loan?.utmSource,
|
|
128
|
+
});
|
|
129
|
+
await AppEventsLogger().logEvent('kyhopdong_completed', {
|
|
130
|
+
event: 'kyhopdong_completed',
|
|
131
|
+
createdAt: new Date(),
|
|
132
|
+
deviceId: appStore.deviceId,
|
|
133
|
+
loanId: loan?.id,
|
|
134
|
+
utmSource: loan?.utmSource,
|
|
135
|
+
});
|
|
123
136
|
Alert.alert('Thông báo', 'Ký hợp đồng thành công', [
|
|
124
137
|
{
|
|
125
138
|
text: 'Đồng ý',
|
|
@@ -29,6 +29,7 @@ import { ScreenNames } from '../../navigation';
|
|
|
29
29
|
import DeviceInfo from 'react-native-device-info';
|
|
30
30
|
import analytics from '@react-native-firebase/analytics';
|
|
31
31
|
import { AppEventsLogger } from 'react-native-fbsdk-next';
|
|
32
|
+
import appStore from '../../AppStore';
|
|
32
33
|
|
|
33
34
|
export default function TTSSelfie(props: any) {
|
|
34
35
|
const isFocused = useIsFocused();
|
|
@@ -126,8 +127,20 @@ export default function TTSSelfie(props: any) {
|
|
|
126
127
|
|
|
127
128
|
useEffect(async () => {
|
|
128
129
|
requestPermissions();
|
|
129
|
-
await analytics().logEvent('cccd_completed', {
|
|
130
|
-
|
|
130
|
+
await analytics().logEvent('cccd_completed', {
|
|
131
|
+
event: 'cccd_completed',
|
|
132
|
+
createdAt: new Date(),
|
|
133
|
+
deviceId: appStore.deviceId,
|
|
134
|
+
loanId: props?.route?.params?.loan?.id,
|
|
135
|
+
utmSource: props?.route?.params?.loan?.utmSource,
|
|
136
|
+
});
|
|
137
|
+
await AppEventsLogger().logEvent('cccd_completed', {
|
|
138
|
+
event: 'cccd_completed',
|
|
139
|
+
createdAt: new Date(),
|
|
140
|
+
deviceId: appStore.deviceId,
|
|
141
|
+
loanId: props?.route?.params?.loan?.id,
|
|
142
|
+
utmSource: props?.route?.params?.loan?.utmSource,
|
|
143
|
+
});
|
|
131
144
|
}, []);
|
|
132
145
|
|
|
133
146
|
useEffect(() => {
|
|
@@ -53,9 +53,21 @@ export default function TTSSignLoan(props) {
|
|
|
53
53
|
useEffect(async () => {
|
|
54
54
|
if (loan) {
|
|
55
55
|
getContract();
|
|
56
|
+
await analytics().logEvent('kyhopdong_started', {
|
|
57
|
+
event: 'kyhopdong_started',
|
|
58
|
+
createdAt: new Date(),
|
|
59
|
+
deviceId: appStore.deviceId,
|
|
60
|
+
loanId: props?.route?.params?.loan?.id,
|
|
61
|
+
utmSource: props?.route?.params?.loan?.utmSource,
|
|
62
|
+
});
|
|
63
|
+
await AppEventsLogger().logEvent('kyhopdong_started', {
|
|
64
|
+
event: 'kyhopdong_started',
|
|
65
|
+
createdAt: new Date(),
|
|
66
|
+
deviceId: appStore.deviceId,
|
|
67
|
+
loanId: props?.route?.params?.loan?.id,
|
|
68
|
+
utmSource: props?.route?.params?.loan?.utmSource,
|
|
69
|
+
});
|
|
56
70
|
}
|
|
57
|
-
await analytics().logEvent('kyhopdong_started', {});
|
|
58
|
-
await AppEventsLogger().logEvent('kyhopdong_started', {});
|
|
59
71
|
}, []);
|
|
60
72
|
|
|
61
73
|
const signLoan = () => {
|
|
@@ -29,6 +29,8 @@ import MButton from '../../components/MButton';
|
|
|
29
29
|
import LinearGradient from 'react-native-linear-gradient';
|
|
30
30
|
import moment from 'moment';
|
|
31
31
|
import * as yup from 'yup';
|
|
32
|
+
import analytics from '@react-native-firebase/analytics';
|
|
33
|
+
import { AppEventsLogger } from 'react-native-fbsdk-next';
|
|
32
34
|
|
|
33
35
|
export default function TopupLoanInfo(props) {
|
|
34
36
|
const navigation = useNavigation();
|
|
@@ -193,9 +195,23 @@ export default function TopupLoanInfo(props) {
|
|
|
193
195
|
[]
|
|
194
196
|
);
|
|
195
197
|
|
|
196
|
-
useEffect(() => {
|
|
198
|
+
useEffect(async () => {
|
|
197
199
|
getData();
|
|
198
200
|
ttsStore.getFirstPayment(props.route?.params?.loan?.id);
|
|
201
|
+
await analytics().logEvent('thongtinvay_started', {
|
|
202
|
+
event: 'thongtinvay_started',
|
|
203
|
+
createdAt: new Date(),
|
|
204
|
+
deviceId: appStore.deviceId,
|
|
205
|
+
loanId: props.route?.params?.loan?.id,
|
|
206
|
+
utmSource: props.route?.params?.loan?.utmSource,
|
|
207
|
+
});
|
|
208
|
+
await AppEventsLogger().logEvent('thongtinvay_started', {
|
|
209
|
+
event: 'thongtinvay_started',
|
|
210
|
+
createdAt: new Date(),
|
|
211
|
+
deviceId: appStore.deviceId,
|
|
212
|
+
loanId: props.route?.params?.loan?.id,
|
|
213
|
+
utmSource: props.route?.params?.loan?.utmSource,
|
|
214
|
+
});
|
|
199
215
|
}, []);
|
|
200
216
|
|
|
201
217
|
const onSubmit = async (values) => {
|
|
@@ -223,7 +239,21 @@ export default function TopupLoanInfo(props) {
|
|
|
223
239
|
Alert.alert('Thông báo', 'Cập nhật thông tin thành công', [
|
|
224
240
|
{
|
|
225
241
|
text: 'Đồng ý',
|
|
226
|
-
onPress: () => {
|
|
242
|
+
onPress: async () => {
|
|
243
|
+
await analytics().logEvent('thongtinvay_completed', {
|
|
244
|
+
event: 'thongtinvay_completed',
|
|
245
|
+
createdAt: new Date(),
|
|
246
|
+
deviceId: appStore.deviceId,
|
|
247
|
+
loanId: props.route?.params?.loan?.id,
|
|
248
|
+
utmSource: props.route?.params?.loan?.utmSource,
|
|
249
|
+
});
|
|
250
|
+
await AppEventsLogger().logEvent('thongtinvay_completed', {
|
|
251
|
+
event: 'thongtinvay_completed',
|
|
252
|
+
createdAt: new Date(),
|
|
253
|
+
deviceId: appStore.deviceId,
|
|
254
|
+
loanId: props.route?.params?.loan?.id,
|
|
255
|
+
utmSource: props.route?.params?.loan?.utmSource,
|
|
256
|
+
});
|
|
227
257
|
navigation.dispatch(
|
|
228
258
|
CommonActions.reset({
|
|
229
259
|
index: 1,
|
|
@@ -26,6 +26,7 @@ import MButton from '../../components/MButton';
|
|
|
26
26
|
import LinearGradient from 'react-native-linear-gradient';
|
|
27
27
|
import analytics from '@react-native-firebase/analytics';
|
|
28
28
|
import { AppEventsLogger } from 'react-native-fbsdk-next';
|
|
29
|
+
import appStore from '../../AppStore';
|
|
29
30
|
|
|
30
31
|
const logoView: ImageStyle = {
|
|
31
32
|
position: 'absolute',
|
|
@@ -43,10 +44,34 @@ export default function VehicleRegistration(props) {
|
|
|
43
44
|
if (props?.route?.params?.uri) {
|
|
44
45
|
setPhoto(props?.route?.params?.uri);
|
|
45
46
|
}
|
|
46
|
-
await analytics().logEvent('dangky_completed', {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
await analytics().logEvent('dangky_completed', {
|
|
48
|
+
event: 'dangky_completed',
|
|
49
|
+
createdAt: new Date(),
|
|
50
|
+
deviceId: appStore.deviceId,
|
|
51
|
+
loanId: props?.route?.params?.loan?.id,
|
|
52
|
+
utmSource: props?.route?.params?.loan?.utmSource,
|
|
53
|
+
});
|
|
54
|
+
await AppEventsLogger().logEvent('dangky_completed', {
|
|
55
|
+
event: 'dangky_completed',
|
|
56
|
+
createdAt: new Date(),
|
|
57
|
+
deviceId: appStore.deviceId,
|
|
58
|
+
loanId: props?.route?.params?.loan?.id,
|
|
59
|
+
utmSource: props?.route?.params?.loan?.utmSource,
|
|
60
|
+
});
|
|
61
|
+
await analytics().logEvent('dangkiem_started', {
|
|
62
|
+
event: 'dangkiem_started',
|
|
63
|
+
createdAt: new Date(),
|
|
64
|
+
deviceId: appStore.deviceId,
|
|
65
|
+
loanId: props?.route?.params?.loan?.id,
|
|
66
|
+
utmSource: props?.route?.params?.loan?.utmSource,
|
|
67
|
+
});
|
|
68
|
+
await AppEventsLogger().logEvent('dangkiem_started', {
|
|
69
|
+
event: 'dangkiem_started',
|
|
70
|
+
createdAt: new Date(),
|
|
71
|
+
deviceId: appStore.deviceId,
|
|
72
|
+
loanId: props?.route?.params?.loan?.id,
|
|
73
|
+
utmSource: props?.route?.params?.loan?.utmSource,
|
|
74
|
+
});
|
|
50
75
|
}, []);
|
|
51
76
|
|
|
52
77
|
const takePhoto = () => {
|
|
@@ -27,6 +27,7 @@ import { Api } from '../../services/api';
|
|
|
27
27
|
import Loading from '../../components/Loading';
|
|
28
28
|
import analytics from '@react-native-firebase/analytics';
|
|
29
29
|
import { AppEventsLogger } from 'react-native-fbsdk-next';
|
|
30
|
+
import appStore from '../../AppStore';
|
|
30
31
|
|
|
31
32
|
const logoView: ImageStyle = {
|
|
32
33
|
position: 'absolute',
|
|
@@ -44,8 +45,20 @@ export default function VehicleRegistrationFront(props: any) {
|
|
|
44
45
|
if (props?.route?.params?.uri) {
|
|
45
46
|
setPhoto(props?.route?.params?.uri);
|
|
46
47
|
}
|
|
47
|
-
await analytics().logEvent('dangky_started', {
|
|
48
|
-
|
|
48
|
+
await analytics().logEvent('dangky_started', {
|
|
49
|
+
event: 'dangky_started',
|
|
50
|
+
createdAt: new Date(),
|
|
51
|
+
deviceId: appStore.deviceId,
|
|
52
|
+
loanId: props?.route?.params?.loan?.id,
|
|
53
|
+
utmSource: props?.route?.params?.loan?.utmSource,
|
|
54
|
+
});
|
|
55
|
+
await AppEventsLogger().logEvent('dangky_started', {
|
|
56
|
+
event: 'dangky_started',
|
|
57
|
+
createdAt: new Date(),
|
|
58
|
+
deviceId: appStore.deviceId,
|
|
59
|
+
loanId: props?.route?.params?.loan?.id,
|
|
60
|
+
utmSource: props?.route?.params?.loan?.utmSource,
|
|
61
|
+
});
|
|
49
62
|
}, []);
|
|
50
63
|
|
|
51
64
|
const takePhoto = () => {
|