@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.
- package/lib/commonjs/assets/images/Invest/index.js +1 -1
- package/lib/commonjs/assets/images/Invest/index.js.flow +5 -12
- package/lib/commonjs/assets/images/Invest/index.js.map +1 -1
- package/lib/commonjs/assets/images/InvestNew/index.js +1 -1
- package/lib/commonjs/assets/images/InvestNew/index.js.flow +14 -14
- package/lib/commonjs/assets/images/InvestNew/index.js.map +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.flow +1 -1
- package/lib/commonjs/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/commonjs/components/Navigation/TabNavigation.js +1 -1
- package/lib/commonjs/components/Navigation/TabNavigation.js.flow +0 -3
- package/lib/commonjs/components/Navigation/TabNavigation.js.map +1 -1
- package/lib/commonjs/controllers/Client.js +1 -1
- package/lib/commonjs/controllers/Client.js.flow +5 -3
- package/lib/commonjs/controllers/Client.js.map +1 -1
- package/lib/commonjs/screens/About/index.js +1 -1
- package/lib/commonjs/screens/About/index.js.flow +1 -1
- package/lib/commonjs/screens/About/index.js.map +1 -1
- package/lib/commonjs/screens/AdditionalInvestmentCapital/Components/Success.js +1 -1
- package/lib/commonjs/screens/AdditionalInvestmentCapital/Components/Success.js.flow +2 -2
- package/lib/commonjs/screens/AdditionalInvestmentCapital/Components/Success.js.map +1 -1
- package/lib/commonjs/screens/Confirm/index.js +1 -1
- package/lib/commonjs/screens/Confirm/index.js.flow +1 -1
- package/lib/commonjs/screens/Confirm/index.js.map +1 -1
- package/lib/commonjs/screens/ConnectBank/index.js +1 -1
- package/lib/commonjs/screens/ConnectBank/index.js.flow +2 -2
- package/lib/commonjs/screens/ConnectBank/index.js.map +1 -1
- package/lib/commonjs/screens/EkycLiveness/EkycCamera.js +1 -1
- package/lib/commonjs/screens/EkycLiveness/EkycCamera.js.flow +16 -28
- package/lib/commonjs/screens/EkycLiveness/EkycCamera.js.map +1 -1
- package/lib/commonjs/screens/EkycLiveness/index.js +1 -1
- package/lib/commonjs/screens/EkycLiveness/index.js.flow +44 -84
- package/lib/commonjs/screens/EkycLiveness/index.js.map +1 -1
- package/lib/commonjs/screens/GpayInfor/Gpay.js +1 -1
- package/lib/commonjs/screens/GpayInfor/Gpay.js.flow +1 -1
- package/lib/commonjs/screens/GpayInfor/Gpay.js.map +1 -1
- package/lib/commonjs/screens/Guide/index.js +1 -1
- package/lib/commonjs/screens/Guide/index.js.flow +3 -3
- package/lib/commonjs/screens/Guide/index.js.map +1 -1
- package/lib/commonjs/screens/InputBank/index.js +1 -1
- package/lib/commonjs/screens/InputBank/index.js.flow +2 -2
- package/lib/commonjs/screens/InputBank/index.js.map +1 -1
- package/lib/commonjs/screens/Invest/Screens/HomeLoan.js +1 -1
- package/lib/commonjs/screens/Invest/Screens/HomeLoan.js.flow +1 -2
- package/lib/commonjs/screens/Invest/Screens/HomeLoan.js.map +1 -1
- package/lib/commonjs/screens/InvestNew/Screens/HomeLoan.js +1 -1
- package/lib/commonjs/screens/InvestNew/Screens/HomeLoan.js.flow +1 -2
- package/lib/commonjs/screens/InvestNew/Screens/HomeLoan.js.map +1 -1
- package/lib/commonjs/screens/LoanApplication/Components/ModalWarn.js +1 -1
- package/lib/commonjs/screens/LoanApplication/Components/ModalWarn.js.flow +1 -1
- package/lib/commonjs/screens/LoanApplication/Components/ModalWarn.js.map +1 -1
- package/lib/commonjs/screens/Notification/index.js.flow +1 -1
- package/lib/commonjs/screens/Optional/index.js +1 -1
- package/lib/commonjs/screens/Optional/index.js.flow +74 -58
- package/lib/commonjs/screens/Optional/index.js.map +1 -1
- package/lib/commonjs/screens/PendingLoan/Tabs/Tab1.js +1 -1
- package/lib/commonjs/screens/PendingLoan/Tabs/Tab1.js.flow +1 -1
- package/lib/commonjs/screens/PendingLoan/Tabs/Tab1.js.map +1 -1
- package/lib/commonjs/screens/ReceivedLoan/Components/Tab1.js +1 -1
- package/lib/commonjs/screens/ReceivedLoan/Components/Tab1.js.flow +1 -1
- package/lib/commonjs/screens/ReceivedLoan/Components/Tab1.js.map +1 -1
- package/lib/commonjs/screens/Sign-in/index.js +1 -1
- package/lib/commonjs/screens/Sign-in/index.js.flow +1 -1
- package/lib/commonjs/screens/Sign-in/index.js.map +1 -1
- package/lib/commonjs/screens/SignContractGpayTima/ConfirmContact.js +1 -1
- package/lib/commonjs/screens/SignContractGpayTima/ConfirmContact.js.flow +28 -34
- package/lib/commonjs/screens/SignContractGpayTima/ConfirmContact.js.map +1 -1
- package/lib/commonjs/screens/SignContractGpayTima/SignContract.js +1 -1
- package/lib/commonjs/screens/SignContractGpayTima/SignContract.js.flow +34 -38
- package/lib/commonjs/screens/SignContractGpayTima/SignContract.js.map +1 -1
- package/lib/commonjs/screens/SignContractGpayTima/index.js +1 -1
- package/lib/commonjs/screens/SignContractGpayTima/index.js.flow +2 -2
- package/lib/commonjs/screens/SignContractGpayTima/index.js.map +1 -1
- package/lib/commonjs/screens/Support/index.js +1 -1
- package/lib/commonjs/screens/Support/index.js.flow +1 -1
- package/lib/commonjs/screens/Support/index.js.map +1 -1
- package/lib/commonjs/screens/Transfer/Components/PopoverChooseShop.js +1 -1
- package/lib/commonjs/screens/Transfer/Components/PopoverChooseShop.js.flow +2 -2
- package/lib/commonjs/screens/Transfer/Components/PopoverChooseShop.js.map +1 -1
- package/lib/commonjs/utils/notification.js +1 -1
- package/lib/commonjs/utils/notification.js.flow +8 -10
- package/lib/commonjs/utils/notification.js.map +1 -1
- package/lib/module/assets/images/Invest/index.js +1 -1
- package/lib/module/assets/images/Invest/index.js.map +1 -1
- package/lib/module/assets/images/InvestNew/index.js +1 -1
- package/lib/module/assets/images/InvestNew/index.js.map +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js +1 -1
- package/lib/module/components/ImageGallery/ImageGallery.js.map +1 -1
- package/lib/module/components/Navigation/TabNavigation.js +1 -1
- package/lib/module/components/Navigation/TabNavigation.js.map +1 -1
- package/lib/module/controllers/Client.js +1 -1
- package/lib/module/controllers/Client.js.map +1 -1
- package/lib/module/screens/About/index.js +1 -1
- package/lib/module/screens/About/index.js.map +1 -1
- package/lib/module/screens/AdditionalInvestmentCapital/Components/Success.js +1 -1
- package/lib/module/screens/AdditionalInvestmentCapital/Components/Success.js.map +1 -1
- package/lib/module/screens/Confirm/index.js +1 -1
- package/lib/module/screens/Confirm/index.js.map +1 -1
- package/lib/module/screens/ConnectBank/index.js +1 -1
- package/lib/module/screens/ConnectBank/index.js.map +1 -1
- package/lib/module/screens/EkycLiveness/EkycCamera.js +1 -1
- package/lib/module/screens/EkycLiveness/EkycCamera.js.map +1 -1
- package/lib/module/screens/EkycLiveness/index.js +1 -1
- package/lib/module/screens/EkycLiveness/index.js.map +1 -1
- package/lib/module/screens/GpayInfor/Gpay.js +1 -1
- package/lib/module/screens/GpayInfor/Gpay.js.map +1 -1
- package/lib/module/screens/Guide/index.js +1 -1
- package/lib/module/screens/Guide/index.js.map +1 -1
- package/lib/module/screens/InputBank/index.js +1 -1
- package/lib/module/screens/InputBank/index.js.map +1 -1
- package/lib/module/screens/Invest/Screens/HomeLoan.js +1 -1
- package/lib/module/screens/Invest/Screens/HomeLoan.js.map +1 -1
- package/lib/module/screens/InvestNew/Screens/HomeLoan.js +1 -1
- package/lib/module/screens/InvestNew/Screens/HomeLoan.js.map +1 -1
- package/lib/module/screens/LoanApplication/Components/ModalWarn.js +1 -1
- package/lib/module/screens/LoanApplication/Components/ModalWarn.js.map +1 -1
- package/lib/module/screens/Optional/index.js +1 -1
- package/lib/module/screens/Optional/index.js.map +1 -1
- package/lib/module/screens/PendingLoan/Tabs/Tab1.js +1 -1
- package/lib/module/screens/PendingLoan/Tabs/Tab1.js.map +1 -1
- package/lib/module/screens/ReceivedLoan/Components/Tab1.js +1 -1
- package/lib/module/screens/ReceivedLoan/Components/Tab1.js.map +1 -1
- package/lib/module/screens/Sign-in/index.js +1 -1
- package/lib/module/screens/Sign-in/index.js.map +1 -1
- package/lib/module/screens/SignContractGpayTima/ConfirmContact.js +1 -1
- package/lib/module/screens/SignContractGpayTima/ConfirmContact.js.map +1 -1
- package/lib/module/screens/SignContractGpayTima/SignContract.js +1 -1
- package/lib/module/screens/SignContractGpayTima/SignContract.js.map +1 -1
- package/lib/module/screens/SignContractGpayTima/index.js +1 -1
- package/lib/module/screens/SignContractGpayTima/index.js.map +1 -1
- package/lib/module/screens/Support/index.js +1 -1
- package/lib/module/screens/Support/index.js.map +1 -1
- package/lib/module/screens/Transfer/Components/PopoverChooseShop.js +1 -1
- package/lib/module/screens/Transfer/Components/PopoverChooseShop.js.map +1 -1
- package/lib/module/utils/notification.js +1 -1
- package/lib/module/utils/notification.js.map +1 -1
- package/lib/typescript/src/assets/images/Invest/index.d.ts.map +1 -1
- package/lib/typescript/src/assets/images/InvestNew/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Navigation/TabNavigation.d.ts.map +1 -1
- package/lib/typescript/src/controllers/Client.d.ts.map +1 -1
- package/lib/typescript/src/screens/EkycLiveness/EkycCamera.d.ts.map +1 -1
- package/lib/typescript/src/screens/EkycLiveness/index.d.ts.map +1 -1
- package/lib/typescript/src/screens/Invest/Screens/HomeLoan.d.ts.map +1 -1
- package/lib/typescript/src/screens/InvestNew/Screens/HomeLoan.d.ts.map +1 -1
- package/lib/typescript/src/screens/Optional/index.d.ts.map +1 -1
- package/lib/typescript/src/screens/SignContractGpayTima/ConfirmContact.d.ts.map +1 -1
- package/lib/typescript/src/screens/SignContractGpayTima/SignContract.d.ts.map +1 -1
- package/lib/typescript/src/utils/notification.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/assets/images/Invest/index.ts +5 -12
- package/src/assets/images/InvestNew/index.ts +14 -14
- package/src/components/ImageGallery/ImageGallery.tsx +1 -1
- package/src/components/Navigation/TabNavigation.tsx +0 -3
- package/src/controllers/Client.tsx +5 -3
- package/src/screens/About/index.tsx +1 -1
- package/src/screens/AdditionalInvestmentCapital/Components/Success.tsx +2 -2
- package/src/screens/Confirm/index.tsx +1 -1
- package/src/screens/ConnectBank/index.tsx +2 -2
- package/src/screens/EkycLiveness/EkycCamera.tsx +16 -28
- package/src/screens/EkycLiveness/index.tsx +44 -84
- package/src/screens/GpayInfor/Gpay.tsx +1 -1
- package/src/screens/Guide/index.tsx +3 -3
- package/src/screens/InputBank/index.tsx +2 -2
- package/src/screens/Invest/Screens/HomeLoan.tsx +1 -2
- package/src/screens/InvestNew/Screens/HomeLoan.tsx +1 -2
- package/src/screens/LoanApplication/Components/ModalWarn.tsx +1 -1
- package/src/screens/Notification/index.tsx +1 -1
- package/src/screens/Optional/index.tsx +74 -58
- package/src/screens/PendingLoan/Tabs/Tab1.tsx +1 -1
- package/src/screens/ReceivedLoan/Components/Tab1.tsx +1 -1
- package/src/screens/Sign-in/index.tsx +1 -1
- package/src/screens/SignContractGpayTima/ConfirmContact.tsx +28 -34
- package/src/screens/SignContractGpayTima/SignContract.tsx +34 -38
- package/src/screens/SignContractGpayTima/index.tsx +2 -2
- package/src/screens/Support/index.tsx +1 -1
- package/src/screens/Transfer/Components/PopoverChooseShop.tsx +2 -2
- package/src/utils/notification.ts +8 -10
- package/lib/commonjs/assets/images/Invest/diamond_glink.png +0 -0
- package/lib/commonjs/assets/images/Invest/gold_glink.png +0 -0
- package/lib/commonjs/assets/images/Invest/money_glink.png +0 -0
- package/lib/commonjs/assets/images/Invest/ruby_glink.png +0 -0
- package/lib/commonjs/assets/images/Invest/titan_glink.png +0 -0
- package/lib/commonjs/assets/images/InvestNew/bg_none_glink.png +0 -0
- package/lib/module/assets/images/Invest/diamond_glink.png +0 -0
- package/lib/module/assets/images/Invest/gold_glink.png +0 -0
- package/lib/module/assets/images/Invest/money_glink.png +0 -0
- package/lib/module/assets/images/Invest/ruby_glink.png +0 -0
- package/lib/module/assets/images/Invest/titan_glink.png +0 -0
- package/lib/module/assets/images/InvestNew/bg_none_glink.png +0 -0
- package/src/assets/images/Invest/diamond_glink.png +0 -0
- package/src/assets/images/Invest/gold_glink.png +0 -0
- package/src/assets/images/Invest/money_glink.png +0 -0
- package/src/assets/images/Invest/ruby_glink.png +0 -0
- package/src/assets/images/Invest/titan_glink.png +0 -0
- 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({
|
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({
|
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
|
-
|
63
|
-
}, []);
|
61
|
+
// useEffect(() => {
|
62
|
+
// loadRefID();
|
63
|
+
// }, []);
|
64
64
|
|
65
|
-
const loadRefID = async () => {
|
66
|
-
|
67
|
-
|
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
|
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={{
|
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={{
|
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={({
|
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={{
|
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={{
|
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({
|
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
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
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
|
63
|
+
<AppHeader title="Hợp đồng Tima - Gpay - Lender" />
|
65
64
|
|
66
|
-
<View style={{
|
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={
|
74
|
+
onError={error => {
|
76
75
|
console.log(error);
|
77
76
|
}}
|
78
|
-
onPressLink={
|
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={{
|
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={{
|
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={{
|
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
|
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ử
|
81
|
+
Hợp đồng điện tử Tima - Gpay - Lender
|
82
82
|
</RText>
|
83
83
|
</FlexRow>
|
84
84
|
<SpaceBetween
|
@@ -89,9 +89,9 @@ const PopoverChooseShop = (props: any) => {
|
|
89
89
|
alignItems: 'center',
|
90
90
|
justifyContent: 'center',
|
91
91
|
borderRadius: 16,
|
92
|
-
|
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(
|
59
|
+
messaging().onNotificationOpenedApp(remoteMessage => {
|
60
60
|
showNotification(remoteMessage);
|
61
61
|
});
|
62
62
|
|
63
|
-
messaging().onMessage(async
|
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(
|
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(
|
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(
|
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(
|
118
|
+
.catch(err => {
|
121
119
|
console.log('err unsubscribing to topic', err);
|
122
120
|
});
|
123
121
|
} catch (error) {
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|