react-native-timacare 3.3.19 → 3.3.21
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/assets/tts/f88.png +0 -0
- package/lib/commonjs/assets/v3/11.svg +13 -0
- package/lib/commonjs/assets/v3/12.svg +21 -0
- package/lib/commonjs/assets/v3/index.js +1 -1
- package/lib/commonjs/assets/v3/index.js.flow +4 -0
- package/lib/commonjs/assets/v3/index.js.map +1 -1
- package/lib/commonjs/components/MSelect.js +1 -1
- package/lib/commonjs/components/MSelect.js.flow +4 -2
- package/lib/commonjs/components/MSelect.js.map +1 -1
- package/lib/commonjs/components/keyboardspace/index.js +1 -1
- package/lib/commonjs/components/keyboardspace/index.js.flow +0 -2
- package/lib/commonjs/components/keyboardspace/index.js.map +1 -1
- package/lib/commonjs/components/select/index.js +1 -1
- package/lib/commonjs/components/select/index.js.flow +4 -2
- package/lib/commonjs/components/select/index.js.map +1 -1
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +15 -0
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/DetailLoanTima.js +1 -1
- package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.flow +29 -4
- package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/Info.js +1 -1
- package/lib/commonjs/screens/detail-loan/Info.js.flow +16 -8
- package/lib/commonjs/screens/detail-loan/Info.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/Payment.js +1 -1
- package/lib/commonjs/screens/detail-loan/Payment.js.flow +19 -7
- package/lib/commonjs/screens/detail-loan/Payment.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentAll.js +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentAll.js.flow +49 -9
- package/lib/commonjs/screens/detail-loan/PaymentAll.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
- package/lib/commonjs/screens/detail-loan/PaymentInfo.js.flow +735 -85
- 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 +372 -68
- package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
- package/lib/commonjs/screens/detail-loan/index.js +1 -1
- package/lib/commonjs/screens/detail-loan/index.js.flow +37 -33
- package/lib/commonjs/screens/detail-loan/index.js.map +1 -1
- package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js +1 -1
- package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.flow +41 -12
- package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
- package/lib/commonjs/screens/guide-transfer-bank/index.js +1 -1
- package/lib/commonjs/screens/guide-transfer-bank/index.js.flow +228 -237
- package/lib/commonjs/screens/guide-transfer-bank/index.js.map +1 -1
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js +2 -0
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.flow +845 -0
- package/lib/commonjs/screens/home/ItemMotoBikeLoan.js.map +1 -0
- package/lib/commonjs/screens/home/Store.js +1 -1
- package/lib/commonjs/screens/home/Store.js.flow +4 -1
- 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 +23 -31
- 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 +4 -4
- package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
- package/lib/commonjs/screens/motobike/InfoLoanMotobike.js +2 -0
- package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.flow +674 -0
- package/lib/commonjs/screens/motobike/InfoLoanMotobike.js.map +1 -0
- package/lib/commonjs/screens/motobike/PolicyF88.js +2 -0
- package/lib/commonjs/screens/motobike/PolicyF88.js.flow +131 -0
- package/lib/commonjs/screens/motobike/PolicyF88.js.map +1 -0
- package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js +2 -0
- package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.flow +453 -0
- package/lib/commonjs/screens/motobike/ReviewLoanMotobike.js.map +1 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js +1 -1
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.js.flow +4 -0
- package/lib/commonjs/screens/toan-trinh-so/TTSSelfie.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 +28 -12
- package/lib/commonjs/screens/toan-trinh-so/VehicleRegistrationBack.js.map +1 -1
- package/lib/commonjs/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +96 -0
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/module/assets/tts/f88.png +0 -0
- package/lib/module/assets/v3/11.svg +13 -0
- package/lib/module/assets/v3/12.svg +21 -0
- package/lib/module/assets/v3/index.js +1 -1
- package/lib/module/assets/v3/index.js.map +1 -1
- package/lib/module/components/MSelect.js +1 -1
- package/lib/module/components/MSelect.js.map +1 -1
- package/lib/module/components/keyboardspace/index.js +1 -1
- package/lib/module/components/keyboardspace/index.js.map +1 -1
- package/lib/module/components/select/index.js +1 -1
- package/lib/module/components/select/index.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/detail-loan/DetailLoanTima.js +1 -1
- package/lib/module/screens/detail-loan/DetailLoanTima.js.map +1 -1
- package/lib/module/screens/detail-loan/Info.js +1 -1
- package/lib/module/screens/detail-loan/Info.js.map +1 -1
- package/lib/module/screens/detail-loan/Payment.js +1 -1
- package/lib/module/screens/detail-loan/Payment.js.map +1 -1
- package/lib/module/screens/detail-loan/PaymentAll.js +1 -1
- package/lib/module/screens/detail-loan/PaymentAll.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/index.js +1 -1
- package/lib/module/screens/detail-loan/index.js.map +1 -1
- package/lib/module/screens/guide-transfer-bank/TransferDetail.js +1 -1
- package/lib/module/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
- package/lib/module/screens/guide-transfer-bank/index.js +1 -1
- package/lib/module/screens/guide-transfer-bank/index.js.map +1 -1
- package/lib/module/screens/home/ItemMotoBikeLoan.js +2 -0
- package/lib/module/screens/home/ItemMotoBikeLoan.js.map +1 -0
- 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-v2/index.js +1 -1
- package/lib/module/screens/liveness-v2/index.js.map +1 -1
- package/lib/module/screens/motobike/InfoLoanMotobike.js +2 -0
- package/lib/module/screens/motobike/InfoLoanMotobike.js.map +1 -0
- package/lib/module/screens/motobike/PolicyF88.js +2 -0
- package/lib/module/screens/motobike/PolicyF88.js.map +1 -0
- package/lib/module/screens/motobike/ReviewLoanMotobike.js +2 -0
- package/lib/module/screens/motobike/ReviewLoanMotobike.js.map +1 -0
- 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/VehicleRegistrationBack.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleRegistrationBack.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/assets/v3/index.d.ts +3 -1
- package/lib/typescript/assets/v3/index.d.ts.map +1 -1
- package/lib/typescript/components/MSelect.d.ts.map +1 -1
- package/lib/typescript/components/keyboardspace/index.d.ts.map +1 -1
- package/lib/typescript/components/select/index.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/detail-loan/DetailLoanTima.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/Info.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/Payment.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/PaymentAll.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/PaymentInfo.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/ShowQrCode.d.ts.map +1 -1
- package/lib/typescript/screens/detail-loan/index.d.ts.map +1 -1
- package/lib/typescript/screens/guide-transfer-bank/TransferDetail.d.ts.map +1 -1
- package/lib/typescript/screens/guide-transfer-bank/index.d.ts.map +1 -1
- package/lib/typescript/screens/home/ItemMotoBikeLoan.d.ts +8 -0
- package/lib/typescript/screens/home/ItemMotoBikeLoan.d.ts.map +1 -0
- 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/motobike/InfoLoanMotobike.d.ts +2 -0
- package/lib/typescript/screens/motobike/InfoLoanMotobike.d.ts.map +1 -0
- package/lib/typescript/screens/motobike/PolicyF88.d.ts +2 -0
- package/lib/typescript/screens/motobike/PolicyF88.d.ts.map +1 -0
- package/lib/typescript/screens/motobike/ReviewLoanMotobike.d.ts +2 -0
- package/lib/typescript/screens/motobike/ReviewLoanMotobike.d.ts.map +1 -0
- package/lib/typescript/screens/toan-trinh-so/TTSSelfie.d.ts.map +1 -1
- package/lib/typescript/screens/toan-trinh-so/VehicleRegistrationBack.d.ts.map +1 -1
- package/lib/typescript/services/api/api.d.ts +96 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/assets/tts/f88.png +0 -0
- package/src/assets/v3/11.svg +13 -0
- package/src/assets/v3/12.svg +21 -0
- package/src/assets/v3/index.tsx +4 -0
- package/src/components/MSelect.tsx +4 -2
- package/src/components/keyboardspace/index.tsx +0 -2
- package/src/components/select/index.tsx +4 -2
- package/src/navigation/primary-navigator.tsx +15 -0
- package/src/screens/detail-loan/DetailLoanTima.tsx +29 -4
- package/src/screens/detail-loan/Info.tsx +16 -8
- package/src/screens/detail-loan/Payment.tsx +19 -7
- package/src/screens/detail-loan/PaymentAll.tsx +49 -9
- package/src/screens/detail-loan/PaymentInfo.tsx +735 -85
- package/src/screens/detail-loan/ShowQrCode.tsx +372 -68
- package/src/screens/detail-loan/index.tsx +37 -33
- package/src/screens/guide-transfer-bank/TransferDetail.tsx +41 -12
- package/src/screens/guide-transfer-bank/index.tsx +228 -237
- package/src/screens/home/ItemMotoBikeLoan.tsx +845 -0
- package/src/screens/home/Store.tsx +4 -1
- package/src/screens/home/index.tsx +23 -31
- package/src/screens/liveness-v2/index.tsx +4 -4
- package/src/screens/motobike/InfoLoanMotobike.tsx +674 -0
- package/src/screens/motobike/PolicyF88.tsx +131 -0
- package/src/screens/motobike/ReviewLoanMotobike.tsx +453 -0
- package/src/screens/toan-trinh-so/TTSSelfie.tsx +4 -0
- package/src/screens/toan-trinh-so/VehicleRegistrationBack.tsx +28 -12
- package/src/services/api/api.ts +96 -0
- package/lib/commonjs/components/CommonSelect.js +0 -2
- package/lib/commonjs/components/CommonSelect.js.flow +0 -12
- package/lib/commonjs/components/CommonSelect.js.map +0 -1
- package/lib/module/components/CommonSelect.js +0 -2
- package/lib/module/components/CommonSelect.js.map +0 -1
- package/lib/typescript/components/CommonSelect.d.ts +0 -8
- package/lib/typescript/components/CommonSelect.d.ts.map +0 -1
- package/src/components/CommonSelect.tsx +0 -12
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
// @ts-nocheck
|
|
2
2
|
import { StackActions, useNavigation } from '@react-navigation/native';
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
|
-
import moment from 'moment';
|
|
5
4
|
import React, { useEffect, useState } from 'react';
|
|
6
5
|
import { ScrollView, TouchableOpacity, View } from 'react-native';
|
|
7
6
|
import LinearGradient from 'react-native-linear-gradient';
|
|
@@ -9,7 +8,6 @@ import { CIMBBank } from '../../assets/icons';
|
|
|
9
8
|
import Loading from '../../components/Loading';
|
|
10
9
|
import { MText } from '../../components/MText';
|
|
11
10
|
import { ScreenNames } from '../../navigation';
|
|
12
|
-
import { color } from '../../theme';
|
|
13
11
|
import { formatDDMMYYY, formatMoney } from '../../utils';
|
|
14
12
|
import { commonStyles } from '../CommonStyles';
|
|
15
13
|
import DetailLoanStore from './store';
|
|
@@ -245,10 +243,11 @@ export const Payment = observer(function Payment({ data }: IProps) {
|
|
|
245
243
|
style={{
|
|
246
244
|
borderRadius: 30,
|
|
247
245
|
borderWidth: 1,
|
|
248
|
-
borderColor: '#
|
|
246
|
+
borderColor: '#EF592E',
|
|
249
247
|
alignItems: 'center',
|
|
250
248
|
paddingVertical: 10,
|
|
251
|
-
backgroundColor: '#
|
|
249
|
+
backgroundColor: '#FFEAD8',
|
|
250
|
+
marginTop: 10,
|
|
252
251
|
}}
|
|
253
252
|
onPress={() => {
|
|
254
253
|
navigation.dispatch(
|
|
@@ -259,10 +258,23 @@ export const Payment = observer(function Payment({ data }: IProps) {
|
|
|
259
258
|
);
|
|
260
259
|
}}
|
|
261
260
|
>
|
|
262
|
-
<MText style={[commonStyles.textNormal, { color: '#
|
|
263
|
-
|
|
261
|
+
<MText style={[commonStyles.textNormal, { color: '#EF592E' }]}>
|
|
262
|
+
Xem thông tin tất toán
|
|
264
263
|
</MText>
|
|
265
264
|
</TouchableOpacity>
|
|
265
|
+
<View
|
|
266
|
+
style={{
|
|
267
|
+
marginTop: 8,
|
|
268
|
+
flexDirection: 'row',
|
|
269
|
+
justifyContent: 'center',
|
|
270
|
+
alignItems: 'center',
|
|
271
|
+
}}
|
|
272
|
+
>
|
|
273
|
+
<MText style={{ fontSize: 12, color: '#333333' }}>
|
|
274
|
+
Cung cấp bởi{' '}
|
|
275
|
+
</MText>
|
|
276
|
+
<CIMBBank />
|
|
277
|
+
</View>
|
|
266
278
|
</ScrollView>
|
|
267
279
|
<Loading isLoading={isLoading} />
|
|
268
280
|
</View>
|
|
@@ -13,8 +13,10 @@ import { formatMoney } from '../../utils';
|
|
|
13
13
|
import { commonStyles } from '../CommonStyles';
|
|
14
14
|
import DetailLoanStore from './store';
|
|
15
15
|
import MHeader from '../../components/MHeader';
|
|
16
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
16
17
|
|
|
17
18
|
export const PaymentAll = observer(function PaymentAll(props: any) {
|
|
19
|
+
const insets = useSafeAreaInsets();
|
|
18
20
|
const navigation = useNavigation();
|
|
19
21
|
const [data, setData] = useState<any>();
|
|
20
22
|
const [isLoading, setIsLoading] = useState(false);
|
|
@@ -40,8 +42,31 @@ export const PaymentAll = observer(function PaymentAll(props: any) {
|
|
|
40
42
|
|
|
41
43
|
return (
|
|
42
44
|
<View style={{ flex: 1, backgroundColor: '#FFFFFF' }}>
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
+
<View style={{ flex: 1, marginTop: insets.top }}>
|
|
46
|
+
<View
|
|
47
|
+
style={{
|
|
48
|
+
paddingHorizontal: 16,
|
|
49
|
+
paddingVertical: 12,
|
|
50
|
+
alignItems: 'center',
|
|
51
|
+
justifyContent: 'center',
|
|
52
|
+
}}
|
|
53
|
+
>
|
|
54
|
+
<TouchableOpacity
|
|
55
|
+
style={{ position: 'absolute', left: 16 }}
|
|
56
|
+
onPress={() => navigation.goBack()}
|
|
57
|
+
>
|
|
58
|
+
<IconBack onPress={() => navigation.goBack()} />
|
|
59
|
+
</TouchableOpacity>
|
|
60
|
+
<MText
|
|
61
|
+
style={{
|
|
62
|
+
fontFamily: 'BeVietnamPro-SemiBold',
|
|
63
|
+
fontWeight: '600',
|
|
64
|
+
fontSize: 16,
|
|
65
|
+
}}
|
|
66
|
+
>
|
|
67
|
+
Tất toán hợp đồng
|
|
68
|
+
</MText>
|
|
69
|
+
</View>
|
|
45
70
|
<ScrollView style={{ flex: 1 }}>
|
|
46
71
|
<View
|
|
47
72
|
style={{
|
|
@@ -50,7 +75,8 @@ export const PaymentAll = observer(function PaymentAll(props: any) {
|
|
|
50
75
|
borderRadius: 8,
|
|
51
76
|
borderColor: '#F05123',
|
|
52
77
|
padding: 16,
|
|
53
|
-
marginTop:
|
|
78
|
+
marginTop: 10,
|
|
79
|
+
backgroundColor: '#FFFAF8',
|
|
54
80
|
}}
|
|
55
81
|
>
|
|
56
82
|
<View
|
|
@@ -232,9 +258,9 @@ export const PaymentAll = observer(function PaymentAll(props: any) {
|
|
|
232
258
|
(Đơn vị tính: VNĐ)
|
|
233
259
|
</MText>
|
|
234
260
|
</ScrollView>
|
|
235
|
-
<View>
|
|
261
|
+
<View style={{ marginBottom: insets.bottom }}>
|
|
236
262
|
<View
|
|
237
|
-
style={{ height: 1, backgroundColor: '#E4E8EA', marginBottom:
|
|
263
|
+
style={{ height: 1, backgroundColor: '#E4E8EA', marginBottom: 16 }}
|
|
238
264
|
/>
|
|
239
265
|
<View
|
|
240
266
|
style={{
|
|
@@ -242,7 +268,7 @@ export const PaymentAll = observer(function PaymentAll(props: any) {
|
|
|
242
268
|
justifyContent: 'space-between',
|
|
243
269
|
alignItems: 'center',
|
|
244
270
|
paddingHorizontal: 16,
|
|
245
|
-
marginBottom:
|
|
271
|
+
marginBottom: 16,
|
|
246
272
|
}}
|
|
247
273
|
>
|
|
248
274
|
<MText
|
|
@@ -263,7 +289,7 @@ export const PaymentAll = observer(function PaymentAll(props: any) {
|
|
|
263
289
|
</MText>
|
|
264
290
|
</View>
|
|
265
291
|
<TouchableOpacity
|
|
266
|
-
style={{ paddingHorizontal: 16
|
|
292
|
+
style={{ paddingHorizontal: 16 }}
|
|
267
293
|
onPress={() => {
|
|
268
294
|
navigation.dispatch(
|
|
269
295
|
StackActions.push(ScreenNames.PaymentInfo, {
|
|
@@ -286,13 +312,27 @@ export const PaymentAll = observer(function PaymentAll(props: any) {
|
|
|
286
312
|
<MText
|
|
287
313
|
style={[commonStyles.textNormalBold, { color: '#FDFDFD' }]}
|
|
288
314
|
>
|
|
289
|
-
Xác nhận và
|
|
315
|
+
Xác nhận và tất toán
|
|
290
316
|
</MText>
|
|
291
317
|
</LinearGradient>
|
|
292
318
|
</TouchableOpacity>
|
|
319
|
+
<View
|
|
320
|
+
style={{
|
|
321
|
+
marginTop: 8,
|
|
322
|
+
flexDirection: 'row',
|
|
323
|
+
justifyContent: 'center',
|
|
324
|
+
alignItems: 'center',
|
|
325
|
+
marginBottom: 16,
|
|
326
|
+
}}
|
|
327
|
+
>
|
|
328
|
+
<MText style={{ fontSize: 12, color: '#333333' }}>
|
|
329
|
+
Cung cấp bởi{' '}
|
|
330
|
+
</MText>
|
|
331
|
+
<CIMBBank />
|
|
332
|
+
</View>
|
|
293
333
|
</View>
|
|
294
334
|
<Loading isLoading={isLoading} />
|
|
295
|
-
</
|
|
335
|
+
</View>
|
|
296
336
|
</View>
|
|
297
337
|
);
|
|
298
338
|
});
|