react-native-timacare 0.0.19 → 0.0.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/ios/TDHS.xcworkspace/xcuserdata/quangduc.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- package/lib/commonjs/screens/full-submit/selfie.js +1 -1
- package/lib/commonjs/screens/full-submit/selfie.js.flow +37 -24
- package/lib/commonjs/screens/full-submit/selfie.js.map +1 -1
- package/lib/commonjs/screens/full-submit/update-document.js +1 -1
- package/lib/commonjs/screens/full-submit/update-document.js.flow +224 -186
- package/lib/commonjs/screens/full-submit/update-document.js.map +1 -1
- package/lib/commonjs/screens/full-submit/update-info.js +1 -1
- package/lib/commonjs/screens/full-submit/update-info.js.flow +35 -27
- package/lib/commonjs/screens/full-submit/update-info.js.map +1 -1
- package/lib/commonjs/screens/home/index.js +1 -1
- package/lib/commonjs/screens/home/index.js.flow +310 -283
- 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 +36 -24
- 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 +37 -24
- package/lib/commonjs/screens/nationalIDBack/index.js.map +1 -1
- package/lib/commonjs/screens/quick-submit/index.js +1 -1
- package/lib/commonjs/screens/quick-submit/index.js.flow +38 -31
- package/lib/commonjs/screens/quick-submit/index.js.map +1 -1
- package/lib/commonjs/screens/selfie/index.js +1 -1
- package/lib/commonjs/screens/selfie/index.js.flow +34 -25
- package/lib/commonjs/screens/selfie/index.js.map +1 -1
- package/lib/commonjs/screens/uploadVideo/index.js +1 -1
- package/lib/commonjs/screens/uploadVideo/index.js.flow +4 -1
- package/lib/commonjs/screens/uploadVideo/index.js.map +1 -1
- package/lib/commonjs/screens/uploadVideo/videoStore.js +1 -1
- package/lib/commonjs/screens/uploadVideo/videoStore.js.flow +1 -0
- package/lib/commonjs/screens/uploadVideo/videoStore.js.map +1 -1
- package/lib/module/screens/full-submit/selfie.js +1 -1
- package/lib/module/screens/full-submit/selfie.js.map +1 -1
- package/lib/module/screens/full-submit/update-document.js +1 -1
- package/lib/module/screens/full-submit/update-document.js.map +1 -1
- package/lib/module/screens/full-submit/update-info.js +1 -1
- package/lib/module/screens/full-submit/update-info.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/quick-submit/index.js +1 -1
- package/lib/module/screens/quick-submit/index.js.map +1 -1
- package/lib/module/screens/selfie/index.js +1 -1
- package/lib/module/screens/selfie/index.js.map +1 -1
- package/lib/module/screens/uploadVideo/index.js +1 -1
- package/lib/module/screens/uploadVideo/index.js.map +1 -1
- package/lib/module/screens/uploadVideo/videoStore.js +1 -1
- package/lib/module/screens/uploadVideo/videoStore.js.map +1 -1
- package/lib/typescript/screens/full-submit/selfie.d.ts.map +1 -1
- package/lib/typescript/screens/full-submit/update-document.d.ts.map +1 -1
- package/lib/typescript/screens/full-submit/update-info.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/quick-submit/index.d.ts.map +1 -1
- package/lib/typescript/screens/selfie/index.d.ts.map +1 -1
- package/lib/typescript/screens/uploadVideo/index.d.ts.map +1 -1
- package/lib/typescript/screens/uploadVideo/videoStore.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/screens/full-submit/selfie.tsx +37 -24
- package/src/screens/full-submit/update-document.tsx +224 -186
- package/src/screens/full-submit/update-info.tsx +35 -27
- package/src/screens/home/index.tsx +310 -283
- package/src/screens/nationalID/index.tsx +36 -24
- package/src/screens/nationalIDBack/index.tsx +37 -24
- package/src/screens/quick-submit/index.tsx +38 -31
- package/src/screens/selfie/index.tsx +34 -25
- package/src/screens/uploadVideo/index.tsx +4 -1
- package/src/screens/uploadVideo/videoStore.tsx +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
|
-
import { observer } from 'mobx-react-lite';
|
|
2
|
+
import { observer, Observer } from 'mobx-react-lite';
|
|
3
3
|
import React, { useEffect, useState } from 'react';
|
|
4
4
|
import {
|
|
5
5
|
ActivityIndicator,
|
|
@@ -86,207 +86,245 @@ export const UpdateDocument = observer(function UpdateDocument({
|
|
|
86
86
|
<MText style={[commonStyles.textNormalBold, { fontSize: 16 }]}>
|
|
87
87
|
UPLOAD CHỨNG TỪ
|
|
88
88
|
</MText>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
<View
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
</MText>
|
|
104
|
-
</View>
|
|
105
|
-
{item?.isUpload && (
|
|
106
|
-
<TouchableOpacity
|
|
107
|
-
style={{
|
|
108
|
-
borderWidth: 1,
|
|
109
|
-
borderColor: '#D9D9D9',
|
|
110
|
-
paddingVertical: 8,
|
|
111
|
-
borderRadius: 6,
|
|
112
|
-
paddingHorizontal: 10,
|
|
113
|
-
flexDirection: 'row',
|
|
114
|
-
alignItems: 'center',
|
|
115
|
-
}}
|
|
116
|
-
onPress={() => {
|
|
117
|
-
takePhoto(item.documentId);
|
|
118
|
-
}}
|
|
119
|
-
>
|
|
120
|
-
<IConCamera />
|
|
121
|
-
<MText
|
|
122
|
-
style={[
|
|
123
|
-
commonStyles.textNormal,
|
|
124
|
-
{ color: '#F05123', marginLeft: 8, fontSize: 12 },
|
|
125
|
-
]}
|
|
126
|
-
>
|
|
127
|
-
Chụp ảnh
|
|
128
|
-
</MText>
|
|
129
|
-
</TouchableOpacity>
|
|
130
|
-
)}
|
|
131
|
-
</View>
|
|
132
|
-
{item?.listFile && (
|
|
133
|
-
<View style={{ paddingHorizontal: 10 }}>
|
|
134
|
-
<View style={{ marginVertical: 8 }}>
|
|
135
|
-
<ScrollView
|
|
136
|
-
horizontal
|
|
137
|
-
showsHorizontalScrollIndicator={false}
|
|
138
|
-
>
|
|
139
|
-
{item?.listFile.map((image) => (
|
|
140
|
-
<TouchableOpacity
|
|
141
|
-
style={{ paddingRight: 8 }}
|
|
142
|
-
onPress={() => {
|
|
143
|
-
setIsVisible(true);
|
|
144
|
-
setImages([
|
|
145
|
-
{
|
|
146
|
-
uri:
|
|
147
|
-
`https://file.tima.vn` + image?.filePath,
|
|
148
|
-
},
|
|
149
|
-
]);
|
|
150
|
-
}}
|
|
151
|
-
>
|
|
152
|
-
<FastImage
|
|
153
|
-
style={{
|
|
154
|
-
width: Dimensions.get('screen').width * 0.2,
|
|
155
|
-
height: Dimensions.get('screen').height * 0.1,
|
|
156
|
-
}}
|
|
157
|
-
source={{
|
|
158
|
-
uri: `https://file.tima.vn` + image?.filePath,
|
|
159
|
-
priority: FastImage.priority.normal,
|
|
160
|
-
}}
|
|
161
|
-
resizeMode={FastImage.resizeMode.cover}
|
|
162
|
-
/>
|
|
163
|
-
</TouchableOpacity>
|
|
164
|
-
))}
|
|
165
|
-
</ScrollView>
|
|
166
|
-
</View>
|
|
167
|
-
</View>
|
|
168
|
-
)}
|
|
169
|
-
{item?.listChild &&
|
|
170
|
-
item?.listChild.map((child: any, idx: number) => (
|
|
171
|
-
<View style={{ marginBottom: 16 }}>
|
|
172
|
-
<View
|
|
173
|
-
style={{
|
|
174
|
-
flexDirection: 'row',
|
|
175
|
-
justifyContent: 'space-between',
|
|
176
|
-
alignItems: 'center',
|
|
177
|
-
marginHorizontal: 16,
|
|
178
|
-
}}
|
|
179
|
-
>
|
|
180
|
-
<View style={{ flex: 1, paddingRight: 15 }}>
|
|
181
|
-
<MText
|
|
182
|
-
style={[
|
|
183
|
-
commonStyles.textNormalBold,
|
|
184
|
-
{ marginTop: 8 },
|
|
185
|
-
]}
|
|
186
|
-
>
|
|
187
|
-
{child.documentName}
|
|
188
|
-
</MText>
|
|
189
|
-
</View>
|
|
190
|
-
{child?.isUpload && (
|
|
191
|
-
<TouchableOpacity
|
|
192
|
-
style={{
|
|
193
|
-
borderWidth: 1,
|
|
194
|
-
borderColor: '#D9D9D9',
|
|
195
|
-
paddingVertical: 8,
|
|
196
|
-
borderRadius: 6,
|
|
197
|
-
paddingHorizontal: 10,
|
|
198
|
-
flexDirection: 'row',
|
|
199
|
-
alignItems: 'center',
|
|
200
|
-
}}
|
|
201
|
-
onPress={() => {
|
|
202
|
-
takePhoto(child.documentId);
|
|
203
|
-
}}
|
|
204
|
-
>
|
|
205
|
-
<IConCamera />
|
|
89
|
+
<Observer>
|
|
90
|
+
{() => (
|
|
91
|
+
<View>
|
|
92
|
+
{FullSubmitStore.listDocument.map(
|
|
93
|
+
(item: any, index: number) => (
|
|
94
|
+
<View key={index} style={{ marginBottom: 16 }}>
|
|
95
|
+
<View
|
|
96
|
+
style={{
|
|
97
|
+
flexDirection: 'row',
|
|
98
|
+
justifyContent: 'space-between',
|
|
99
|
+
alignItems: 'center',
|
|
100
|
+
}}
|
|
101
|
+
>
|
|
102
|
+
<View style={{ flex: 1, paddingRight: 15 }}>
|
|
206
103
|
<MText
|
|
207
104
|
style={[
|
|
208
|
-
commonStyles.
|
|
209
|
-
{
|
|
210
|
-
color: '#F05123',
|
|
211
|
-
marginLeft: 8,
|
|
212
|
-
fontSize: 12,
|
|
213
|
-
},
|
|
105
|
+
commonStyles.textNormalBold,
|
|
106
|
+
{ marginTop: 8 },
|
|
214
107
|
]}
|
|
215
108
|
>
|
|
216
|
-
|
|
109
|
+
{item.documentName}
|
|
217
110
|
</MText>
|
|
218
|
-
</
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
111
|
+
</View>
|
|
112
|
+
{item?.isUpload && (
|
|
113
|
+
<TouchableOpacity
|
|
114
|
+
style={{
|
|
115
|
+
borderWidth: 1,
|
|
116
|
+
borderColor: '#D9D9D9',
|
|
117
|
+
paddingVertical: 8,
|
|
118
|
+
borderRadius: 6,
|
|
119
|
+
paddingHorizontal: 10,
|
|
120
|
+
flexDirection: 'row',
|
|
121
|
+
alignItems: 'center',
|
|
122
|
+
}}
|
|
123
|
+
onPress={() => {
|
|
124
|
+
takePhoto(item.documentId);
|
|
125
|
+
}}
|
|
227
126
|
>
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
127
|
+
<IConCamera />
|
|
128
|
+
<MText
|
|
129
|
+
style={[
|
|
130
|
+
commonStyles.textNormal,
|
|
131
|
+
{
|
|
132
|
+
color: '#F05123',
|
|
133
|
+
marginLeft: 8,
|
|
134
|
+
fontSize: 12,
|
|
135
|
+
},
|
|
136
|
+
]}
|
|
137
|
+
>
|
|
138
|
+
Chụp ảnh
|
|
139
|
+
</MText>
|
|
140
|
+
</TouchableOpacity>
|
|
141
|
+
)}
|
|
142
|
+
</View>
|
|
143
|
+
{item?.listFile && (
|
|
144
|
+
<View style={{ paddingHorizontal: 10 }}>
|
|
145
|
+
<View style={{ marginVertical: 8 }}>
|
|
146
|
+
<ScrollView
|
|
147
|
+
horizontal
|
|
148
|
+
showsHorizontalScrollIndicator={false}
|
|
149
|
+
>
|
|
150
|
+
{item?.listFile.map((image) => (
|
|
151
|
+
<TouchableOpacity
|
|
152
|
+
style={{ paddingRight: 8 }}
|
|
153
|
+
onPress={() => {
|
|
154
|
+
setIsVisible(true);
|
|
155
|
+
setImages([
|
|
156
|
+
{
|
|
157
|
+
uri:
|
|
158
|
+
`https://file.tima.vn` +
|
|
159
|
+
image?.filePath,
|
|
160
|
+
},
|
|
161
|
+
]);
|
|
162
|
+
}}
|
|
163
|
+
>
|
|
164
|
+
<FastImage
|
|
165
|
+
style={{
|
|
166
|
+
width:
|
|
167
|
+
Dimensions.get('screen').width *
|
|
168
|
+
0.2,
|
|
169
|
+
height:
|
|
170
|
+
Dimensions.get('screen').height *
|
|
171
|
+
0.1,
|
|
172
|
+
}}
|
|
173
|
+
source={{
|
|
235
174
|
uri:
|
|
236
175
|
`https://file.tima.vn` +
|
|
237
176
|
image?.filePath,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
177
|
+
priority: FastImage.priority.normal,
|
|
178
|
+
}}
|
|
179
|
+
resizeMode={FastImage.resizeMode.cover}
|
|
180
|
+
/>
|
|
181
|
+
</TouchableOpacity>
|
|
182
|
+
))}
|
|
183
|
+
</ScrollView>
|
|
184
|
+
</View>
|
|
185
|
+
</View>
|
|
186
|
+
)}
|
|
187
|
+
{item?.listChild &&
|
|
188
|
+
item?.listChild.map((child: any, idx: number) => (
|
|
189
|
+
<View style={{ marginBottom: 16 }}>
|
|
190
|
+
<View
|
|
191
|
+
style={{
|
|
192
|
+
flexDirection: 'row',
|
|
193
|
+
justifyContent: 'space-between',
|
|
194
|
+
alignItems: 'center',
|
|
195
|
+
marginHorizontal: 16,
|
|
196
|
+
}}
|
|
197
|
+
>
|
|
198
|
+
<View style={{ flex: 1, paddingRight: 15 }}>
|
|
199
|
+
<MText
|
|
200
|
+
style={[
|
|
201
|
+
commonStyles.textNormalBold,
|
|
202
|
+
{ marginTop: 8 },
|
|
203
|
+
]}
|
|
204
|
+
>
|
|
205
|
+
{child.documentName}
|
|
206
|
+
</MText>
|
|
207
|
+
</View>
|
|
208
|
+
{child?.isUpload && (
|
|
209
|
+
<TouchableOpacity
|
|
243
210
|
style={{
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
211
|
+
borderWidth: 1,
|
|
212
|
+
borderColor: '#D9D9D9',
|
|
213
|
+
paddingVertical: 8,
|
|
214
|
+
borderRadius: 6,
|
|
215
|
+
paddingHorizontal: 10,
|
|
216
|
+
flexDirection: 'row',
|
|
217
|
+
alignItems: 'center',
|
|
248
218
|
}}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
`https://file.tima.vn` +
|
|
252
|
-
image?.filePath,
|
|
253
|
-
priority: FastImage.priority.normal,
|
|
219
|
+
onPress={() => {
|
|
220
|
+
takePhoto(child.documentId);
|
|
254
221
|
}}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
222
|
+
>
|
|
223
|
+
<IConCamera />
|
|
224
|
+
<MText
|
|
225
|
+
style={[
|
|
226
|
+
commonStyles.textNormal,
|
|
227
|
+
{
|
|
228
|
+
color: '#F05123',
|
|
229
|
+
marginLeft: 8,
|
|
230
|
+
fontSize: 12,
|
|
231
|
+
},
|
|
232
|
+
]}
|
|
233
|
+
>
|
|
234
|
+
Chụp ảnh
|
|
235
|
+
</MText>
|
|
236
|
+
</TouchableOpacity>
|
|
237
|
+
)}
|
|
238
|
+
</View>
|
|
239
|
+
{child?.listFile && (
|
|
240
|
+
<View style={{ paddingHorizontal: 10 }}>
|
|
241
|
+
<View style={{ marginVertical: 8 }}>
|
|
242
|
+
<ScrollView
|
|
243
|
+
horizontal
|
|
244
|
+
showsHorizontalScrollIndicator={false}
|
|
245
|
+
>
|
|
246
|
+
{child?.listFile.map((image) => (
|
|
247
|
+
<TouchableOpacity
|
|
248
|
+
style={{ paddingRight: 8 }}
|
|
249
|
+
onPress={() => {
|
|
250
|
+
setIsVisible(true);
|
|
251
|
+
setImages([
|
|
252
|
+
{
|
|
253
|
+
uri:
|
|
254
|
+
`https://file.tima.vn` +
|
|
255
|
+
image?.filePath,
|
|
256
|
+
},
|
|
257
|
+
]);
|
|
258
|
+
}}
|
|
259
|
+
>
|
|
260
|
+
<FastImage
|
|
261
|
+
style={{
|
|
262
|
+
width:
|
|
263
|
+
Dimensions.get('screen')
|
|
264
|
+
.width * 0.2,
|
|
265
|
+
height:
|
|
266
|
+
Dimensions.get('screen')
|
|
267
|
+
.height * 0.1,
|
|
268
|
+
}}
|
|
269
|
+
source={{
|
|
270
|
+
uri:
|
|
271
|
+
`https://file.tima.vn` +
|
|
272
|
+
image?.filePath,
|
|
273
|
+
priority:
|
|
274
|
+
FastImage.priority.normal,
|
|
275
|
+
}}
|
|
276
|
+
resizeMode={
|
|
277
|
+
FastImage.resizeMode.cover
|
|
278
|
+
}
|
|
279
|
+
/>
|
|
280
|
+
</TouchableOpacity>
|
|
281
|
+
))}
|
|
282
|
+
</ScrollView>
|
|
283
|
+
</View>
|
|
284
|
+
</View>
|
|
285
|
+
)}
|
|
286
|
+
</View>
|
|
287
|
+
))}
|
|
288
|
+
</View>
|
|
289
|
+
)
|
|
290
|
+
)}
|
|
291
|
+
</View>
|
|
292
|
+
)}
|
|
293
|
+
</Observer>
|
|
267
294
|
</View>
|
|
268
295
|
</ScrollView>
|
|
269
296
|
<View style={{ paddingHorizontal: 16 }}>
|
|
270
|
-
<
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
colors={['#FF7A00', '#EF4123']}
|
|
276
|
-
style={{
|
|
277
|
-
alignItems: 'center',
|
|
278
|
-
borderRadius: 30,
|
|
279
|
-
height: 40,
|
|
280
|
-
justifyContent: 'center',
|
|
281
|
-
}}
|
|
282
|
-
>
|
|
283
|
-
<MText
|
|
284
|
-
style={[commonStyles.textNormalBold, { color: '#FFFFFF' }]}
|
|
297
|
+
<Observer>
|
|
298
|
+
{() => (
|
|
299
|
+
<TouchableOpacity
|
|
300
|
+
disabled={FullSubmitStore.loadingButton}
|
|
301
|
+
onPress={() => handleSubmit()}
|
|
285
302
|
>
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
303
|
+
<LinearGradient
|
|
304
|
+
colors={['#FF7A00', '#EF4123']}
|
|
305
|
+
style={{
|
|
306
|
+
alignItems: 'center',
|
|
307
|
+
borderRadius: 30,
|
|
308
|
+
height: 40,
|
|
309
|
+
justifyContent: 'center',
|
|
310
|
+
}}
|
|
311
|
+
>
|
|
312
|
+
{FullSubmitStore.loadingButton ? (
|
|
313
|
+
<ActivityIndicator size={'small'} color="white" />
|
|
314
|
+
) : (
|
|
315
|
+
<MText
|
|
316
|
+
style={[
|
|
317
|
+
commonStyles.textNormalBold,
|
|
318
|
+
{ color: '#FFFFFF' },
|
|
319
|
+
]}
|
|
320
|
+
>
|
|
321
|
+
Hoàn thành
|
|
322
|
+
</MText>
|
|
323
|
+
)}
|
|
324
|
+
</LinearGradient>
|
|
325
|
+
</TouchableOpacity>
|
|
326
|
+
)}
|
|
327
|
+
</Observer>
|
|
290
328
|
</View>
|
|
291
329
|
<View
|
|
292
330
|
style={{
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
useNavigation,
|
|
6
6
|
} from '@react-navigation/native';
|
|
7
7
|
import { Formik } from 'formik';
|
|
8
|
-
import { observer } from 'mobx-react-lite';
|
|
8
|
+
import { observer, Observer } from 'mobx-react-lite';
|
|
9
9
|
import React, { useEffect, useRef, useState } from 'react';
|
|
10
10
|
import {
|
|
11
11
|
ActivityIndicator,
|
|
@@ -880,33 +880,41 @@ export const UpdateInfo = observer(function UpdateInfo({
|
|
|
880
880
|
</View>
|
|
881
881
|
</View>
|
|
882
882
|
<View style={{ marginTop: 40 }}>
|
|
883
|
-
<
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
colors={
|
|
889
|
-
isValid
|
|
890
|
-
? ['#FF7A00', '#EF4123']
|
|
891
|
-
: ['#BDBDBD', '#BDBDBD']
|
|
892
|
-
}
|
|
893
|
-
style={{
|
|
894
|
-
alignItems: 'center',
|
|
895
|
-
borderRadius: 30,
|
|
896
|
-
height: 40,
|
|
897
|
-
justifyContent: 'center',
|
|
898
|
-
}}
|
|
899
|
-
>
|
|
900
|
-
<MText
|
|
901
|
-
style={[
|
|
902
|
-
commonStyles.textNormalBold,
|
|
903
|
-
{ color: '#FFFFFF' },
|
|
904
|
-
]}
|
|
883
|
+
<Observer>
|
|
884
|
+
{() => (
|
|
885
|
+
<TouchableOpacity
|
|
886
|
+
disabled={!isValid || FullSubmitStore.loadingButton}
|
|
887
|
+
onPress={() => handleSubmit()}
|
|
905
888
|
>
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
889
|
+
<LinearGradient
|
|
890
|
+
colors={
|
|
891
|
+
isValid
|
|
892
|
+
? ['#FF7A00', '#EF4123']
|
|
893
|
+
: ['#BDBDBD', '#BDBDBD']
|
|
894
|
+
}
|
|
895
|
+
style={{
|
|
896
|
+
alignItems: 'center',
|
|
897
|
+
borderRadius: 30,
|
|
898
|
+
height: 40,
|
|
899
|
+
justifyContent: 'center',
|
|
900
|
+
}}
|
|
901
|
+
>
|
|
902
|
+
{FullSubmitStore.loadingButton ? (
|
|
903
|
+
<ActivityIndicator color={'white'} size="small" />
|
|
904
|
+
) : (
|
|
905
|
+
<MText
|
|
906
|
+
style={[
|
|
907
|
+
commonStyles.textNormalBold,
|
|
908
|
+
{ color: '#FFFFFF' },
|
|
909
|
+
]}
|
|
910
|
+
>
|
|
911
|
+
Tiếp tục
|
|
912
|
+
</MText>
|
|
913
|
+
)}
|
|
914
|
+
</LinearGradient>
|
|
915
|
+
</TouchableOpacity>
|
|
916
|
+
)}
|
|
917
|
+
</Observer>
|
|
910
918
|
</View>
|
|
911
919
|
<KeyboardSpacer />
|
|
912
920
|
</View>
|