react-native-timacare 3.3.2 → 3.3.4
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/AppStore.js +1 -1
- package/lib/commonjs/AppStore.js.flow +0 -1
- package/lib/commonjs/AppStore.js.map +1 -1
- package/lib/commonjs/RNTimacare.js +1 -1
- package/lib/commonjs/RNTimacare.js.flow +1 -6
- package/lib/commonjs/RNTimacare.js.map +1 -1
- package/lib/commonjs/components/MHeader.js +1 -1
- package/lib/commonjs/components/MHeader.js.flow +1 -1
- package/lib/commonjs/components/MHeader.js.map +1 -1
- package/lib/commonjs/components/keyboardspace/index.js +1 -1
- package/lib/commonjs/components/keyboardspace/index.js.flow +74 -113
- package/lib/commonjs/components/keyboardspace/index.js.map +1 -1
- package/lib/commonjs/navigation/primary-navigator.js +1 -1
- package/lib/commonjs/navigation/primary-navigator.js.flow +0 -8
- package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
- package/lib/commonjs/screens/digital-lending/Step1.js +1 -1
- package/lib/commonjs/screens/digital-lending/Step1.js.flow +1 -1
- package/lib/commonjs/screens/digital-lending/Step1.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +1 -1
- package/lib/commonjs/screens/home/index.js.map +1 -1
- package/lib/module/AppStore.js +1 -1
- package/lib/module/AppStore.js.map +1 -1
- package/lib/module/RNTimacare.js +1 -1
- package/lib/module/RNTimacare.js.map +1 -1
- package/lib/module/components/MHeader.js +1 -1
- package/lib/module/components/MHeader.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/navigation/primary-navigator.js +1 -1
- package/lib/module/navigation/primary-navigator.js.map +1 -1
- package/lib/module/screens/digital-lending/Step1.js +1 -1
- package/lib/module/screens/digital-lending/Step1.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/typescript/AppStore.d.ts +0 -1
- package/lib/typescript/AppStore.d.ts.map +1 -1
- package/lib/typescript/RNTimacare.d.ts.map +1 -1
- package/lib/typescript/components/keyboardspace/index.d.ts +9 -22
- package/lib/typescript/components/keyboardspace/index.d.ts.map +1 -1
- package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
- package/package.json +1 -13
- package/src/AppStore.tsx +0 -1
- package/src/RNTimacare.tsx +1 -6
- package/src/components/MHeader.tsx +1 -1
- package/src/components/keyboardspace/index.tsx +74 -113
- package/src/navigation/primary-navigator.tsx +0 -8
- package/src/screens/digital-lending/Step1.tsx +1 -1
- package/src/screens/home/index.tsx +1 -1
- package/lib/commonjs/components/logoTima/index.js +0 -2
- package/lib/commonjs/components/logoTima/index.js.flow +0 -32
- package/lib/commonjs/components/logoTima/index.js.map +0 -1
- package/lib/commonjs/components/logoTima/logo.png +0 -0
- package/lib/commonjs/components/logoTima/slogan.png +0 -0
- package/lib/commonjs/screens/intro/Store.js +0 -2
- package/lib/commonjs/screens/intro/Store.js.flow +0 -36
- package/lib/commonjs/screens/intro/Store.js.map +0 -1
- package/lib/commonjs/screens/intro/background_initial.png +0 -0
- package/lib/commonjs/screens/intro/index.js +0 -2
- package/lib/commonjs/screens/intro/index.js.flow +0 -300
- package/lib/commonjs/screens/intro/index.js.map +0 -1
- package/lib/commonjs/screens/intro/rightBottom.png +0 -0
- package/lib/module/components/logoTima/index.js +0 -2
- package/lib/module/components/logoTima/index.js.map +0 -1
- package/lib/module/components/logoTima/logo.png +0 -0
- package/lib/module/components/logoTima/slogan.png +0 -0
- package/lib/module/screens/intro/Store.js +0 -2
- package/lib/module/screens/intro/Store.js.map +0 -1
- package/lib/module/screens/intro/background_initial.png +0 -0
- package/lib/module/screens/intro/index.js +0 -2
- package/lib/module/screens/intro/index.js.map +0 -1
- package/lib/module/screens/intro/rightBottom.png +0 -0
- package/lib/typescript/components/logoTima/index.d.ts +0 -2
- package/lib/typescript/components/logoTima/index.d.ts.map +0 -1
- package/lib/typescript/screens/intro/Store.d.ts +0 -8
- package/lib/typescript/screens/intro/Store.d.ts.map +0 -1
- package/lib/typescript/screens/intro/index.d.ts +0 -2
- package/lib/typescript/screens/intro/index.d.ts.map +0 -1
- package/src/components/logoTima/index.tsx +0 -32
- package/src/components/logoTima/logo.png +0 -0
- package/src/components/logoTima/slogan.png +0 -0
- package/src/screens/intro/Store.tsx +0 -36
- package/src/screens/intro/background_initial.png +0 -0
- package/src/screens/intro/index.tsx +0 -300
- package/src/screens/intro/rightBottom.png +0 -0
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
//@ts-nocheck
|
|
2
|
-
import React, { useState, Fragment, useRef } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
ActivityIndicator,
|
|
5
|
-
Alert,
|
|
6
|
-
Dimensions,
|
|
7
|
-
Image,
|
|
8
|
-
ImageStyle,
|
|
9
|
-
Platform,
|
|
10
|
-
SafeAreaView,
|
|
11
|
-
ScrollView,
|
|
12
|
-
TextStyle,
|
|
13
|
-
View,
|
|
14
|
-
ViewStyle,
|
|
15
|
-
} from 'react-native';
|
|
16
|
-
import { CommonActions, useNavigation } from '@react-navigation/native';
|
|
17
|
-
import { observer } from 'mobx-react-lite';
|
|
18
|
-
import { commonStyles } from '../CommonStyles';
|
|
19
|
-
import KeyboardSpacer from '../../components/keyboardspace';
|
|
20
|
-
import * as yup from 'yup';
|
|
21
|
-
import { Formik } from 'formik';
|
|
22
|
-
import MButton from '../../components/MButton';
|
|
23
|
-
import { color } from '../../theme';
|
|
24
|
-
import registerStore from './Store';
|
|
25
|
-
import { MText, MTextInput } from '../../components/MText';
|
|
26
|
-
import { formatMoney, getMoney } from '../../utils';
|
|
27
|
-
import moment from 'moment';
|
|
28
|
-
import { IconHand, IconSelect, IconSelected } from '../../assets/icons';
|
|
29
|
-
import Slider from '@react-native-community/slider';
|
|
30
|
-
import { ScreenNames } from '../../navigation';
|
|
31
|
-
import { LogoTima } from '../../components/logoTima';
|
|
32
|
-
import PagerView from 'react-native-pager-view';
|
|
33
|
-
import { myLog } from '../../utils/log';
|
|
34
|
-
import { INTRO, save } from '../../utils/storage';
|
|
35
|
-
export const Intro = observer(function Intro() {
|
|
36
|
-
const navigation = useNavigation();
|
|
37
|
-
const [index, setIndex] = useState(0);
|
|
38
|
-
const pagerView = useRef(null);
|
|
39
|
-
|
|
40
|
-
const skip = () => {
|
|
41
|
-
save(INTRO, 'true');
|
|
42
|
-
navigation.dispatch(
|
|
43
|
-
CommonActions.reset({
|
|
44
|
-
index: 1,
|
|
45
|
-
routes: [{ name: ScreenNames.Register }],
|
|
46
|
-
})
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
return (
|
|
51
|
-
<View style={[commonStyles.fill, commonStyles.backgroundWhite]}>
|
|
52
|
-
<SafeAreaView style={commonStyles.fill}>
|
|
53
|
-
<PagerView
|
|
54
|
-
ref={pagerView}
|
|
55
|
-
style={{ flex: 1 }}
|
|
56
|
-
initialPage={index}
|
|
57
|
-
onPageSelected={(event) => {
|
|
58
|
-
myLog(event.nativeEvent);
|
|
59
|
-
setIndex(event.nativeEvent.position);
|
|
60
|
-
}}
|
|
61
|
-
>
|
|
62
|
-
<View key="1">
|
|
63
|
-
<View style={commonStyles.fill}>
|
|
64
|
-
<Image
|
|
65
|
-
source={require('../../../assets/img/logo.png')}
|
|
66
|
-
style={{ width: 80, height: 80, alignSelf: 'center' }}
|
|
67
|
-
/>
|
|
68
|
-
<Image
|
|
69
|
-
source={require('../../../assets/img/sao_khue.png')}
|
|
70
|
-
style={{
|
|
71
|
-
width: 80,
|
|
72
|
-
height: 150,
|
|
73
|
-
marginTop: 24,
|
|
74
|
-
alignSelf: 'center',
|
|
75
|
-
resizeMode: 'contain',
|
|
76
|
-
}}
|
|
77
|
-
/>
|
|
78
|
-
<MText
|
|
79
|
-
style={[
|
|
80
|
-
commonStyles.textNormalBold,
|
|
81
|
-
{
|
|
82
|
-
fontSize: 18,
|
|
83
|
-
marginTop: 16,
|
|
84
|
-
color: color.primary,
|
|
85
|
-
textAlign: 'center',
|
|
86
|
-
},
|
|
87
|
-
]}
|
|
88
|
-
>
|
|
89
|
-
Top 10 Sao Khuê 2018
|
|
90
|
-
</MText>
|
|
91
|
-
<MText
|
|
92
|
-
style={[
|
|
93
|
-
commonStyles.textNormal,
|
|
94
|
-
{
|
|
95
|
-
fontSize: 14,
|
|
96
|
-
lineHeight: 24,
|
|
97
|
-
marginTop: 8,
|
|
98
|
-
textAlign: 'center',
|
|
99
|
-
paddingHorizontal: 36,
|
|
100
|
-
},
|
|
101
|
-
]}
|
|
102
|
-
>{`Tại lễ công bố và trao danh hiệu Sao Khuê 2018, sản phẩm Sàn kết nối Tài chính Tima của Công ty cổ phần Tập đoàn Tima đã lọt vào Top 10 các sản phẩm, dịch vụ xuất sắc trong tổng số 73 sản phẩm, dịch vụ CNTT được trao giải.`}</MText>
|
|
103
|
-
</View>
|
|
104
|
-
</View>
|
|
105
|
-
<View key="2">
|
|
106
|
-
<View style={commonStyles.fill}>
|
|
107
|
-
<Image
|
|
108
|
-
source={require('../../../assets/img/logo.png')}
|
|
109
|
-
style={{ width: 80, height: 80, alignSelf: 'center' }}
|
|
110
|
-
/>
|
|
111
|
-
<Image
|
|
112
|
-
source={require('../../../assets/img/slogan.png')}
|
|
113
|
-
style={{
|
|
114
|
-
width: '60%',
|
|
115
|
-
height: 150,
|
|
116
|
-
marginTop: 24,
|
|
117
|
-
alignSelf: 'center',
|
|
118
|
-
resizeMode: 'contain',
|
|
119
|
-
}}
|
|
120
|
-
/>
|
|
121
|
-
<MText
|
|
122
|
-
style={[
|
|
123
|
-
commonStyles.textNormalBold,
|
|
124
|
-
{
|
|
125
|
-
fontSize: 18,
|
|
126
|
-
marginTop: 16,
|
|
127
|
-
color: color.primary,
|
|
128
|
-
textAlign: 'center',
|
|
129
|
-
},
|
|
130
|
-
]}
|
|
131
|
-
>
|
|
132
|
-
Vay nhanh & dễ dàng hơn với Tima
|
|
133
|
-
</MText>
|
|
134
|
-
<View style={{ alignSelf: 'center', marginTop: 16 }}>
|
|
135
|
-
<View
|
|
136
|
-
style={[
|
|
137
|
-
commonStyles.row,
|
|
138
|
-
commonStyles.alignCenter,
|
|
139
|
-
{ marginTop: 8 },
|
|
140
|
-
]}
|
|
141
|
-
>
|
|
142
|
-
<IconHand
|
|
143
|
-
width={10}
|
|
144
|
-
height={9}
|
|
145
|
-
style={{ transform: [{ scale: 1.5 }] }}
|
|
146
|
-
/>
|
|
147
|
-
<MText
|
|
148
|
-
style={[
|
|
149
|
-
commonStyles.textNormal,
|
|
150
|
-
{
|
|
151
|
-
paddingLeft: 8,
|
|
152
|
-
color: color.primary,
|
|
153
|
-
textAlign: 'center',
|
|
154
|
-
},
|
|
155
|
-
]}
|
|
156
|
-
>
|
|
157
|
-
Chỉ mất 3 phút đăng ký
|
|
158
|
-
</MText>
|
|
159
|
-
</View>
|
|
160
|
-
<View
|
|
161
|
-
style={[
|
|
162
|
-
commonStyles.row,
|
|
163
|
-
commonStyles.alignCenter,
|
|
164
|
-
{ marginTop: 8 },
|
|
165
|
-
]}
|
|
166
|
-
>
|
|
167
|
-
<IconHand
|
|
168
|
-
width={10}
|
|
169
|
-
height={9}
|
|
170
|
-
style={{ transform: [{ scale: 1.5 }] }}
|
|
171
|
-
/>
|
|
172
|
-
<MText
|
|
173
|
-
style={[
|
|
174
|
-
commonStyles.textNormal,
|
|
175
|
-
{
|
|
176
|
-
paddingLeft: 8,
|
|
177
|
-
color: color.primary,
|
|
178
|
-
textAlign: 'center',
|
|
179
|
-
},
|
|
180
|
-
]}
|
|
181
|
-
>
|
|
182
|
-
Thông tin chi tiết & lãi suất minh bạch
|
|
183
|
-
</MText>
|
|
184
|
-
</View>
|
|
185
|
-
<View
|
|
186
|
-
style={[
|
|
187
|
-
commonStyles.row,
|
|
188
|
-
commonStyles.alignCenter,
|
|
189
|
-
{ marginTop: 8 },
|
|
190
|
-
]}
|
|
191
|
-
>
|
|
192
|
-
<IconHand
|
|
193
|
-
width={10}
|
|
194
|
-
height={9}
|
|
195
|
-
style={{ transform: [{ scale: 1.5 }] }}
|
|
196
|
-
/>
|
|
197
|
-
<MText
|
|
198
|
-
style={[
|
|
199
|
-
commonStyles.textNormal,
|
|
200
|
-
{
|
|
201
|
-
paddingLeft: 8,
|
|
202
|
-
color: color.primary,
|
|
203
|
-
textAlign: 'center',
|
|
204
|
-
},
|
|
205
|
-
]}
|
|
206
|
-
>
|
|
207
|
-
Nhật kết quả hồ sơ nhanh chóng
|
|
208
|
-
</MText>
|
|
209
|
-
</View>
|
|
210
|
-
</View>
|
|
211
|
-
</View>
|
|
212
|
-
</View>
|
|
213
|
-
</PagerView>
|
|
214
|
-
<View
|
|
215
|
-
style={[
|
|
216
|
-
commonStyles.row,
|
|
217
|
-
commonStyles.alignCenter,
|
|
218
|
-
{ marginBottom: 24, marginTop: 16, alignSelf: 'center' },
|
|
219
|
-
]}
|
|
220
|
-
>
|
|
221
|
-
<View
|
|
222
|
-
style={{
|
|
223
|
-
backgroundColor: index === 0 ? color.primary : color.textHint,
|
|
224
|
-
width: 12,
|
|
225
|
-
height: 12,
|
|
226
|
-
borderRadius: 6,
|
|
227
|
-
}}
|
|
228
|
-
/>
|
|
229
|
-
<View
|
|
230
|
-
style={{
|
|
231
|
-
backgroundColor: index === 1 ? color.primary : color.textHint,
|
|
232
|
-
width: 12,
|
|
233
|
-
height: 12,
|
|
234
|
-
borderRadius: 6,
|
|
235
|
-
marginLeft: 16,
|
|
236
|
-
}}
|
|
237
|
-
/>
|
|
238
|
-
</View>
|
|
239
|
-
<MButton
|
|
240
|
-
onPress={() => {
|
|
241
|
-
if (index == 0) {
|
|
242
|
-
pagerView.current.setPage(1);
|
|
243
|
-
setIndex(1);
|
|
244
|
-
} else {
|
|
245
|
-
skip();
|
|
246
|
-
}
|
|
247
|
-
}}
|
|
248
|
-
style={[
|
|
249
|
-
commonStyles.justifyCenter,
|
|
250
|
-
commonStyles.alignCenter,
|
|
251
|
-
{
|
|
252
|
-
backgroundColor: color.primary,
|
|
253
|
-
width: '50%',
|
|
254
|
-
height: 48,
|
|
255
|
-
borderRadius: 24,
|
|
256
|
-
alignSelf: 'center',
|
|
257
|
-
},
|
|
258
|
-
]}
|
|
259
|
-
>
|
|
260
|
-
<MText
|
|
261
|
-
style={[
|
|
262
|
-
commonStyles.textNormalBold,
|
|
263
|
-
{ fontSize: 16, color: 'white' },
|
|
264
|
-
]}
|
|
265
|
-
>
|
|
266
|
-
Tiếp theo
|
|
267
|
-
</MText>
|
|
268
|
-
</MButton>
|
|
269
|
-
<MButton
|
|
270
|
-
onPress={skip}
|
|
271
|
-
style={[
|
|
272
|
-
commonStyles.justifyCenter,
|
|
273
|
-
commonStyles.alignCenter,
|
|
274
|
-
{
|
|
275
|
-
width: '60%',
|
|
276
|
-
height: 48,
|
|
277
|
-
alignSelf: 'center',
|
|
278
|
-
marginTop: 16,
|
|
279
|
-
marginBottom: 24,
|
|
280
|
-
},
|
|
281
|
-
]}
|
|
282
|
-
>
|
|
283
|
-
<MText
|
|
284
|
-
style={[
|
|
285
|
-
commonStyles.textNormal,
|
|
286
|
-
{
|
|
287
|
-
fontSize: 16,
|
|
288
|
-
color: color.primary,
|
|
289
|
-
textDecorationLine: 'underline',
|
|
290
|
-
},
|
|
291
|
-
]}
|
|
292
|
-
>
|
|
293
|
-
Bỏ qua
|
|
294
|
-
</MText>
|
|
295
|
-
</MButton>
|
|
296
|
-
<KeyboardSpacer />
|
|
297
|
-
</SafeAreaView>
|
|
298
|
-
</View>
|
|
299
|
-
);
|
|
300
|
-
});
|
|
Binary file
|