react-native-timacare 0.0.7 → 0.0.8

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.
Files changed (155) hide show
  1. package/lib/commonjs/assets/icons/b1.svg +75 -0
  2. package/lib/commonjs/assets/icons/b2.svg +74 -0
  3. package/lib/commonjs/assets/icons/b3.svg +99 -0
  4. package/lib/commonjs/assets/icons/b4.svg +80 -0
  5. package/lib/commonjs/assets/icons/b5.svg +76 -0
  6. package/lib/commonjs/assets/icons/b6.svg +74 -0
  7. package/lib/commonjs/assets/icons/close.svg +6 -0
  8. package/lib/commonjs/assets/icons/close2.svg +6 -0
  9. package/lib/commonjs/assets/icons/guideline.svg +12 -0
  10. package/lib/commonjs/assets/icons/index.js +1 -1
  11. package/lib/commonjs/assets/icons/index.js.flow +127 -107
  12. package/lib/commonjs/assets/icons/index.js.map +1 -1
  13. package/lib/commonjs/assets/icons/line.svg +6 -0
  14. package/lib/commonjs/assets/img/b1.png +0 -0
  15. package/lib/commonjs/assets/img/b2.png +0 -0
  16. package/lib/commonjs/assets/img/b3.png +0 -0
  17. package/lib/commonjs/assets/img/b4.png +0 -0
  18. package/lib/commonjs/assets/img/b5.png +0 -0
  19. package/lib/commonjs/assets/img/b6.png +0 -0
  20. package/lib/commonjs/navigation/primary-navigator.js +1 -1
  21. package/lib/commonjs/navigation/primary-navigator.js.flow +5 -2
  22. package/lib/commonjs/navigation/primary-navigator.js.map +1 -1
  23. package/lib/commonjs/screens/home/index.js +1 -1
  24. package/lib/commonjs/screens/home/index.js.flow +294 -529
  25. package/lib/commonjs/screens/home/index.js.map +1 -1
  26. package/lib/commonjs/screens/loginWithPassword/index.js +1 -1
  27. package/lib/commonjs/screens/loginWithPassword/index.js.flow +8 -6
  28. package/lib/commonjs/screens/loginWithPassword/index.js.map +1 -1
  29. package/lib/commonjs/screens/loginWithPassword/store.js +1 -1
  30. package/lib/commonjs/screens/loginWithPassword/store.js.flow +1 -1
  31. package/lib/commonjs/screens/loginWithPassword/store.js.map +1 -1
  32. package/lib/commonjs/screens/otp/Store.js +1 -1
  33. package/lib/commonjs/screens/otp/Store.js.flow +1 -1
  34. package/lib/commonjs/screens/otp/Store.js.map +1 -1
  35. package/lib/commonjs/screens/payment-evidence/Guideline.js +2 -0
  36. package/lib/commonjs/screens/payment-evidence/Guideline.js.flow +117 -0
  37. package/lib/commonjs/screens/payment-evidence/Guideline.js.map +1 -0
  38. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js +2 -0
  39. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js.flow +131 -0
  40. package/lib/commonjs/screens/payment-evidence/ModalGuideline.js.map +1 -0
  41. package/lib/commonjs/screens/payment-evidence/index.js +1 -1
  42. package/lib/commonjs/screens/payment-evidence/index.js.flow +22 -2
  43. package/lib/commonjs/screens/payment-evidence/index.js.map +1 -1
  44. package/lib/commonjs/screens/quick-submit/index.js +1 -1
  45. package/lib/commonjs/screens/quick-submit/index.js.flow +20 -15
  46. package/lib/commonjs/screens/quick-submit/index.js.map +1 -1
  47. package/lib/commonjs/screens/setPassword/store.js +1 -1
  48. package/lib/commonjs/screens/setPassword/store.js.flow +1 -3
  49. package/lib/commonjs/screens/setPassword/store.js.map +1 -1
  50. package/lib/commonjs/screens/splash/index.js +1 -1
  51. package/lib/commonjs/screens/splash/index.js.flow +5 -15
  52. package/lib/commonjs/screens/splash/index.js.map +1 -1
  53. package/lib/commonjs/services/api/api-config.js.flow +0 -19
  54. package/lib/commonjs/services/api/api-config.js.map +1 -1
  55. package/lib/commonjs/services/api/api.js +1 -1
  56. package/lib/commonjs/services/api/api.js.flow +4 -17
  57. package/lib/commonjs/services/api/api.js.map +1 -1
  58. package/lib/commonjs/services/reactotron/reactotron.js +1 -1
  59. package/lib/commonjs/services/reactotron/reactotron.js.flow +1 -1
  60. package/lib/commonjs/services/reactotron/reactotron.js.map +1 -1
  61. package/lib/module/assets/icons/b1.svg +75 -0
  62. package/lib/module/assets/icons/b2.svg +74 -0
  63. package/lib/module/assets/icons/b3.svg +99 -0
  64. package/lib/module/assets/icons/b4.svg +80 -0
  65. package/lib/module/assets/icons/b5.svg +76 -0
  66. package/lib/module/assets/icons/b6.svg +74 -0
  67. package/lib/module/assets/icons/close.svg +6 -0
  68. package/lib/module/assets/icons/close2.svg +6 -0
  69. package/lib/module/assets/icons/guideline.svg +12 -0
  70. package/lib/module/assets/icons/index.js +1 -1
  71. package/lib/module/assets/icons/index.js.map +1 -1
  72. package/lib/module/assets/icons/line.svg +6 -0
  73. package/lib/module/assets/img/b1.png +0 -0
  74. package/lib/module/assets/img/b2.png +0 -0
  75. package/lib/module/assets/img/b3.png +0 -0
  76. package/lib/module/assets/img/b4.png +0 -0
  77. package/lib/module/assets/img/b5.png +0 -0
  78. package/lib/module/assets/img/b6.png +0 -0
  79. package/lib/module/navigation/primary-navigator.js +1 -1
  80. package/lib/module/navigation/primary-navigator.js.map +1 -1
  81. package/lib/module/screens/home/index.js +1 -1
  82. package/lib/module/screens/home/index.js.map +1 -1
  83. package/lib/module/screens/loginWithPassword/index.js +1 -1
  84. package/lib/module/screens/loginWithPassword/index.js.map +1 -1
  85. package/lib/module/screens/loginWithPassword/store.js +1 -1
  86. package/lib/module/screens/loginWithPassword/store.js.map +1 -1
  87. package/lib/module/screens/otp/Store.js +1 -1
  88. package/lib/module/screens/otp/Store.js.map +1 -1
  89. package/lib/module/screens/payment-evidence/Guideline.js +2 -0
  90. package/lib/module/screens/payment-evidence/Guideline.js.map +1 -0
  91. package/lib/module/screens/payment-evidence/ModalGuideline.js +2 -0
  92. package/lib/module/screens/payment-evidence/ModalGuideline.js.map +1 -0
  93. package/lib/module/screens/payment-evidence/index.js +1 -1
  94. package/lib/module/screens/payment-evidence/index.js.map +1 -1
  95. package/lib/module/screens/quick-submit/index.js +1 -1
  96. package/lib/module/screens/quick-submit/index.js.map +1 -1
  97. package/lib/module/screens/setPassword/store.js +1 -1
  98. package/lib/module/screens/setPassword/store.js.map +1 -1
  99. package/lib/module/screens/splash/index.js +1 -1
  100. package/lib/module/screens/splash/index.js.map +1 -1
  101. package/lib/module/services/api/api-config.js.map +1 -1
  102. package/lib/module/services/api/api.js +1 -1
  103. package/lib/module/services/api/api.js.map +1 -1
  104. package/lib/module/services/reactotron/reactotron.js +1 -1
  105. package/lib/module/services/reactotron/reactotron.js.map +1 -1
  106. package/lib/typescript/assets/icons/index.d.ts +117 -107
  107. package/lib/typescript/assets/icons/index.d.ts.map +1 -1
  108. package/lib/typescript/navigation/primary-navigator.d.ts +1 -0
  109. package/lib/typescript/navigation/primary-navigator.d.ts.map +1 -1
  110. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  111. package/lib/typescript/screens/loginWithPassword/index.d.ts.map +1 -1
  112. package/lib/typescript/screens/payment-evidence/Guideline.d.ts +2 -0
  113. package/lib/typescript/screens/payment-evidence/Guideline.d.ts.map +1 -0
  114. package/lib/typescript/screens/payment-evidence/ModalGuideline.d.ts +7 -0
  115. package/lib/typescript/screens/payment-evidence/ModalGuideline.d.ts.map +1 -0
  116. package/lib/typescript/screens/payment-evidence/index.d.ts.map +1 -1
  117. package/lib/typescript/screens/quick-submit/index.d.ts.map +1 -1
  118. package/lib/typescript/screens/setPassword/store.d.ts.map +1 -1
  119. package/lib/typescript/screens/splash/index.d.ts.map +1 -1
  120. package/lib/typescript/services/api/api-config.d.ts +0 -12
  121. package/lib/typescript/services/api/api-config.d.ts.map +1 -1
  122. package/lib/typescript/services/api/api.d.ts +1 -11
  123. package/lib/typescript/services/api/api.d.ts.map +1 -1
  124. package/package.json +2 -1
  125. package/src/assets/icons/b1.svg +75 -0
  126. package/src/assets/icons/b2.svg +74 -0
  127. package/src/assets/icons/b3.svg +99 -0
  128. package/src/assets/icons/b4.svg +80 -0
  129. package/src/assets/icons/b5.svg +76 -0
  130. package/src/assets/icons/b6.svg +74 -0
  131. package/src/assets/icons/close.svg +6 -0
  132. package/src/assets/icons/close2.svg +6 -0
  133. package/src/assets/icons/guideline.svg +12 -0
  134. package/src/assets/icons/index.tsx +127 -107
  135. package/src/assets/icons/line.svg +6 -0
  136. package/src/assets/img/b1.png +0 -0
  137. package/src/assets/img/b2.png +0 -0
  138. package/src/assets/img/b3.png +0 -0
  139. package/src/assets/img/b4.png +0 -0
  140. package/src/assets/img/b5.png +0 -0
  141. package/src/assets/img/b6.png +0 -0
  142. package/src/navigation/primary-navigator.tsx +5 -2
  143. package/src/screens/home/index.tsx +294 -529
  144. package/src/screens/loginWithPassword/index.tsx +8 -6
  145. package/src/screens/loginWithPassword/store.tsx +1 -1
  146. package/src/screens/otp/Store.tsx +1 -1
  147. package/src/screens/payment-evidence/Guideline.tsx +117 -0
  148. package/src/screens/payment-evidence/ModalGuideline.tsx +131 -0
  149. package/src/screens/payment-evidence/index.tsx +22 -2
  150. package/src/screens/quick-submit/index.tsx +20 -15
  151. package/src/screens/setPassword/store.tsx +1 -3
  152. package/src/screens/splash/index.tsx +5 -15
  153. package/src/services/api/api-config.ts +0 -19
  154. package/src/services/api/api.ts +4 -17
  155. package/src/services/reactotron/reactotron.ts +1 -1
@@ -9,6 +9,7 @@ import {
9
9
  RefreshControl,
10
10
  SafeAreaView,
11
11
  ScrollView,
12
+ StatusBar,
12
13
  TouchableOpacity,
13
14
  View,
14
15
  } from 'react-native';
@@ -24,10 +25,12 @@ import {
24
25
  AddInfo,
25
26
  AddInfoDisable,
26
27
  CIMBSmall,
28
+ CloseIcon,
27
29
  Contract,
28
30
  ContractActive,
29
31
  ContractTimeIcon,
30
32
  IconEviden,
33
+ IconNavClose,
31
34
  IconNotify,
32
35
  IconSchedule,
33
36
  IconSign2,
@@ -67,7 +70,6 @@ export const Home = observer(function Home() {
67
70
  const navigation = useNavigation();
68
71
  const [showModal, setShowModal] = useState(false);
69
72
  const onRefresh = () => {
70
- notificationStore.getNotification();
71
73
  homeStore.getListLoan();
72
74
  homeStore.getListLoanPending((loan) => {
73
75
  homeStore.getCheckEKYC({ loanBriefId: loan.id });
@@ -105,47 +107,6 @@ export const Home = observer(function Home() {
105
107
  });
106
108
  };
107
109
 
108
- // const sendInfo = async () => {
109
- // const result = await Geolocation.requestAuthorization("always")
110
- // if (result === "granted") {
111
- // Geolocation.getCurrentPosition(
112
- // (position) => {
113
- // let deviceId = getUniqueId()
114
- // if (appStore.loanData.length > 0) {
115
- // axios
116
- // .post(
117
- // "https://gateway.tima-ai.dev/data-center/imei-customer/create",
118
- // {
119
- // loanBriefId: appStore.loanData[0]?.loanBriefId,
120
- // phone: appStore.phone,
121
- // imei: deviceId,
122
- // latitude: position.coords.latitude,
123
- // longtitude: position.coords.longitude,
124
- // loanStatus: appStore.loanData[0]?.status
125
- // },
126
- // {
127
- // headers: {
128
- // Authorization:
129
- // "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJpbWVpX2N1c3RvbWVyIiwiYXV0aG9yaXRpZXMiOlsiUk9MRV9kYXRhLWNlbnRlciJdLCJpYXQiOjE2NjMyMjk5MzYsImV4cCI6MzMxOTkyMjk5MzZ9.SgM9rnKIecfwe_4qYKBrPzQKUfueZhGip5Fj1iI0uoxDL_WCN_aU2VLzyHFAz0bMO6GwgsyNuH4jivJBO_totg",
130
- // },
131
- // },
132
- // )
133
- // .then((response) => console.log(response, "send Imei"))
134
- // }
135
- // },
136
- // (error) => {
137
- // // See error code charts below.
138
- // console.log(error.code, error.message)
139
- // },
140
- // { enableHighAccuracy: true, timeout: 15000, maximumAge: 10000 },
141
- // )
142
- // }
143
- // }
144
-
145
- // useEffect(() => {
146
- // sendInfo()
147
- // }, [])
148
-
149
110
  const requestPermissions = () => {
150
111
  request(
151
112
  Platform.OS === 'android'
@@ -254,6 +215,7 @@ export const Home = observer(function Home() {
254
215
  <View
255
216
  style={[commonStyles.fill, { zIndex: 1, backgroundColor: '#FFFFFF' }]}
256
217
  >
218
+ <StatusBar barStyle={'light-content'} />
257
219
  {homeStore.isLoading ? (
258
220
  <View
259
221
  style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}
@@ -262,64 +224,45 @@ export const Home = observer(function Home() {
262
224
  </View>
263
225
  ) : (
264
226
  <>
265
- {/* <SafeAreaView style={{ backgroundColor: '#FFFFFF' }}>
266
- <View
267
- style={{
268
- flexDirection: 'row',
269
- paddingHorizontal: 16,
270
- marginTop: 10,
271
- justifyContent: 'space-between',
272
- }}
273
- >
274
- <View style={{ flexDirection: 'row' }}>
275
- <TimaNormal />
276
- <View style={{ marginLeft: 8 }}>
277
- <MText
278
- style={[commonStyles.textNormalBold, { fontSize: 16 }]}
279
- >
280
- Tima Care
281
- </MText>
282
- <MText style={[commonStyles.textNormal, { fontSize: 12 }]}>
283
- Chúc bạn một ngày vui vẻ!
284
- </MText>
285
- </View>
286
- </View>
287
- <TouchableOpacity
288
- onPress={() =>
289
- navigation.dispatch(
290
- StackActions.push(ScreenNames.Notification)
291
- )
292
- }
227
+ <SafeAreaView>
228
+ <LinearGradient colors={['#FF8E4F', '#EF592E']}>
229
+ <View
230
+ style={{
231
+ flexDirection: 'row',
232
+ justifyContent: 'space-between',
233
+ paddingHorizontal: 16,
234
+ paddingVertical: 16,
235
+ alignItems: 'center',
236
+ }}
293
237
  >
294
- <IconNotify />
295
- <View
238
+ <MText
296
239
  style={{
297
- position: 'absolute',
298
- backgroundColor: '#FB3F2D',
299
- borderRadius: 50,
300
- width: 18,
301
- height: 18,
302
- alignItems: 'center',
240
+ fontWeight: 'bold',
241
+ color: 'white',
242
+ fontSize: 16,
243
+ }}
244
+ >
245
+ Vay nhanh 24/7
246
+ </MText>
247
+ <TouchableOpacity
248
+ style={{
249
+ width: 32,
250
+ height: 32,
251
+ borderRadius: 20,
303
252
  justifyContent: 'center',
304
- right: -8,
305
- top: -8,
253
+ alignItems: 'center',
254
+ borderWidth: 1,
255
+ borderColor: 'white',
256
+ }}
257
+ onPress={() => {
258
+ navigation.push(ScreenNames.PaymentEvidence);
306
259
  }}
307
260
  >
308
- <MText
309
- style={{
310
- color: 'white',
311
- fontSize: notificationStore.data.length > 10 ? 8 : 12,
312
- }}
313
- >
314
- {notificationStore.data.length > 10
315
- ? '10+'
316
- : notificationStore.data.length}
317
- </MText>
318
- </View>
319
- </TouchableOpacity>
320
- </View>
321
- </SafeAreaView> */}
322
-
261
+ <CloseIcon />
262
+ </TouchableOpacity>
263
+ </View>
264
+ </LinearGradient>
265
+ </SafeAreaView>
323
266
  <ScrollView
324
267
  refreshControl={
325
268
  <RefreshControl
@@ -329,15 +272,6 @@ export const Home = observer(function Home() {
329
272
  }
330
273
  style={{ flex: 1, marginBottom: 16 }}
331
274
  >
332
- {/* <View style={{ marginTop: 16 }}>
333
- <SliderBox
334
- images={listBanners}
335
- autoplay
336
- resizeMethod={'resize'}
337
- resizeMode={'contain'}
338
- ImageComponentStyle={{ borderRadius: 15, width: '92%' }}
339
- />
340
- </View> */}
341
275
  <View
342
276
  style={[
343
277
  commonStyles.fill,
@@ -360,470 +294,301 @@ export const Home = observer(function Home() {
360
294
  <>
361
295
  {homeStore.listLoanPending &&
362
296
  homeStore.listLoanPending?.isPipelineCIMB ? (
363
- <View>
364
- {homeStore.listLoanPending?.loanStatus !== null &&
365
- homeStore.listLoanPending?.loanStatus !== '' ? (
366
- <View
367
- style={{
368
- backgroundColor: '#FFFFFF',
369
- paddingHorizontal: 16,
370
- paddingTop: 16,
371
- borderRadius: 8,
372
- borderWidth: 0.5,
373
- borderColor: '#E0E0E0',
374
- }}
297
+ <View
298
+ style={{
299
+ backgroundColor: '#FFFFFF',
300
+ paddingHorizontal: 16,
301
+ paddingTop: 16,
302
+ borderRadius: 8,
303
+ borderWidth: 0.5,
304
+ borderColor: '#E0E0E0',
305
+ }}
306
+ >
307
+ <View
308
+ style={{
309
+ flexDirection: 'row',
310
+ alignItems: 'center',
311
+ }}
312
+ >
313
+ <Contract />
314
+ <View style={{ flex: 1, paddingLeft: 8 }}>
315
+ <MText style={commonStyles.textNormalBold}>
316
+ Mã Đơn vay-{homeStore.listLoanPending?.id}
317
+ </MText>
318
+ <MText style={commonStyles.textNormal}>
319
+ Số tiền vay (VND):{' '}
320
+ {homeStore.listLoanPending?.loanAmountOffer
321
+ ? formatMoney(
322
+ homeStore.listLoanPending?.loanAmountOffer
323
+ )
324
+ : 'Chưa xác định'}
325
+ </MText>
326
+ </View>
327
+ </View>
328
+ <View
329
+ style={{
330
+ height: 1,
331
+ backgroundColor: '#E0E0E0',
332
+ marginVertical: 16,
333
+ }}
334
+ />
335
+ <View
336
+ style={{
337
+ flexDirection: 'row',
338
+ justifyContent: 'space-between',
339
+ }}
340
+ >
341
+ <MText style={commonStyles.textNormal}>
342
+ Trạng thái
343
+ </MText>
344
+ <MText
345
+ style={[
346
+ commonStyles.textNormalBold,
347
+ { color: '#F05123' },
348
+ ]}
375
349
  >
376
- <View
377
- style={{
378
- flexDirection: 'row',
379
- alignItems: 'center',
380
- }}
381
- >
382
- <Contract />
383
- <View style={{ flex: 1, paddingLeft: 8 }}>
384
- <MText style={commonStyles.textNormalBold}>
385
- Mã Đơn vay-{homeStore.listLoanPending?.id}
386
- </MText>
387
- <MText style={commonStyles.textNormal}>
388
- Số tiền vay (VND):{' '}
389
- {homeStore.listLoanPending?.loanAmountOffer
390
- ? formatMoney(
391
- homeStore.listLoanPending
392
- ?.loanAmountOffer
393
- )
394
- : 'Chưa xác định'}
395
- </MText>
396
- </View>
397
- </View>
398
- <View
399
- style={{
400
- height: 1,
401
- backgroundColor: '#E0E0E0',
402
- marginVertical: 16,
403
- }}
404
- />
405
- <View
406
- style={{
407
- flexDirection: 'row',
408
- justifyContent: 'space-between',
350
+ {homeStore?.listLoanPending?.loanStatus}
351
+ </MText>
352
+ </View>
353
+ <View
354
+ style={{
355
+ height: 0.5,
356
+ backgroundColor: '#E0E0E0',
357
+ marginVertical: 16,
358
+ }}
359
+ />
360
+ <View style={{ flexDirection: 'row' }}>
361
+ {homeStore?.listLoanPending?.isUpdateLoan ||
362
+ homeStore?.listLoanPending?.isUpdateInformation ? (
363
+ <TouchableOpacity
364
+ style={{ alignItems: 'center' }}
365
+ onPress={() => {
366
+ if (
367
+ homeStore.listLoanPending?.loanStatus ===
368
+ null ||
369
+ homeStore.listLoanPending?.loanStatus === ''
370
+ ) {
371
+ navigation.dispatch(
372
+ StackActions.push(ScreenNames.CIMBxTima, {
373
+ loan: homeStore.listLoanPending,
374
+ })
375
+ );
376
+ } else if (
377
+ homeStore.listLoanPending?.isUpdateLoan
378
+ ) {
379
+ navigation.dispatch(
380
+ StackActions.push(ScreenNames.CimbSelfie, {
381
+ loan: homeStore.listLoanPending,
382
+ })
383
+ );
384
+ } else {
385
+ navigation.dispatch(
386
+ StackActions.push(ScreenNames.QuickSubmit, {
387
+ loan: homeStore.listLoanPending,
388
+ })
389
+ );
390
+ }
409
391
  }}
410
392
  >
411
- <MText style={commonStyles.textNormal}>
412
- Trạng thái
393
+ <AddInfo />
394
+ <MText
395
+ style={[
396
+ commonStyles.textNormal,
397
+ {
398
+ fontSize: 12,
399
+ fontWeight: '300',
400
+ marginTop: 8,
401
+ textAlign: 'center',
402
+ },
403
+ ]}
404
+ >
405
+ Hoàn thiện{'\n'}cung cấp thông tin
413
406
  </MText>
407
+ </TouchableOpacity>
408
+ ) : (
409
+ <View style={{ alignItems: 'center' }}>
410
+ <AddInfoDisable />
414
411
  <MText
415
412
  style={[
416
- commonStyles.textNormalBold,
417
- { color: '#F05123' },
413
+ commonStyles.textNormal,
414
+ {
415
+ fontSize: 12,
416
+ fontWeight: '300',
417
+ marginTop: 8,
418
+ textAlign: 'center',
419
+ },
418
420
  ]}
419
421
  >
420
- {homeStore?.listLoanPending?.loanStatus}
422
+ Hoàn thiện{'\n'}cung cấp thông tin
421
423
  </MText>
422
424
  </View>
423
- <View
424
- style={{
425
- height: 0.5,
426
- backgroundColor: '#E0E0E0',
427
- marginVertical: 16,
428
- }}
429
- />
430
- <View style={{ flexDirection: 'row' }}>
431
- {homeStore?.listLoanPending?.isUpdateLoan ||
432
- homeStore?.listLoanPending
433
- ?.isUpdateInformation ? (
434
- <TouchableOpacity
435
- style={{ alignItems: 'center' }}
436
- onPress={() => {
437
- if (
438
- homeStore.listLoanPending?.isUpdateLoan
439
- ) {
440
- navigation.dispatch(
441
- StackActions.push(
442
- ScreenNames.CimbSelfie,
443
- {
444
- loan: homeStore.listLoanPending,
445
- }
446
- )
447
- );
448
- } else {
449
- navigation.dispatch(
450
- StackActions.push(
451
- ScreenNames.QuickSubmit,
452
- {
453
- loan: homeStore.listLoanPending,
454
- }
455
- )
456
- );
457
- }
458
- }}
459
- >
460
- <AddInfo />
461
- <MText
462
- style={[
463
- commonStyles.textNormal,
464
- {
465
- fontSize: 12,
466
- fontWeight: '300',
467
- marginTop: 8,
468
- textAlign: 'center',
469
- },
470
- ]}
471
- >
472
- Hoàn thiện{'\n'}cung cấp thông tin
473
- </MText>
474
- </TouchableOpacity>
475
- ) : (
476
- <View style={{ alignItems: 'center' }}>
477
- <AddInfoDisable />
478
- <MText
479
- style={[
480
- commonStyles.textNormal,
481
- {
482
- fontSize: 12,
483
- fontWeight: '300',
484
- marginTop: 8,
485
- textAlign: 'center',
486
- },
487
- ]}
488
- >
489
- Hoàn thiện{'\n'}cung cấp thông tin
490
- </MText>
491
- </View>
492
- )}
493
- {homeStore.listLoanPending?.isSignContract && (
494
- <TouchableOpacity
495
- style={{
496
- alignItems: 'center',
497
- marginLeft: 20,
498
- }}
499
- onPress={() => {
500
- if (
501
- homeStore.listLoanPending?.urlSignContract
502
- ) {
503
- navigation.dispatch(
504
- StackActions.push(
505
- ScreenNames.CIMBSign,
506
- {
507
- url: homeStore.listLoanPending
508
- ?.urlSignContract,
509
- }
510
- )
511
- );
512
- } else {
513
- Alert.alert(
514
- 'Thông báo',
515
- 'Bạn chưa thể ký hợp đồng bây giờ?'
516
- );
517
- }
518
- }}
519
- >
520
- <IconSign2 />
521
- <MText
522
- style={[
523
- commonStyles.textNormal,
524
- {
525
- fontSize: 12,
526
- fontWeight: '300',
527
- marginTop: 8,
528
- },
529
- ]}
530
- >
531
- Ký hợp đồng
532
- </MText>
533
- </TouchableOpacity>
534
- )}
535
- {homeStore.listLoanPending
536
- ?.isSignContractTima && (
537
- <TouchableOpacity
538
- style={{
539
- alignItems: 'center',
540
- marginLeft: 20,
541
- }}
542
- onPress={() => {
543
- navigation.dispatch(
544
- StackActions.push(
545
- ScreenNames.ViewContract,
546
- {
547
- loan: homeStore.listLoanPending,
548
- }
549
- )
550
- );
551
- }}
552
- >
553
- <ContractTimeIcon />
554
- <MText
555
- style={[
556
- commonStyles.textNormal,
557
- {
558
- fontSize: 12,
559
- fontWeight: '300',
560
- marginTop: 8,
561
- textAlign: 'center',
562
- },
563
- ]}
564
- >
565
- Hợp đồng{'\n'}dịch vụ
566
- </MText>
567
- </TouchableOpacity>
568
- )}
569
- {homeStore.listLoanPending
570
- ?.paymentEvidenceUrl && (
571
- <TouchableOpacity
572
- style={{
573
- alignItems: 'center',
574
- marginLeft: 20,
575
- }}
576
- onPress={() => {
577
- navigation.dispatch(
578
- StackActions.push(
579
- ScreenNames.PaymentEvidence,
580
- {
581
- url: homeStore.listLoanPending
582
- ?.paymentEvidenceUrl,
583
- }
584
- )
585
- );
586
- }}
587
- >
588
- <IconEviden />
589
- <MText
590
- style={[
591
- commonStyles.textNormal,
592
- {
593
- fontSize: 12,
594
- fontWeight: '300',
595
- marginTop: 8,
596
- textAlign: 'center',
597
- },
598
- ]}
599
- >
600
- Mục đích {'\n'}sử dụng
601
- </MText>
602
- </TouchableOpacity>
603
- )}
604
- {homeStore.listLoanPending?.showPaymentPlan && (
605
- <TouchableOpacity
606
- style={{
607
- alignItems: 'center',
608
- marginLeft: 20,
609
- }}
610
- onPress={() => {
611
- navigation.dispatch(
612
- StackActions.push(
613
- ScreenNames.SchedulePayment,
614
- {
615
- loan: homeStore.listLoanPending,
616
- }
617
- )
618
- );
619
- }}
620
- >
621
- <IconSchedule />
622
- <MText
623
- style={[
624
- commonStyles.textNormal,
625
- {
626
- fontSize: 12,
627
- fontWeight: '300',
628
- marginTop: 8,
629
- },
630
- ]}
631
- >
632
- Lịch dự kiến
633
- </MText>
634
- </TouchableOpacity>
635
- )}
636
- </View>
637
- <View
425
+ )}
426
+ {homeStore.listLoanPending?.isSignContract && (
427
+ <TouchableOpacity
638
428
  style={{
639
- flexDirection: 'row',
640
429
  alignItems: 'center',
641
- backgroundColor: '#FBEFE7',
642
- marginHorizontal: -16,
643
- paddingVertical: 8,
644
- marginTop: 16,
645
- borderBottomRightRadius: 8,
646
- borderBottomLeftRadius: 8,
647
- paddingHorizontal: 16,
430
+ marginLeft: 20,
431
+ }}
432
+ onPress={() => {
433
+ if (
434
+ homeStore.listLoanPending?.urlSignContract
435
+ ) {
436
+ navigation.dispatch(
437
+ StackActions.push(ScreenNames.CIMBSign, {
438
+ url: homeStore.listLoanPending
439
+ ?.urlSignContract,
440
+ })
441
+ );
442
+ } else {
443
+ Alert.alert(
444
+ 'Thông báo',
445
+ 'Bạn chưa thể ký hợp đồng bây giờ?'
446
+ );
447
+ }
648
448
  }}
649
449
  >
650
- <Info />
450
+ <IconSign2 />
651
451
  <MText
652
452
  style={[
453
+ commonStyles.textNormal,
653
454
  {
455
+ fontSize: 12,
654
456
  fontWeight: '300',
655
- fontSize: 10,
656
- fontStyle: 'italic',
657
- color: '#333333',
658
- marginLeft: 8,
457
+ marginTop: 8,
659
458
  },
660
459
  ]}
661
460
  >
662
- {homeStore.listLoanPending?.suggestion
663
- ? homeStore.listLoanPending?.suggestion
664
- : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
461
+ Ký hợp đồng
665
462
  </MText>
666
- </View>
667
- </View>
668
- ) : (
669
- // <View
670
- // style={{
671
- // borderWidth: 0.5,
672
- // borderRadius: 8,
673
- // borderColor: "#EF4123",
674
- // }}
675
- // >
676
- // <View
677
- // style={{
678
- // flexDirection: "row",
679
- // justifyContent: "space-between",
680
- // padding: 16,
681
- // }}
682
- // >
683
- // <View>
684
- // <MText style={{ color: "#333333" }}>
685
- // Bạn đủ điều kiện vay tiêu dùng theo{"\n"}thông tin tài sản sở hữu
686
- // (Xe máy/ Ô tô)
687
- // </MText>
688
- // <MText
689
- // style={{
690
- // color: "#EF4123",
691
- // fontSize: 16,
692
- // fontWeight: "bold",
693
- // marginTop: 8,
694
- // }}
695
- // >
696
- // {/* {homeStore?.listLoanPending?.productCredit}
697
- // {"\n"} */}
698
- // {formatMoney(homeStore.listLoanPending?.loanAmount)} VND
699
- // </MText>
700
- // <TouchableOpacity
701
- // onPress={() => {
702
- // navigation.dispatch(StackActions.push(ScreenNames.CIMBxTima))
703
- // }}
704
- // >
705
- // <LinearGradient
706
- // colors={["#FF7A00", "#EF4123"]}
707
- // style={{
708
- // backgroundColor: "#F36D21",
709
- // marginTop: 20,
710
- // alignItems: "center",
711
- // borderRadius: 30,
712
- // paddingVertical: 8,
713
- // }}
714
- // >
715
- // <MText style={{ color: "#FFFFFF" }}>Hoàn thiện hồ sơ</MText>
716
- // </LinearGradient>
717
- // </TouchableOpacity>
718
- // </View>
719
- // <View>
720
- // <Image source={require("./loan.png")} />
721
- // </View>
722
- // </View>
723
- // <View style={{ height: 0.5, backgroundColor: "#EF4123" }} />
724
- // <View
725
- // style={{
726
- // backgroundColor: "#FFF8F3",
727
- // borderBottomLeftRadius: 8,
728
- // borderBottomRightRadius: 8,
729
- // paddingVertical: 8,
730
- // paddingHorizontal: 16,
731
- // flexDirection: "row",
732
- // alignItems: "center",
733
- // alignContent: "center",
734
- // }}
735
- // >
736
- // <MText style={{ fontSize: 12, color: "#333333" }}>
737
- // Sản phẩm vay tiêu dùng hợp tác giữa{" "}
738
- // </MText>
739
- // <LogoSmall />
740
- // <MText style={{ fontSize: 12, color: "#333333" }}> và </MText>
741
- // <CIMBSmall />
742
- // </View>
743
- // </View>
744
-
745
- <ImageBackground
746
- source={require('../../assets/img/bann.png')}
747
- style={{ flex: 1, padding: 16 }}
748
- resizeMode="cover"
749
- height={220}
750
- borderRadius={8}
751
- >
752
- <MText
753
- style={{
754
- color: '#333333',
755
- fontWeight: 'bold',
756
- fontSize: 12,
757
- }}
758
- >
759
- BẠN ĐỦ ĐIỀU KIỆN VAY TIÊU DÙNG{'\n'}THEO THÔNG TIN
760
- TÀI SẢN SỞ HỮU
761
- {'\n'}
762
- (XE MÁY/ Ô TÔ)
763
- </MText>
764
- <MText
463
+ </TouchableOpacity>
464
+ )}
465
+ {homeStore.listLoanPending?.isSignContractTima && (
466
+ <TouchableOpacity
765
467
  style={{
766
- marginTop: 12,
767
- fontSize: 24,
768
- fontWeight: 'bold',
769
- color: '#EF4123',
468
+ alignItems: 'center',
469
+ marginLeft: 20,
770
470
  }}
771
- >
772
- {formatMoney(
773
- homeStore.listLoanPending?.loanAmount
774
- )}{' '}
775
- VND
776
- </MText>
777
- <TouchableOpacity
778
471
  onPress={() => {
779
472
  navigation.dispatch(
780
- StackActions.push(ScreenNames.CIMBxTima, {
473
+ StackActions.push(ScreenNames.ViewContract, {
781
474
  loan: homeStore.listLoanPending,
782
475
  })
783
476
  );
784
477
  }}
785
478
  >
786
- <LinearGradient
787
- colors={['#FF7A00', '#EF4123']}
788
- style={{
789
- backgroundColor: '#F36D21cd ',
790
- marginTop: 12,
791
- alignItems: 'center',
792
- borderRadius: 30,
793
- paddingVertical: 10,
794
- width: '50%',
795
- }}
479
+ <ContractTimeIcon />
480
+ <MText
481
+ style={[
482
+ commonStyles.textNormal,
483
+ {
484
+ fontSize: 12,
485
+ fontWeight: '300',
486
+ marginTop: 8,
487
+ textAlign: 'center',
488
+ },
489
+ ]}
796
490
  >
797
- <MText
798
- style={{
799
- color: '#FFFFFF',
800
- fontWeight: 'bold',
801
- }}
802
- >
803
- Hoàn thiện hồ sơ
804
- </MText>
805
- </LinearGradient>
491
+ Hợp đồng{'\n'}dịch vụ
492
+ </MText>
806
493
  </TouchableOpacity>
807
- <View
494
+ )}
495
+ {homeStore.listLoanPending?.paymentEvidenceUrl && (
496
+ <TouchableOpacity
808
497
  style={{
809
- flexDirection: 'row',
810
498
  alignItems: 'center',
811
- alignContent: 'center',
812
- marginTop: 16,
499
+ marginLeft: 20,
500
+ }}
501
+ onPress={() => {
502
+ navigation.dispatch(
503
+ StackActions.push(
504
+ ScreenNames.PaymentEvidence,
505
+ {
506
+ url: homeStore.listLoanPending
507
+ ?.paymentEvidenceUrl,
508
+ }
509
+ )
510
+ );
813
511
  }}
814
512
  >
815
- <MText style={{ fontSize: 10, color: '#333333' }}>
816
- SẢN PHẨM VAY TIÊU DÙNG HỢP TÁC GIỮA{' '}
513
+ <IconEviden />
514
+ <MText
515
+ style={[
516
+ commonStyles.textNormal,
517
+ {
518
+ fontSize: 12,
519
+ fontWeight: '300',
520
+ marginTop: 8,
521
+ textAlign: 'center',
522
+ },
523
+ ]}
524
+ >
525
+ Mục đích {'\n'}sử dụng
817
526
  </MText>
818
- <LogoSmall />
819
- <MText style={{ fontSize: 12, color: '#333333' }}>
820
- {' '}
821
- VÀ{' '}
527
+ </TouchableOpacity>
528
+ )}
529
+ {homeStore.listLoanPending?.showPaymentPlan && (
530
+ <TouchableOpacity
531
+ style={{
532
+ alignItems: 'center',
533
+ marginLeft: 20,
534
+ }}
535
+ onPress={() => {
536
+ navigation.dispatch(
537
+ StackActions.push(
538
+ ScreenNames.SchedulePayment,
539
+ {
540
+ loan: homeStore.listLoanPending,
541
+ }
542
+ )
543
+ );
544
+ }}
545
+ >
546
+ <IconSchedule />
547
+ <MText
548
+ style={[
549
+ commonStyles.textNormal,
550
+ {
551
+ fontSize: 12,
552
+ fontWeight: '300',
553
+ marginTop: 8,
554
+ },
555
+ ]}
556
+ >
557
+ Lịch dự kiến
822
558
  </MText>
823
- <CIMBSmall />
824
- </View>
825
- </ImageBackground>
826
- )}
559
+ </TouchableOpacity>
560
+ )}
561
+ </View>
562
+ <View
563
+ style={{
564
+ flexDirection: 'row',
565
+ alignItems: 'center',
566
+ backgroundColor: '#FBEFE7',
567
+ marginHorizontal: -16,
568
+ paddingVertical: 8,
569
+ marginTop: 16,
570
+ borderBottomRightRadius: 8,
571
+ borderBottomLeftRadius: 8,
572
+ paddingHorizontal: 16,
573
+ }}
574
+ >
575
+ <Info />
576
+ <MText
577
+ style={[
578
+ {
579
+ fontWeight: '300',
580
+ fontSize: 10,
581
+ fontStyle: 'italic',
582
+ color: '#333333',
583
+ marginLeft: 8,
584
+ },
585
+ ]}
586
+ >
587
+ {homeStore.listLoanPending?.suggestion
588
+ ? homeStore.listLoanPending?.suggestion
589
+ : 'Thực hiện đầy đủ các bước để giải ngân nhanh nhất'}
590
+ </MText>
591
+ </View>
827
592
  </View>
828
593
  ) : (
829
594
  <View