@tima2025/react-native-timalender 1.0.1-glink → 1.0.2

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 (195) hide show
  1. package/lib/commonjs/assets/images/Invest/index.js +1 -1
  2. package/lib/commonjs/assets/images/Invest/index.js.flow +5 -12
  3. package/lib/commonjs/assets/images/Invest/index.js.map +1 -1
  4. package/lib/commonjs/assets/images/InvestNew/index.js +1 -1
  5. package/lib/commonjs/assets/images/InvestNew/index.js.flow +14 -14
  6. package/lib/commonjs/assets/images/InvestNew/index.js.map +1 -1
  7. package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
  8. package/lib/commonjs/components/ImageGallery/ImageGallery.js.flow +1 -1
  9. package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
  10. package/lib/commonjs/components/Navigation/TabNavigation.js +1 -1
  11. package/lib/commonjs/components/Navigation/TabNavigation.js.flow +0 -3
  12. package/lib/commonjs/components/Navigation/TabNavigation.js.map +1 -1
  13. package/lib/commonjs/controllers/Client.js +1 -1
  14. package/lib/commonjs/controllers/Client.js.flow +5 -3
  15. package/lib/commonjs/controllers/Client.js.map +1 -1
  16. package/lib/commonjs/screens/About/index.js +1 -1
  17. package/lib/commonjs/screens/About/index.js.flow +1 -1
  18. package/lib/commonjs/screens/About/index.js.map +1 -1
  19. package/lib/commonjs/screens/AdditionalInvestmentCapital/Components/Success.js +1 -1
  20. package/lib/commonjs/screens/AdditionalInvestmentCapital/Components/Success.js.flow +2 -2
  21. package/lib/commonjs/screens/AdditionalInvestmentCapital/Components/Success.js.map +1 -1
  22. package/lib/commonjs/screens/Confirm/index.js +1 -1
  23. package/lib/commonjs/screens/Confirm/index.js.flow +1 -1
  24. package/lib/commonjs/screens/Confirm/index.js.map +1 -1
  25. package/lib/commonjs/screens/ConnectBank/index.js +1 -1
  26. package/lib/commonjs/screens/ConnectBank/index.js.flow +2 -2
  27. package/lib/commonjs/screens/ConnectBank/index.js.map +1 -1
  28. package/lib/commonjs/screens/EkycLiveness/EkycCamera.js +1 -1
  29. package/lib/commonjs/screens/EkycLiveness/EkycCamera.js.flow +16 -28
  30. package/lib/commonjs/screens/EkycLiveness/EkycCamera.js.map +1 -1
  31. package/lib/commonjs/screens/EkycLiveness/index.js +1 -1
  32. package/lib/commonjs/screens/EkycLiveness/index.js.flow +44 -84
  33. package/lib/commonjs/screens/EkycLiveness/index.js.map +1 -1
  34. package/lib/commonjs/screens/GpayInfor/Gpay.js +1 -1
  35. package/lib/commonjs/screens/GpayInfor/Gpay.js.flow +1 -1
  36. package/lib/commonjs/screens/GpayInfor/Gpay.js.map +1 -1
  37. package/lib/commonjs/screens/Guide/index.js +1 -1
  38. package/lib/commonjs/screens/Guide/index.js.flow +3 -3
  39. package/lib/commonjs/screens/Guide/index.js.map +1 -1
  40. package/lib/commonjs/screens/InputBank/index.js +1 -1
  41. package/lib/commonjs/screens/InputBank/index.js.flow +2 -2
  42. package/lib/commonjs/screens/InputBank/index.js.map +1 -1
  43. package/lib/commonjs/screens/Invest/Screens/HomeLoan.js +1 -1
  44. package/lib/commonjs/screens/Invest/Screens/HomeLoan.js.flow +1 -2
  45. package/lib/commonjs/screens/Invest/Screens/HomeLoan.js.map +1 -1
  46. package/lib/commonjs/screens/InvestNew/Screens/HomeLoan.js +1 -1
  47. package/lib/commonjs/screens/InvestNew/Screens/HomeLoan.js.flow +1 -2
  48. package/lib/commonjs/screens/InvestNew/Screens/HomeLoan.js.map +1 -1
  49. package/lib/commonjs/screens/LoanApplication/Components/ModalWarn.js +1 -1
  50. package/lib/commonjs/screens/LoanApplication/Components/ModalWarn.js.flow +1 -1
  51. package/lib/commonjs/screens/LoanApplication/Components/ModalWarn.js.map +1 -1
  52. package/lib/commonjs/screens/Notification/index.js.flow +1 -1
  53. package/lib/commonjs/screens/Optional/index.js +1 -1
  54. package/lib/commonjs/screens/Optional/index.js.flow +74 -58
  55. package/lib/commonjs/screens/Optional/index.js.map +1 -1
  56. package/lib/commonjs/screens/PendingLoan/Tabs/Tab1.js +1 -1
  57. package/lib/commonjs/screens/PendingLoan/Tabs/Tab1.js.flow +1 -1
  58. package/lib/commonjs/screens/PendingLoan/Tabs/Tab1.js.map +1 -1
  59. package/lib/commonjs/screens/ReceivedLoan/Components/Tab1.js +1 -1
  60. package/lib/commonjs/screens/ReceivedLoan/Components/Tab1.js.flow +1 -1
  61. package/lib/commonjs/screens/ReceivedLoan/Components/Tab1.js.map +1 -1
  62. package/lib/commonjs/screens/Sign-in/index.js +1 -1
  63. package/lib/commonjs/screens/Sign-in/index.js.flow +1 -1
  64. package/lib/commonjs/screens/Sign-in/index.js.map +1 -1
  65. package/lib/commonjs/screens/SignContractGpayTima/ConfirmContact.js +1 -1
  66. package/lib/commonjs/screens/SignContractGpayTima/ConfirmContact.js.flow +28 -34
  67. package/lib/commonjs/screens/SignContractGpayTima/ConfirmContact.js.map +1 -1
  68. package/lib/commonjs/screens/SignContractGpayTima/SignContract.js +1 -1
  69. package/lib/commonjs/screens/SignContractGpayTima/SignContract.js.flow +34 -38
  70. package/lib/commonjs/screens/SignContractGpayTima/SignContract.js.map +1 -1
  71. package/lib/commonjs/screens/SignContractGpayTima/index.js +1 -1
  72. package/lib/commonjs/screens/SignContractGpayTima/index.js.flow +2 -2
  73. package/lib/commonjs/screens/SignContractGpayTima/index.js.map +1 -1
  74. package/lib/commonjs/screens/Support/index.js +1 -1
  75. package/lib/commonjs/screens/Support/index.js.flow +1 -1
  76. package/lib/commonjs/screens/Support/index.js.map +1 -1
  77. package/lib/commonjs/screens/Transfer/Components/PopoverChooseShop.js +1 -1
  78. package/lib/commonjs/screens/Transfer/Components/PopoverChooseShop.js.flow +2 -2
  79. package/lib/commonjs/screens/Transfer/Components/PopoverChooseShop.js.map +1 -1
  80. package/lib/commonjs/utils/notification.js +1 -1
  81. package/lib/commonjs/utils/notification.js.flow +8 -10
  82. package/lib/commonjs/utils/notification.js.map +1 -1
  83. package/lib/module/assets/images/Invest/index.js +1 -1
  84. package/lib/module/assets/images/Invest/index.js.map +1 -1
  85. package/lib/module/assets/images/InvestNew/index.js +1 -1
  86. package/lib/module/assets/images/InvestNew/index.js.map +1 -1
  87. package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
  88. package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
  89. package/lib/module/components/Navigation/TabNavigation.js +1 -1
  90. package/lib/module/components/Navigation/TabNavigation.js.map +1 -1
  91. package/lib/module/controllers/Client.js +1 -1
  92. package/lib/module/controllers/Client.js.map +1 -1
  93. package/lib/module/screens/About/index.js +1 -1
  94. package/lib/module/screens/About/index.js.map +1 -1
  95. package/lib/module/screens/AdditionalInvestmentCapital/Components/Success.js +1 -1
  96. package/lib/module/screens/AdditionalInvestmentCapital/Components/Success.js.map +1 -1
  97. package/lib/module/screens/Confirm/index.js +1 -1
  98. package/lib/module/screens/Confirm/index.js.map +1 -1
  99. package/lib/module/screens/ConnectBank/index.js +1 -1
  100. package/lib/module/screens/ConnectBank/index.js.map +1 -1
  101. package/lib/module/screens/EkycLiveness/EkycCamera.js +1 -1
  102. package/lib/module/screens/EkycLiveness/EkycCamera.js.map +1 -1
  103. package/lib/module/screens/EkycLiveness/index.js +1 -1
  104. package/lib/module/screens/EkycLiveness/index.js.map +1 -1
  105. package/lib/module/screens/GpayInfor/Gpay.js +1 -1
  106. package/lib/module/screens/GpayInfor/Gpay.js.map +1 -1
  107. package/lib/module/screens/Guide/index.js +1 -1
  108. package/lib/module/screens/Guide/index.js.map +1 -1
  109. package/lib/module/screens/InputBank/index.js +1 -1
  110. package/lib/module/screens/InputBank/index.js.map +1 -1
  111. package/lib/module/screens/Invest/Screens/HomeLoan.js +1 -1
  112. package/lib/module/screens/Invest/Screens/HomeLoan.js.map +1 -1
  113. package/lib/module/screens/InvestNew/Screens/HomeLoan.js +1 -1
  114. package/lib/module/screens/InvestNew/Screens/HomeLoan.js.map +1 -1
  115. package/lib/module/screens/LoanApplication/Components/ModalWarn.js +1 -1
  116. package/lib/module/screens/LoanApplication/Components/ModalWarn.js.map +1 -1
  117. package/lib/module/screens/Optional/index.js +1 -1
  118. package/lib/module/screens/Optional/index.js.map +1 -1
  119. package/lib/module/screens/PendingLoan/Tabs/Tab1.js +1 -1
  120. package/lib/module/screens/PendingLoan/Tabs/Tab1.js.map +1 -1
  121. package/lib/module/screens/ReceivedLoan/Components/Tab1.js +1 -1
  122. package/lib/module/screens/ReceivedLoan/Components/Tab1.js.map +1 -1
  123. package/lib/module/screens/Sign-in/index.js +1 -1
  124. package/lib/module/screens/Sign-in/index.js.map +1 -1
  125. package/lib/module/screens/SignContractGpayTima/ConfirmContact.js +1 -1
  126. package/lib/module/screens/SignContractGpayTima/ConfirmContact.js.map +1 -1
  127. package/lib/module/screens/SignContractGpayTima/SignContract.js +1 -1
  128. package/lib/module/screens/SignContractGpayTima/SignContract.js.map +1 -1
  129. package/lib/module/screens/SignContractGpayTima/index.js +1 -1
  130. package/lib/module/screens/SignContractGpayTima/index.js.map +1 -1
  131. package/lib/module/screens/Support/index.js +1 -1
  132. package/lib/module/screens/Support/index.js.map +1 -1
  133. package/lib/module/screens/Transfer/Components/PopoverChooseShop.js +1 -1
  134. package/lib/module/screens/Transfer/Components/PopoverChooseShop.js.map +1 -1
  135. package/lib/module/utils/notification.js +1 -1
  136. package/lib/module/utils/notification.js.map +1 -1
  137. package/lib/typescript/src/assets/images/Invest/index.d.ts.map +1 -1
  138. package/lib/typescript/src/assets/images/InvestNew/index.d.ts.map +1 -1
  139. package/lib/typescript/src/components/Navigation/TabNavigation.d.ts.map +1 -1
  140. package/lib/typescript/src/controllers/Client.d.ts.map +1 -1
  141. package/lib/typescript/src/screens/EkycLiveness/EkycCamera.d.ts.map +1 -1
  142. package/lib/typescript/src/screens/EkycLiveness/index.d.ts.map +1 -1
  143. package/lib/typescript/src/screens/Invest/Screens/HomeLoan.d.ts.map +1 -1
  144. package/lib/typescript/src/screens/InvestNew/Screens/HomeLoan.d.ts.map +1 -1
  145. package/lib/typescript/src/screens/Optional/index.d.ts.map +1 -1
  146. package/lib/typescript/src/screens/SignContractGpayTima/ConfirmContact.d.ts.map +1 -1
  147. package/lib/typescript/src/screens/SignContractGpayTima/SignContract.d.ts.map +1 -1
  148. package/lib/typescript/src/utils/notification.d.ts.map +1 -1
  149. package/package.json +1 -1
  150. package/src/assets/images/Invest/index.ts +5 -12
  151. package/src/assets/images/InvestNew/index.ts +14 -14
  152. package/src/components/ImageGallery/ImageGallery.tsx +1 -1
  153. package/src/components/Navigation/TabNavigation.tsx +0 -3
  154. package/src/controllers/Client.tsx +5 -3
  155. package/src/screens/About/index.tsx +1 -1
  156. package/src/screens/AdditionalInvestmentCapital/Components/Success.tsx +2 -2
  157. package/src/screens/Confirm/index.tsx +1 -1
  158. package/src/screens/ConnectBank/index.tsx +2 -2
  159. package/src/screens/EkycLiveness/EkycCamera.tsx +16 -28
  160. package/src/screens/EkycLiveness/index.tsx +44 -84
  161. package/src/screens/GpayInfor/Gpay.tsx +1 -1
  162. package/src/screens/Guide/index.tsx +3 -3
  163. package/src/screens/InputBank/index.tsx +2 -2
  164. package/src/screens/Invest/Screens/HomeLoan.tsx +1 -2
  165. package/src/screens/InvestNew/Screens/HomeLoan.tsx +1 -2
  166. package/src/screens/LoanApplication/Components/ModalWarn.tsx +1 -1
  167. package/src/screens/Notification/index.tsx +1 -1
  168. package/src/screens/Optional/index.tsx +74 -58
  169. package/src/screens/PendingLoan/Tabs/Tab1.tsx +1 -1
  170. package/src/screens/ReceivedLoan/Components/Tab1.tsx +1 -1
  171. package/src/screens/Sign-in/index.tsx +1 -1
  172. package/src/screens/SignContractGpayTima/ConfirmContact.tsx +28 -34
  173. package/src/screens/SignContractGpayTima/SignContract.tsx +34 -38
  174. package/src/screens/SignContractGpayTima/index.tsx +2 -2
  175. package/src/screens/Support/index.tsx +1 -1
  176. package/src/screens/Transfer/Components/PopoverChooseShop.tsx +2 -2
  177. package/src/utils/notification.ts +8 -10
  178. package/lib/commonjs/assets/images/Invest/diamond_glink.png +0 -0
  179. package/lib/commonjs/assets/images/Invest/gold_glink.png +0 -0
  180. package/lib/commonjs/assets/images/Invest/money_glink.png +0 -0
  181. package/lib/commonjs/assets/images/Invest/ruby_glink.png +0 -0
  182. package/lib/commonjs/assets/images/Invest/titan_glink.png +0 -0
  183. package/lib/commonjs/assets/images/InvestNew/bg_none_glink.png +0 -0
  184. package/lib/module/assets/images/Invest/diamond_glink.png +0 -0
  185. package/lib/module/assets/images/Invest/gold_glink.png +0 -0
  186. package/lib/module/assets/images/Invest/money_glink.png +0 -0
  187. package/lib/module/assets/images/Invest/ruby_glink.png +0 -0
  188. package/lib/module/assets/images/Invest/titan_glink.png +0 -0
  189. package/lib/module/assets/images/InvestNew/bg_none_glink.png +0 -0
  190. package/src/assets/images/Invest/diamond_glink.png +0 -0
  191. package/src/assets/images/Invest/gold_glink.png +0 -0
  192. package/src/assets/images/Invest/money_glink.png +0 -0
  193. package/src/assets/images/Invest/ruby_glink.png +0 -0
  194. package/src/assets/images/Invest/titan_glink.png +0 -0
  195. package/src/assets/images/InvestNew/bg_none_glink.png +0 -0
@@ -32,7 +32,6 @@ import { verifyGpayOnboarding } from '../../components/Features/Lender/lenderSli
32
32
  import Screens from '../../components/Navigation/Screens';
33
33
  import { selectLoading } from '../../components/Redux/selector';
34
34
  import { AppDispatch } from '../../components/Redux/store';
35
- import { load } from '../../components/Storage/storage';
36
35
  import useGetUser from '../../hooks/useGetUser';
37
36
 
38
37
  const CELL_COUNT = 4;
@@ -44,28 +43,31 @@ const logoView: ImageStyle = {
44
43
  resizeMode: 'cover',
45
44
  };
46
45
 
47
- export default function ConfirmContact({ navigation, route }: any) {
46
+ export default function ConfirmContact({navigation, route}: any) {
48
47
  const dispatch = useDispatch<AppDispatch>();
48
+ const reference_id = route?.params?.data;
49
49
  const userInfo = useGetUser();
50
50
  const isLoading = useSelector(selectLoading);
51
51
  const [showSuccess, setShowSuccess] = useState(false);
52
52
  const [expire_time, setExpireTime] = useState(180);
53
53
  const [value, setValue] = useState('');
54
- const ref = useBlurOnFulfill({ value, cellCount: CELL_COUNT });
55
- const [ref_id, setRef_id] = useState('');
54
+ const ref = useBlurOnFulfill({value, cellCount: CELL_COUNT});
55
+ // const [ref_id, setRef_id] = useState('');
56
56
  const [props, getCellOnLayoutHandler] = useClearByFocusCell({
57
57
  value,
58
58
  setValue,
59
59
  });
60
60
 
61
- useEffect(() => {
62
- loadRefID();
63
- }, []);
61
+ // useEffect(() => {
62
+ // loadRefID();
63
+ // }, []);
64
64
 
65
- const loadRefID = async () => {
66
- const data = await load('reference_id');
67
- setRef_id(data);
68
- };
65
+ // const loadRefID = async () => {
66
+ // const data = await load('reference_id');
67
+ // setRef_id(data);
68
+ // };
69
+
70
+ // console.log('refID: ', ref_id);
69
71
 
70
72
  useEffect(() => {
71
73
  let interval = setInterval(() => {
@@ -81,7 +83,7 @@ export default function ConfirmContact({ navigation, route }: any) {
81
83
  const onSubmit = async () => {
82
84
  const params = {
83
85
  otp: value,
84
- reference_id: ref_id,
86
+ reference_id,
85
87
  };
86
88
  const resp: any = await dispatch(verifyGpayOnboarding(params));
87
89
  console.log('resp', resp);
@@ -103,7 +105,7 @@ export default function ConfirmContact({ navigation, route }: any) {
103
105
  };
104
106
 
105
107
  return (
106
- <View style={{ flex: 1 }}>
108
+ <View style={{flex: 1}}>
107
109
  <StatusBar barStyle={'light-content'} />
108
110
  <Image
109
111
  source={require('../../assets/images/Optional/Group1.png')}
@@ -116,8 +118,7 @@ export default function ConfirmContact({ navigation, route }: any) {
116
118
  alignItems: 'center',
117
119
  justifyContent: 'center',
118
120
  marginTop: 5,
119
- }}
120
- >
121
+ }}>
121
122
  <TouchableOpacity
122
123
  onPress={() => navigation.goBack()}
123
124
  style={{
@@ -127,8 +128,7 @@ export default function ConfirmContact({ navigation, route }: any) {
127
128
  height: 40,
128
129
  justifyContent: 'center',
129
130
  alignItems: 'center',
130
- }}
131
- >
131
+ }}>
132
132
  <IoIcon name="chevron-back" size={26} color="white" />
133
133
  </TouchableOpacity>
134
134
  <RText
@@ -136,16 +136,14 @@ export default function ConfirmContact({ navigation, route }: any) {
136
136
  color: 'white',
137
137
  fontSize: 16,
138
138
  fontWeight: 'bold',
139
- }}
140
- >
139
+ }}>
141
140
  Xác thực OTP
142
141
  </RText>
143
142
  </View>
144
143
  </SafeAreaView>
145
144
  <View
146
- style={{ alignItems: 'center', justifyContent: 'center', padding: 24 }}
147
- >
148
- <RText style={{ textAlign: 'center', color: 'white' }}>
145
+ style={{alignItems: 'center', justifyContent: 'center', padding: 24}}>
146
+ <RText style={{textAlign: 'center', color: 'white'}}>
149
147
  Mã xác thực OTP của bạn sẽ được gửi vào số điện thoại{' '}
150
148
  {userInfo?.phone}, vui lòng nhập mã để hoàn thành ký hợp đồng.
151
149
  </RText>
@@ -163,7 +161,7 @@ export default function ConfirmContact({ navigation, route }: any) {
163
161
  }}
164
162
  keyboardType="numeric"
165
163
  textContentType="jobTitle"
166
- renderCell={({ index, symbol, isFocused }) => (
164
+ renderCell={({index, symbol, isFocused}) => (
167
165
  <View
168
166
  // Make sure that you pass onLayout={getCellOnLayoutHandler(index)} prop to root component of "Cell"
169
167
  onLayout={getCellOnLayoutHandler(index)}
@@ -176,22 +174,20 @@ export default function ConfirmContact({ navigation, route }: any) {
176
174
  backgroundColor: '#EFEFEF',
177
175
  marginHorizontal: 4,
178
176
  borderRadius: actuatedNormalize(8),
179
- }}
180
- >
177
+ }}>
181
178
  <Text
182
179
  style={{
183
180
  color: '#000',
184
181
  fontSize: 24,
185
182
  textAlign: 'center',
186
183
  fontWeight: '700',
187
- }}
188
- >
184
+ }}>
189
185
  {symbol || (isFocused ? <Cursor /> : null)}
190
186
  </Text>
191
187
  </View>
192
188
  )}
193
189
  />
194
- <View style={{ flexDirection: 'row', justifyContent: 'center' }}>
190
+ <View style={{flexDirection: 'row', justifyContent: 'center'}}>
195
191
  <TouchableOpacity
196
192
  onPress={() => onSubmit()}
197
193
  style={{
@@ -201,12 +197,11 @@ export default function ConfirmContact({ navigation, route }: any) {
201
197
  backgroundColor: 'white',
202
198
  paddingHorizontal: 46,
203
199
  borderRadius: 6,
204
- }}
205
- >
206
- <Text style={{ color: '#333333' }}>Xác nhận</Text>
200
+ }}>
201
+ <Text style={{color: '#333333'}}>Xác nhận</Text>
207
202
  </TouchableOpacity>
208
203
  </View>
209
- <Text style={{ textAlign: 'center', marginTop: 10, color: 'white' }}>
204
+ <Text style={{textAlign: 'center', marginTop: 10, color: 'white'}}>
210
205
  Gửi lại mã OTP sau ({moment.utc(expire_time * 1000).format('mm:ss')})
211
206
  </Text>
212
207
  {isLoading ? <Loading /> : <View />}
@@ -229,8 +224,7 @@ export default function ConfirmContact({ navigation, route }: any) {
229
224
  fontWeight: 'bold',
230
225
  fontSize: 16,
231
226
  marginTop: 16,
232
- }}
233
- >
227
+ }}>
234
228
  Ký hợp đồng thành công !
235
229
  </RText>
236
230
  </View>
@@ -7,7 +7,6 @@ import {
7
7
  TouchableOpacity,
8
8
  View,
9
9
  } from 'react-native';
10
- import { showMessage } from 'react-native-flash-message';
11
10
  import LinearGradient from 'react-native-linear-gradient';
12
11
  import Pdf from 'react-native-pdf';
13
12
  import Icon from 'react-native-vector-icons/Ionicons';
@@ -16,13 +15,11 @@ import AppHeader from '../../common/AppHeader';
16
15
  import Colors from '../../common/Colors';
17
16
  import Container from '../../common/Container';
18
17
  import RText from '../../common/RText';
19
- import { confirmGpayOnboarding } from '../../components/Features/Lender/lenderSlice';
20
18
  import Screens from '../../components/Navigation/Screens';
21
19
  import { selectLoading } from '../../components/Redux/selector';
22
20
  import { AppDispatch } from '../../components/Redux/store';
23
- import { save } from '../../components/Storage/storage';
24
21
 
25
- export default function SignContract({ navigation, route }: any) {
22
+ export default function SignContract({navigation, route}: any) {
26
23
  const dispatch = useDispatch<AppDispatch>();
27
24
  const isLoading = useSelector(selectLoading);
28
25
  const [check, setCheck] = useState(false);
@@ -36,34 +33,36 @@ export default function SignContract({ navigation, route }: any) {
36
33
  };
37
34
 
38
35
  const InitSignContract = async () => {
39
- navigation.navigate(Screens.EkycLiveness);
40
- const params = {
36
+ navigation.navigate(Screens.EkycLiveness, {
41
37
  reference_id: data?.reference_id,
42
- };
43
- const response: any = await dispatch(confirmGpayOnboarding(params));
44
- console.log('response', response);
45
- if (response?.payload.meta.errCode === 200) {
46
- save('reference_id', response?.payload.data);
47
- navigation.navigate(Screens.EkycLiveness, {
48
- reference_id: response?.payload.data,
49
- });
50
- } else {
51
- // WToastShowError(response?.payload.meta.errMessage);
52
- showMessage({
53
- message: 'Thông báo',
54
- description: response?.payload.meta.errMessage,
55
- type: 'danger',
56
- icon: 'warning',
57
- backgroundColor: Colors.DANGER,
58
- });
59
- }
38
+ });
39
+ // const params = {
40
+ // reference_id: data?.reference_id,
41
+ // };
42
+ // const response: any = await dispatch(confirmGpayOnboarding(params));
43
+ // console.log('response', response);
44
+ // if (response?.payload.meta.errCode === 200) {
45
+ // save('reference_id', response?.payload.data);
46
+ // navigation.navigate(Screens.EkycLiveness, {
47
+ // reference_id: response?.payload.data,
48
+ // });
49
+ // } else {
50
+ // // WToastShowError(response?.payload.meta.errMessage);
51
+ // showMessage({
52
+ // message: 'Thông báo',
53
+ // description: response?.payload.meta.errMessage,
54
+ // type: 'danger',
55
+ // icon: 'warning',
56
+ // backgroundColor: Colors.DANGER,
57
+ // });
58
+ // }
60
59
  };
61
60
 
62
61
  return (
63
62
  <Container>
64
- <AppHeader title="Hợp đồng Glink - Gpay - Lender" />
63
+ <AppHeader title="Hợp đồng Tima - Gpay - Lender" />
65
64
 
66
- <View style={{ flex: 1 }}>
65
+ <View style={{flex: 1}}>
67
66
  <Pdf
68
67
  source={source}
69
68
  onLoadComplete={(numberOfPages, filePath) => {
@@ -72,10 +71,10 @@ export default function SignContract({ navigation, route }: any) {
72
71
  onPageChanged={(page, numberOfPages) => {
73
72
  console.log(`Current page: ${page}`);
74
73
  }}
75
- onError={(error) => {
74
+ onError={error => {
76
75
  console.log(error);
77
76
  }}
78
- onPressLink={(uri) => {
77
+ onPressLink={uri => {
79
78
  console.log(`Link pressed: ${uri}`);
80
79
  Linking.openURL(uri);
81
80
  }}
@@ -92,20 +91,18 @@ export default function SignContract({ navigation, route }: any) {
92
91
  backgroundColor: 'white',
93
92
  marginVertical: 16,
94
93
  paddingHorizontal: 16,
95
- }}
96
- >
97
- <View style={{ flexDirection: 'row' }}>
94
+ }}>
95
+ <View style={{flexDirection: 'row'}}>
98
96
  <TouchableOpacity
99
- style={{ marginLeft: 8 }}
100
- onPress={() => setCheck(!check)}
101
- >
97
+ style={{marginLeft: 8}}
98
+ onPress={() => setCheck(!check)}>
102
99
  {check ? (
103
100
  <Icon name="checkbox" size={24} color={Colors.ORANGE} />
104
101
  ) : (
105
102
  <Icon name="square-outline" size={24} color="#BDBDBD" />
106
103
  )}
107
104
  </TouchableOpacity>
108
- <RText style={{ color: '#333333', paddingLeft: 10 }}>
105
+ <RText style={{color: '#333333', paddingLeft: 10}}>
109
106
  Tôi đồng ý với tất cả những điều kiện trong{'\n'} hợp đồng.
110
107
  </RText>
111
108
  </View>
@@ -120,12 +117,11 @@ export default function SignContract({ navigation, route }: any) {
120
117
  marginBottom: 16,
121
118
  alignItems: 'center',
122
119
  marginTop: 40,
123
- }}
124
- >
120
+ }}>
125
121
  {isLoading ? (
126
122
  <ActivityIndicator color={'white'} />
127
123
  ) : (
128
- <RText style={{ color: 'white', fontSize: 16 }}>
124
+ <RText style={{color: 'white', fontSize: 16}}>
129
125
  Ký hợp đồng
130
126
  </RText>
131
127
  )}
@@ -46,7 +46,7 @@ export const SignContractGpayTima = ({ navigation }: any) => {
46
46
  return (
47
47
  <Container>
48
48
  <AppHeader
49
- title="HỢP ĐỒNG GLINK - GPAY - LENDER"
49
+ title="HỢP ĐỒNG TIMA - GPAY - LENDER"
50
50
  goBack={() => navigation.navigate(Screens.Gpay)}
51
51
  />
52
52
  <View style={{ padding: actuatedNormalize(16) }}>
@@ -78,7 +78,7 @@ export const SignContractGpayTima = ({ navigation }: any) => {
78
78
  padding: actuatedNormalize(12),
79
79
  }}
80
80
  >
81
- Hợp đồng điện tử Glink - Gpay - Lender
81
+ Hợp đồng điện tử Tima - Gpay - Lender
82
82
  </RText>
83
83
  </FlexRow>
84
84
  <SpaceBetween
@@ -40,7 +40,7 @@ export const Support = () => {
40
40
  marginLeft: 8,
41
41
  }}
42
42
  >
43
- Glink
43
+ vip@tima.vn
44
44
  </RText>
45
45
  </FlexRow>
46
46
  </Container>
@@ -89,9 +89,9 @@ const PopoverChooseShop = (props: any) => {
89
89
  alignItems: 'center',
90
90
  justifyContent: 'center',
91
91
  borderRadius: 16,
92
- // marginBottom: actuatedNormalize(16),
92
+ marginBottom: actuatedNormalize(16),
93
93
  backgroundColor: checked ? '#FF8E4F' : 'white',
94
- paddingHorizontal: actuatedNormalize(8),
94
+ // paddingHorizontal: actuatedNormalize(8),
95
95
  }}
96
96
  >
97
97
  <RText textStyle={{ color: checked ? Colors.WHITE : Colors.BLACK }}>
@@ -56,20 +56,18 @@ export const showNotification = (notification: any) => {
56
56
  };
57
57
 
58
58
  export const notificationListener = async (show?: any) => {
59
- messaging().onNotificationOpenedApp((remoteMessage) => {
59
+ messaging().onNotificationOpenedApp(remoteMessage => {
60
60
  showNotification(remoteMessage);
61
61
  });
62
62
 
63
- messaging().onMessage(async (remoteMessage) => {
63
+ messaging().onMessage(async remoteMessage => {
64
64
  console.log('APP OPENED', remoteMessage);
65
- if (show) {
66
- show(remoteMessage);
67
- }
65
+ if (show) show(remoteMessage);
68
66
  });
69
67
 
70
68
  messaging()
71
69
  .getInitialNotification()
72
- .then((remoteMessage) => {
70
+ .then(remoteMessage => {
73
71
  if (remoteMessage) {
74
72
  showNotification(remoteMessage);
75
73
  }
@@ -84,7 +82,7 @@ export const subscribeTopicFCM = async (topic: any) => {
84
82
  .then(() => {
85
83
  console.log('subscribed to topic', topic);
86
84
  })
87
- .catch((err) => {
85
+ .catch(err => {
88
86
  console.log('err subscribing to topic', err);
89
87
  });
90
88
  await messaging().subscribeToTopic('all');
@@ -99,9 +97,9 @@ export const subscribeTopicNotification = async (topic: any) => {
99
97
  messaging()
100
98
  .subscribeToTopic(topic)
101
99
  .then(() => {
102
- console.log('subscribed to topic', topic);
100
+ console.log('subscribed to topic notification', topic);
103
101
  })
104
- .catch((err) => {
102
+ .catch(err => {
105
103
  console.log('err subscribing to topic', err);
106
104
  });
107
105
  await messaging().subscribeToTopic('push_new_loan');
@@ -117,7 +115,7 @@ export const unSubscribeTopicFCM = async (topic: any) => {
117
115
  .then(() => {
118
116
  console.log('unsubscribed to topic', topic);
119
117
  })
120
- .catch((err) => {
118
+ .catch(err => {
121
119
  console.log('err unsubscribing to topic', err);
122
120
  });
123
121
  } catch (error) {