react-native-timacare 3.3.18 → 3.3.20
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/MHeader.js +1 -1
- package/lib/commonjs/components/MHeader.js.flow +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/screens/detail-loan/DetailLoanTima.js +1 -1
- package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.flow +145 -35
- 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 +678 -35
- 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/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 +15 -30
- 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/services/api/api.js +1 -1
- package/lib/commonjs/services/api/api.js.flow +16 -0
- package/lib/commonjs/services/api/api.js.map +1 -1
- package/lib/module/components/MHeader.js +1 -1
- package/lib/module/components/keyboardspace/index.js +1 -1
- package/lib/module/components/keyboardspace/index.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/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/services/api/api.js +1 -1
- package/lib/module/services/api/api.js.map +1 -1
- package/lib/typescript/components/keyboardspace/index.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/Store.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/services/api/api.d.ts +16 -0
- package/lib/typescript/services/api/api.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/components/MHeader.tsx +1 -1
- package/src/components/keyboardspace/index.tsx +0 -2
- package/src/screens/detail-loan/DetailLoanTima.tsx +145 -35
- 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 +678 -35
- 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/Store.tsx +4 -1
- package/src/screens/home/index.tsx +15 -30
- package/src/screens/liveness-v2/index.tsx +4 -4
- package/src/services/api/api.ts +16 -0
|
@@ -1,24 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { useNavigation } from '@react-navigation/native';
|
|
3
3
|
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import React, { useState } from 'react';
|
|
5
|
-
import {
|
|
6
|
-
Image,
|
|
7
|
-
ImageStyle,
|
|
8
|
-
SafeAreaView,
|
|
9
|
-
TouchableOpacity,
|
|
10
|
-
View,
|
|
11
|
-
} from 'react-native';
|
|
12
|
-
import LinearGradient from 'react-native-linear-gradient';
|
|
5
|
+
import { ImageStyle, TouchableOpacity, View } from 'react-native';
|
|
13
6
|
import { IconBack } from '../../assets/icons';
|
|
14
|
-
import MButton from '../../components/MButton';
|
|
15
7
|
import { MText } from '../../components/MText';
|
|
16
|
-
import { ScreenNames } from '../../navigation';
|
|
17
|
-
import { color } from '../../theme';
|
|
18
|
-
import { commonStyles } from '../CommonStyles';
|
|
19
8
|
import { Info } from './Info';
|
|
20
9
|
import { Payment } from './Payment';
|
|
21
|
-
import
|
|
10
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
11
|
+
|
|
22
12
|
const logoView: ImageStyle = {
|
|
23
13
|
position: 'absolute',
|
|
24
14
|
width: '100%',
|
|
@@ -27,30 +17,44 @@ const logoView: ImageStyle = {
|
|
|
27
17
|
};
|
|
28
18
|
|
|
29
19
|
export const DetailLoan = observer(function DetailLoan(props: any) {
|
|
20
|
+
const insets = useSafeAreaInsets();
|
|
30
21
|
const navigation = useNavigation();
|
|
31
22
|
const [tab, setTab] = useState(1);
|
|
32
23
|
|
|
33
24
|
return (
|
|
34
25
|
<View style={{ flex: 1, backgroundColor: '#FDFDFD' }}>
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
26
|
+
<View style={{ flex: 1, marginTop: insets.top }}>
|
|
27
|
+
<View
|
|
28
|
+
style={{
|
|
29
|
+
paddingHorizontal: 16,
|
|
30
|
+
paddingVertical: 12,
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyContent: 'center',
|
|
33
|
+
}}
|
|
34
|
+
>
|
|
35
|
+
<TouchableOpacity
|
|
36
|
+
style={{ position: 'absolute', left: 16 }}
|
|
37
|
+
onPress={() => navigation.goBack()}
|
|
38
|
+
>
|
|
39
|
+
<IconBack onPress={() => navigation.goBack()} />
|
|
40
|
+
</TouchableOpacity>
|
|
41
|
+
<MText
|
|
42
|
+
style={{
|
|
43
|
+
fontFamily: 'BeVietnamPro-SemiBold',
|
|
44
|
+
fontWeight: '600',
|
|
45
|
+
fontSize: 16,
|
|
46
|
+
}}
|
|
47
|
+
>
|
|
48
|
+
HD-{props.route?.params?.loan?.id}
|
|
49
|
+
</MText>
|
|
50
|
+
</View>
|
|
47
51
|
<View
|
|
48
52
|
style={{
|
|
49
53
|
flexDirection: 'row',
|
|
50
54
|
backgroundColor: '#F2F2F2',
|
|
51
55
|
borderRadius: 30,
|
|
52
56
|
marginHorizontal: 16,
|
|
53
|
-
marginTop:
|
|
57
|
+
marginTop: 10,
|
|
54
58
|
}}
|
|
55
59
|
>
|
|
56
60
|
<TouchableOpacity onPress={() => setTab(1)} style={{ flex: 1 }}>
|
|
@@ -60,13 +64,13 @@ export const DetailLoan = observer(function DetailLoan(props: any) {
|
|
|
60
64
|
borderRadius: 30,
|
|
61
65
|
paddingVertical: 10,
|
|
62
66
|
borderWidth: 1,
|
|
63
|
-
borderColor: tab === 1 ? '#
|
|
67
|
+
borderColor: tab === 1 ? '#EF4123' : '#F2F2F2',
|
|
64
68
|
backgroundColor: tab === 1 ? '#FFFFFF' : '#F2F2F2',
|
|
65
69
|
}}
|
|
66
70
|
>
|
|
67
71
|
<MText
|
|
68
72
|
style={{
|
|
69
|
-
color: tab === 1 ? '#
|
|
73
|
+
color: tab === 1 ? '#EF4123' : '#333333',
|
|
70
74
|
fontWeight: tab === 1 ? 'bold' : '400',
|
|
71
75
|
}}
|
|
72
76
|
>
|
|
@@ -86,13 +90,13 @@ export const DetailLoan = observer(function DetailLoan(props: any) {
|
|
|
86
90
|
borderRadius: 30,
|
|
87
91
|
paddingVertical: 10,
|
|
88
92
|
borderWidth: 1,
|
|
89
|
-
borderColor: tab === 2 ? '#
|
|
93
|
+
borderColor: tab === 2 ? '#EF4123' : '#F2F2F2',
|
|
90
94
|
backgroundColor: tab === 2 ? '#FFFFFF' : '#F2F2F2',
|
|
91
95
|
}}
|
|
92
96
|
>
|
|
93
97
|
<MText
|
|
94
98
|
style={{
|
|
95
|
-
color: tab === 2 ? '#
|
|
99
|
+
color: tab === 2 ? '#EF4123' : '#333333',
|
|
96
100
|
fontWeight: tab === 2 ? 'bold' : '400',
|
|
97
101
|
}}
|
|
98
102
|
>
|
|
@@ -106,7 +110,7 @@ export const DetailLoan = observer(function DetailLoan(props: any) {
|
|
|
106
110
|
) : (
|
|
107
111
|
<Payment data={props?.route.params?.loan} />
|
|
108
112
|
)}
|
|
109
|
-
</
|
|
113
|
+
</View>
|
|
110
114
|
</View>
|
|
111
115
|
);
|
|
112
116
|
});
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { useNavigation } from '@react-navigation/native';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
Image,
|
|
6
|
+
SafeAreaView,
|
|
7
|
+
ScrollView,
|
|
8
|
+
TouchableOpacity,
|
|
9
|
+
View,
|
|
10
|
+
ViewStyle,
|
|
11
|
+
} from 'react-native';
|
|
5
12
|
import { CIMBBank, IconBack } from '../../assets/icons';
|
|
6
13
|
import MButton from '../../components/MButton';
|
|
7
14
|
import { MText } from '../../components/MText';
|
|
@@ -9,6 +16,18 @@ import { color } from '../../theme';
|
|
|
9
16
|
import { commonStyles } from '../CommonStyles';
|
|
10
17
|
import MHeader from '../../components/MHeader';
|
|
11
18
|
|
|
19
|
+
const $backButton: ViewStyle = {
|
|
20
|
+
position: 'absolute',
|
|
21
|
+
left: 16,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const $header: ViewStyle = {
|
|
25
|
+
flexDirection: 'row',
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
paddingVertical: 16,
|
|
28
|
+
justifyContent: 'center',
|
|
29
|
+
};
|
|
30
|
+
|
|
12
31
|
export default function TransferDetail(props: any) {
|
|
13
32
|
const navigation = useNavigation();
|
|
14
33
|
|
|
@@ -126,17 +145,27 @@ export default function TransferDetail(props: any) {
|
|
|
126
145
|
};
|
|
127
146
|
return (
|
|
128
147
|
<View style={{ flex: 1, backgroundColor: '#FFFFFF' }}>
|
|
129
|
-
<MHeader
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
148
|
+
<MHeader title={'Vay trực tuyến 24/7'} />
|
|
149
|
+
<View style={{ flex: 1 }}>
|
|
150
|
+
<View style={$header}>
|
|
151
|
+
<TouchableOpacity
|
|
152
|
+
style={$backButton}
|
|
153
|
+
onPress={() => navigation.goBack()}
|
|
154
|
+
>
|
|
155
|
+
<IconBack />
|
|
156
|
+
</TouchableOpacity>
|
|
157
|
+
<MText
|
|
158
|
+
style={{
|
|
159
|
+
fontSize: 16,
|
|
160
|
+
fontWeight: '600',
|
|
161
|
+
fontFamily: 'BeVietnamPro-SemiBold',
|
|
162
|
+
}}
|
|
163
|
+
>
|
|
164
|
+
{`BƯỚC ${props.route.params.step}`}
|
|
165
|
+
</MText>
|
|
166
|
+
</View>
|
|
167
|
+
<ScrollView>{renderStep(props.route.params.step)}</ScrollView>
|
|
168
|
+
</View>
|
|
140
169
|
</View>
|
|
141
170
|
);
|
|
142
171
|
}
|