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.
Files changed (103) hide show
  1. package/lib/commonjs/components/MHeader.js +1 -1
  2. package/lib/commonjs/components/MHeader.js.flow +1 -1
  3. package/lib/commonjs/components/keyboardspace/index.js +1 -1
  4. package/lib/commonjs/components/keyboardspace/index.js.flow +0 -2
  5. package/lib/commonjs/components/keyboardspace/index.js.map +1 -1
  6. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js +1 -1
  7. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.flow +145 -35
  8. package/lib/commonjs/screens/detail-loan/DetailLoanTima.js.map +1 -1
  9. package/lib/commonjs/screens/detail-loan/Info.js +1 -1
  10. package/lib/commonjs/screens/detail-loan/Info.js.flow +16 -8
  11. package/lib/commonjs/screens/detail-loan/Info.js.map +1 -1
  12. package/lib/commonjs/screens/detail-loan/Payment.js +1 -1
  13. package/lib/commonjs/screens/detail-loan/Payment.js.flow +19 -7
  14. package/lib/commonjs/screens/detail-loan/Payment.js.map +1 -1
  15. package/lib/commonjs/screens/detail-loan/PaymentAll.js +1 -1
  16. package/lib/commonjs/screens/detail-loan/PaymentAll.js.flow +49 -9
  17. package/lib/commonjs/screens/detail-loan/PaymentAll.js.map +1 -1
  18. package/lib/commonjs/screens/detail-loan/PaymentInfo.js +1 -1
  19. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.flow +735 -85
  20. package/lib/commonjs/screens/detail-loan/PaymentInfo.js.map +1 -1
  21. package/lib/commonjs/screens/detail-loan/ShowQrCode.js +1 -1
  22. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.flow +678 -35
  23. package/lib/commonjs/screens/detail-loan/ShowQrCode.js.map +1 -1
  24. package/lib/commonjs/screens/detail-loan/index.js +1 -1
  25. package/lib/commonjs/screens/detail-loan/index.js.flow +37 -33
  26. package/lib/commonjs/screens/detail-loan/index.js.map +1 -1
  27. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js +1 -1
  28. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.flow +41 -12
  29. package/lib/commonjs/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  30. package/lib/commonjs/screens/guide-transfer-bank/index.js +1 -1
  31. package/lib/commonjs/screens/guide-transfer-bank/index.js.flow +228 -237
  32. package/lib/commonjs/screens/guide-transfer-bank/index.js.map +1 -1
  33. package/lib/commonjs/screens/home/Store.js +1 -1
  34. package/lib/commonjs/screens/home/Store.js.flow +4 -1
  35. package/lib/commonjs/screens/home/Store.js.map +1 -1
  36. package/lib/commonjs/screens/home/index.js +1 -1
  37. package/lib/commonjs/screens/home/index.js.flow +15 -30
  38. package/lib/commonjs/screens/home/index.js.map +1 -1
  39. package/lib/commonjs/screens/liveness-v2/index.js +1 -1
  40. package/lib/commonjs/screens/liveness-v2/index.js.flow +4 -4
  41. package/lib/commonjs/screens/liveness-v2/index.js.map +1 -1
  42. package/lib/commonjs/services/api/api.js +1 -1
  43. package/lib/commonjs/services/api/api.js.flow +16 -0
  44. package/lib/commonjs/services/api/api.js.map +1 -1
  45. package/lib/module/components/MHeader.js +1 -1
  46. package/lib/module/components/keyboardspace/index.js +1 -1
  47. package/lib/module/components/keyboardspace/index.js.map +1 -1
  48. package/lib/module/screens/detail-loan/DetailLoanTima.js +1 -1
  49. package/lib/module/screens/detail-loan/DetailLoanTima.js.map +1 -1
  50. package/lib/module/screens/detail-loan/Info.js +1 -1
  51. package/lib/module/screens/detail-loan/Info.js.map +1 -1
  52. package/lib/module/screens/detail-loan/Payment.js +1 -1
  53. package/lib/module/screens/detail-loan/Payment.js.map +1 -1
  54. package/lib/module/screens/detail-loan/PaymentAll.js +1 -1
  55. package/lib/module/screens/detail-loan/PaymentAll.js.map +1 -1
  56. package/lib/module/screens/detail-loan/PaymentInfo.js +1 -1
  57. package/lib/module/screens/detail-loan/PaymentInfo.js.map +1 -1
  58. package/lib/module/screens/detail-loan/ShowQrCode.js +1 -1
  59. package/lib/module/screens/detail-loan/ShowQrCode.js.map +1 -1
  60. package/lib/module/screens/detail-loan/index.js +1 -1
  61. package/lib/module/screens/detail-loan/index.js.map +1 -1
  62. package/lib/module/screens/guide-transfer-bank/TransferDetail.js +1 -1
  63. package/lib/module/screens/guide-transfer-bank/TransferDetail.js.map +1 -1
  64. package/lib/module/screens/guide-transfer-bank/index.js +1 -1
  65. package/lib/module/screens/guide-transfer-bank/index.js.map +1 -1
  66. package/lib/module/screens/home/Store.js +1 -1
  67. package/lib/module/screens/home/Store.js.map +1 -1
  68. package/lib/module/screens/home/index.js +1 -1
  69. package/lib/module/screens/home/index.js.map +1 -1
  70. package/lib/module/screens/liveness-v2/index.js +1 -1
  71. package/lib/module/screens/liveness-v2/index.js.map +1 -1
  72. package/lib/module/services/api/api.js +1 -1
  73. package/lib/module/services/api/api.js.map +1 -1
  74. package/lib/typescript/components/keyboardspace/index.d.ts.map +1 -1
  75. package/lib/typescript/screens/detail-loan/DetailLoanTima.d.ts.map +1 -1
  76. package/lib/typescript/screens/detail-loan/Info.d.ts.map +1 -1
  77. package/lib/typescript/screens/detail-loan/Payment.d.ts.map +1 -1
  78. package/lib/typescript/screens/detail-loan/PaymentAll.d.ts.map +1 -1
  79. package/lib/typescript/screens/detail-loan/PaymentInfo.d.ts.map +1 -1
  80. package/lib/typescript/screens/detail-loan/ShowQrCode.d.ts.map +1 -1
  81. package/lib/typescript/screens/detail-loan/index.d.ts.map +1 -1
  82. package/lib/typescript/screens/guide-transfer-bank/TransferDetail.d.ts.map +1 -1
  83. package/lib/typescript/screens/guide-transfer-bank/index.d.ts.map +1 -1
  84. package/lib/typescript/screens/home/Store.d.ts.map +1 -1
  85. package/lib/typescript/screens/home/index.d.ts.map +1 -1
  86. package/lib/typescript/services/api/api.d.ts +16 -0
  87. package/lib/typescript/services/api/api.d.ts.map +1 -1
  88. package/package.json +2 -1
  89. package/src/components/MHeader.tsx +1 -1
  90. package/src/components/keyboardspace/index.tsx +0 -2
  91. package/src/screens/detail-loan/DetailLoanTima.tsx +145 -35
  92. package/src/screens/detail-loan/Info.tsx +16 -8
  93. package/src/screens/detail-loan/Payment.tsx +19 -7
  94. package/src/screens/detail-loan/PaymentAll.tsx +49 -9
  95. package/src/screens/detail-loan/PaymentInfo.tsx +735 -85
  96. package/src/screens/detail-loan/ShowQrCode.tsx +678 -35
  97. package/src/screens/detail-loan/index.tsx +37 -33
  98. package/src/screens/guide-transfer-bank/TransferDetail.tsx +41 -12
  99. package/src/screens/guide-transfer-bank/index.tsx +228 -237
  100. package/src/screens/home/Store.tsx +4 -1
  101. package/src/screens/home/index.tsx +15 -30
  102. package/src/screens/liveness-v2/index.tsx +4 -4
  103. package/src/services/api/api.ts +16 -0
@@ -1,24 +1,14 @@
1
- //@ts-nocheck
2
- import { CommonActions, useNavigation } from '@react-navigation/native';
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 MHeader from '../../components/MHeader';
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
- <MHeader
36
- title={`Đơn vay ${props.route?.params?.loan?.id}`}
37
- onBack={() =>
38
- navigation.dispatch(
39
- CommonActions.reset({
40
- index: 1,
41
- routes: [{ name: ScreenNames.Main }],
42
- })
43
- )
44
- }
45
- />
46
- <SafeAreaView style={{ flex: 1 }}>
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: 16,
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 ? '#FF7A00' : '#F2F2F2',
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 ? '#FF7A00' : '#333333',
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 ? '#FF7A00' : '#F2F2F2',
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 ? '#FF7A00' : '#333333',
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
- </SafeAreaView>
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 { Image, SafeAreaView, ScrollView, View } from 'react-native';
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
- title={`BƯỚC ${props.route.params.step}`}
131
- onBack={() => {
132
- navigation.goBack();
133
- }}
134
- />
135
- <SafeAreaView style={{ flex: 1 }}>
136
- <ScrollView style={{ flex: 1 }}>
137
- {renderStep(props.route.params.step)}
138
- </ScrollView>
139
- </SafeAreaView>
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
  }