react-native-timacare 3.3.56-alert → 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/assets/icons/index.js +1 -1
- package/lib/commonjs/assets/icons/index.js.flow +2 -0
- package/lib/commonjs/assets/icons/index.js.map +1 -1
- package/lib/commonjs/assets/icons/modal_confirm.svg +5 -5
- package/lib/commonjs/assets/icons/modal_notice.svg +32 -32
- package/lib/commonjs/assets/icons/modal_success.svg +26 -26
- package/lib/commonjs/assets/icons/modal_warning.svg +21 -21
- package/lib/commonjs/assets/icons/user_security.svg +10 -0
- package/lib/commonjs/assets/tts/Frame1000011947.png +0 -0
- 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/camera/CCCDCameraScreen.js +1 -1
- package/lib/commonjs/screens/camera/CCCDCameraScreen.js.flow +203 -133
- package/lib/commonjs/screens/camera/CCCDCameraScreen.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +7 -112
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/commonjs/screens/nationalID/index.js +1 -1
- package/lib/commonjs/screens/nationalID/index.js.flow +123 -218
- package/lib/commonjs/screens/nationalID/index.js.map +1 -1
- package/lib/commonjs/screens/nationalIDBack/index.js +1 -1
- package/lib/commonjs/screens/nationalIDBack/index.js.flow +129 -209
- package/lib/commonjs/screens/nationalIDBack/index.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 +269 -555
- package/lib/commonjs/screens/toan-trinh-so/OCR.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 +225 -287
- package/lib/commonjs/screens/toan-trinh-so/VehicleCamera.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/assets/icons/index.js +1 -1
- package/lib/module/assets/icons/index.js.map +1 -1
- package/lib/module/assets/icons/modal_confirm.svg +5 -5
- package/lib/module/assets/icons/modal_notice.svg +32 -32
- package/lib/module/assets/icons/modal_success.svg +26 -26
- package/lib/module/assets/icons/modal_warning.svg +21 -21
- package/lib/module/assets/icons/user_security.svg +10 -0
- package/lib/module/assets/tts/Frame1000011947.png +0 -0
- 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/camera/CCCDCameraScreen.js +1 -1
- package/lib/module/screens/camera/CCCDCameraScreen.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/nationalID/index.js +1 -1
- package/lib/module/screens/nationalID/index.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/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/VehicleCamera.js +1 -1
- package/lib/module/screens/toan-trinh-so/VehicleCamera.js.map +1 -1
- package/lib/module/utils/cameraCrop.js +2 -0
- package/lib/module/utils/cameraCrop.js.map +1 -0
- package/lib/typescript/assets/icons/index.d.ts +2 -1
- package/lib/typescript/assets/icons/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/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/camera/CCCDCameraScreen.d.ts.map +1 -1
- package/lib/typescript/screens/home/index.d.ts.map +1 -1
- package/lib/typescript/screens/nationalID/index.d.ts.map +1 -1
- package/lib/typescript/screens/nationalIDBack/index.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/VehicleCamera.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/assets/icons/index.tsx +2 -0
- package/src/assets/icons/modal_confirm.svg +5 -5
- package/src/assets/icons/modal_notice.svg +32 -32
- package/src/assets/icons/modal_success.svg +26 -26
- package/src/assets/icons/modal_warning.svg +21 -21
- package/src/assets/icons/user_security.svg +10 -0
- package/src/assets/tts/Frame1000011947.png +0 -0
- 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/camera/CCCDCameraScreen.tsx +203 -133
- package/src/screens/home/index.tsx +7 -112
- package/src/screens/nationalID/index.tsx +123 -218
- package/src/screens/nationalIDBack/index.tsx +129 -209
- package/src/screens/toan-trinh-so/OCR.tsx +269 -555
- package/src/screens/toan-trinh-so/VehicleCamera.tsx +225 -287
- package/src/utils/cameraCrop.ts +96 -0
|
Binary file
|
|
@@ -83,6 +83,8 @@ import LoanBuyCar from '../screens/v3/LoanBuyCar';
|
|
|
83
83
|
import InfoLoanMotobike from '../screens/motobike/InfoLoanMotobike';
|
|
84
84
|
import ReviewLoanMotobike from '../screens/motobike/ReviewLoanMotobike';
|
|
85
85
|
import PolicyF88 from '../screens/motobike/PolicyF88';
|
|
86
|
+
import OcrStart from '../screens/NFC/OcrStart';
|
|
87
|
+
import ScanMRZ from '../screens/NFC/ScanMRZ';
|
|
86
88
|
|
|
87
89
|
export const ScreenNames = {
|
|
88
90
|
Main: 'HomeTimaCare',
|
|
@@ -157,6 +159,9 @@ export const ScreenNames = {
|
|
|
157
159
|
InfoLoanMotobike: 'InfoLoanMotobike',
|
|
158
160
|
ReviewLoanMotobike: 'ReviewLoanMotobike',
|
|
159
161
|
PolicyF88: 'PolicyF88',
|
|
162
|
+
OcrStart: 'OcrStart',
|
|
163
|
+
ScanMRZ: 'ScanMRZ',
|
|
164
|
+
CameraVehicleRegistration: 'CameraVehicleRegistration',
|
|
160
165
|
};
|
|
161
166
|
|
|
162
167
|
const Stack = createNativeStackNavigator();
|
|
@@ -332,6 +337,8 @@ export function PrimaryNavigator(props) {
|
|
|
332
337
|
component={ReviewLoanMotobike}
|
|
333
338
|
/>
|
|
334
339
|
<Stack.Screen name={ScreenNames.PolicyF88} component={PolicyF88} />
|
|
340
|
+
<Stack.Screen name={ScreenNames.OcrStart} component={OcrStart} />
|
|
341
|
+
<Stack.Screen name={ScreenNames.ScanMRZ} component={ScanMRZ} />
|
|
335
342
|
</Stack.Navigator>
|
|
336
343
|
);
|
|
337
344
|
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import {
|
|
4
|
+
Image,
|
|
5
|
+
ScrollView,
|
|
6
|
+
StyleSheet,
|
|
7
|
+
TouchableOpacity,
|
|
8
|
+
View,
|
|
9
|
+
} from 'react-native';
|
|
10
|
+
import { useSafeAreaInsets } from 'react-native-safe-area-context';
|
|
11
|
+
import { useNavigation } from '@react-navigation/native';
|
|
12
|
+
import { IconBack, IconUserSecurity, TimaSmall } from '../../assets/icons';
|
|
13
|
+
import { MText } from '../../components/MText';
|
|
14
|
+
import LinearGradient from 'react-native-linear-gradient';
|
|
15
|
+
import { ScreenNames } from '../../navigation';
|
|
16
|
+
|
|
17
|
+
export default function OcrStart(props: any) {
|
|
18
|
+
const insets = useSafeAreaInsets();
|
|
19
|
+
const navigation = useNavigation();
|
|
20
|
+
return (
|
|
21
|
+
<View style={styles.container}>
|
|
22
|
+
<View style={[styles.header, { paddingTop: insets.top + 16 }]}>
|
|
23
|
+
<TouchableOpacity
|
|
24
|
+
onPress={() => navigation.goBack()}
|
|
25
|
+
hitSlop={{ top: 12, bottom: 12, left: 12, right: 12 }}
|
|
26
|
+
>
|
|
27
|
+
<IconBack />
|
|
28
|
+
</TouchableOpacity>
|
|
29
|
+
</View>
|
|
30
|
+
<ScrollView style={{ flex: 1 }}>
|
|
31
|
+
<View style={styles.column_top}>
|
|
32
|
+
<IconUserSecurity />
|
|
33
|
+
<MText style={styles.title}>Xác thực giấy tờ để tiếp tục</MText>
|
|
34
|
+
</View>
|
|
35
|
+
<View style={styles.content}>
|
|
36
|
+
<MText style={styles.label}>
|
|
37
|
+
Cách 1: NFC (Áp dụng cho CCCD gắn chip)
|
|
38
|
+
</MText>
|
|
39
|
+
<View style={styles.row}>
|
|
40
|
+
<TimaSmall />
|
|
41
|
+
<MText style={styles.description}>
|
|
42
|
+
Đưa phần chip của CCCD đến vị trí đọc NFC trên mặt lưng điện
|
|
43
|
+
thoại.
|
|
44
|
+
</MText>
|
|
45
|
+
</View>
|
|
46
|
+
<View style={styles.row}>
|
|
47
|
+
<TimaSmall />
|
|
48
|
+
<MText style={styles.description}>
|
|
49
|
+
Giữ nguyên để hệ thống đọc giữ liệu trong 5-10 giây
|
|
50
|
+
</MText>
|
|
51
|
+
</View>
|
|
52
|
+
<Image
|
|
53
|
+
source={require('../../assets/tts/Frame1000011953.png')}
|
|
54
|
+
style={{
|
|
55
|
+
width: '100%',
|
|
56
|
+
height: 82,
|
|
57
|
+
resizeMode: 'contain',
|
|
58
|
+
marginTop: 16,
|
|
59
|
+
}}
|
|
60
|
+
/>
|
|
61
|
+
<MText style={[styles.label, { marginTop: 16 }]}>
|
|
62
|
+
Cách 2: Chụp 2 mặt
|
|
63
|
+
</MText>
|
|
64
|
+
<View style={styles.row}>
|
|
65
|
+
<TimaSmall />
|
|
66
|
+
<MText style={styles.description}>
|
|
67
|
+
Nên đặt CCCD/ CC lên mặt phẳng để chụp
|
|
68
|
+
</MText>
|
|
69
|
+
</View>
|
|
70
|
+
<View style={styles.row}>
|
|
71
|
+
<TimaSmall />
|
|
72
|
+
<MText style={styles.description}>
|
|
73
|
+
Đặt CCCD/ CC nằm gọn trong khung hình (Không quá nhỏ hay quá to
|
|
74
|
+
làm mất chi tiết)
|
|
75
|
+
</MText>
|
|
76
|
+
</View>
|
|
77
|
+
<View style={styles.row}>
|
|
78
|
+
<TimaSmall />
|
|
79
|
+
<MText style={styles.description}>
|
|
80
|
+
Chọn nơi ánh sáng tốt, tránh lóa/ chói hình chụp
|
|
81
|
+
</MText>
|
|
82
|
+
</View>
|
|
83
|
+
<Image
|
|
84
|
+
source={require('../../assets/tts/Frame1000011947.png')}
|
|
85
|
+
style={{
|
|
86
|
+
width: '100%',
|
|
87
|
+
height: 82,
|
|
88
|
+
resizeMode: 'contain',
|
|
89
|
+
marginTop: 16,
|
|
90
|
+
}}
|
|
91
|
+
/>
|
|
92
|
+
</View>
|
|
93
|
+
</ScrollView>
|
|
94
|
+
<TouchableOpacity
|
|
95
|
+
onPress={() => {
|
|
96
|
+
navigation.navigate(ScreenNames.ScanMRZ, props);
|
|
97
|
+
}}
|
|
98
|
+
style={{
|
|
99
|
+
marginHorizontal: 16,
|
|
100
|
+
marginBottom: 24,
|
|
101
|
+
}}
|
|
102
|
+
>
|
|
103
|
+
<LinearGradient
|
|
104
|
+
start={{ x: 1, y: 0 }}
|
|
105
|
+
end={{ x: 0, y: 1 }}
|
|
106
|
+
style={{
|
|
107
|
+
height: 40,
|
|
108
|
+
marginVertical: 16,
|
|
109
|
+
borderRadius: 30,
|
|
110
|
+
alignItems: 'center',
|
|
111
|
+
justifyContent: 'center',
|
|
112
|
+
}}
|
|
113
|
+
colors={['#FF7A00', '#EF4123']}
|
|
114
|
+
>
|
|
115
|
+
<MText
|
|
116
|
+
style={{
|
|
117
|
+
fontSize: 16,
|
|
118
|
+
color: 'white',
|
|
119
|
+
}}
|
|
120
|
+
>
|
|
121
|
+
Xác thực ngay
|
|
122
|
+
</MText>
|
|
123
|
+
</LinearGradient>
|
|
124
|
+
</TouchableOpacity>
|
|
125
|
+
</View>
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
const styles = StyleSheet.create({
|
|
130
|
+
container: {
|
|
131
|
+
flex: 1,
|
|
132
|
+
backgroundColor: '#FFFFFF',
|
|
133
|
+
},
|
|
134
|
+
header: {
|
|
135
|
+
flexDirection: 'row',
|
|
136
|
+
alignItems: 'center',
|
|
137
|
+
paddingHorizontal: 16,
|
|
138
|
+
backgroundColor: '#FFF3E9',
|
|
139
|
+
},
|
|
140
|
+
title: {
|
|
141
|
+
fontFamily: 'BeVietnamPro-SemiBold',
|
|
142
|
+
fontWeight: '600',
|
|
143
|
+
textAlign: 'center',
|
|
144
|
+
fontSize: 16,
|
|
145
|
+
},
|
|
146
|
+
column_top: {
|
|
147
|
+
alignItems: 'center',
|
|
148
|
+
flexDirection: 'column',
|
|
149
|
+
gap: 16,
|
|
150
|
+
backgroundColor: '#FFF3E9',
|
|
151
|
+
paddingBottom: 16,
|
|
152
|
+
},
|
|
153
|
+
content: {
|
|
154
|
+
flex: 1,
|
|
155
|
+
padding: 16,
|
|
156
|
+
},
|
|
157
|
+
label: {
|
|
158
|
+
fontFamily: 'BeVietnamPro-SemiBold',
|
|
159
|
+
fontWeight: '600',
|
|
160
|
+
},
|
|
161
|
+
row: {
|
|
162
|
+
flexDirection: 'row',
|
|
163
|
+
gap: 10,
|
|
164
|
+
alignItems: 'center',
|
|
165
|
+
marginTop: 10,
|
|
166
|
+
},
|
|
167
|
+
description: {
|
|
168
|
+
fontSize: 12,
|
|
169
|
+
flex: 1,
|
|
170
|
+
},
|
|
171
|
+
});
|