boxpay-checkout-reactnative-sdk 1.0.0-beta25 → 1.0.0-beta26
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/LICENSE +20 -0
- package/lib/module/components/cancelPaymentModal.js +2 -3
- package/lib/module/components/cancelPaymentModal.js.map +1 -1
- package/lib/module/components/cvvInfoBottomSheet.js +3 -4
- package/lib/module/components/cvvInfoBottomSheet.js.map +1 -1
- package/lib/module/components/deleteAddressModal.js +21 -27
- package/lib/module/components/deleteAddressModal.js.map +1 -1
- package/lib/module/components/knowMoreBottomSheet.js +3 -4
- package/lib/module/components/knowMoreBottomSheet.js.map +1 -1
- package/lib/module/components/paymentFailed.js +2 -3
- package/lib/module/components/paymentFailed.js.map +1 -1
- package/lib/module/components/paymentSuccess.js +2 -3
- package/lib/module/components/paymentSuccess.js.map +1 -1
- package/lib/module/components/savedAddressBottomSheet.js +22 -30
- package/lib/module/components/savedAddressBottomSheet.js.map +1 -1
- package/lib/module/components/sessionExpire.js +2 -3
- package/lib/module/components/sessionExpire.js.map +1 -1
- package/lib/module/screens/addressScreen.js +1 -6
- package/lib/module/screens/addressScreen.js.map +1 -1
- package/lib/module/screens/bnplScreen.js +1 -6
- package/lib/module/screens/bnplScreen.js.map +1 -1
- package/lib/module/screens/cardScreen.js +1 -6
- package/lib/module/screens/cardScreen.js.map +1 -1
- package/lib/module/screens/emiScreen.js +1 -6
- package/lib/module/screens/emiScreen.js.map +1 -1
- package/lib/module/screens/mainScreen.js +1 -6
- package/lib/module/screens/mainScreen.js.map +1 -1
- package/lib/module/screens/netBankingScreen.js +1 -6
- package/lib/module/screens/netBankingScreen.js.map +1 -1
- package/lib/module/screens/savedAddressScreen.js +2 -8
- package/lib/module/screens/savedAddressScreen.js.map +1 -1
- package/lib/module/screens/upiTimerScreen.js +1 -6
- package/lib/module/screens/upiTimerScreen.js.map +1 -1
- package/lib/module/styles/components/savedAddressCardStyles.js +5 -5
- package/lib/module/styles/components/savedAddressCardStyles.js.map +1 -1
- package/lib/module/styles/screens/savedAddressScreenStyles.js +2 -6
- package/lib/module/styles/screens/savedAddressScreenStyles.js.map +1 -1
- package/lib/typescript/src/components/cancelPaymentModal.d.ts.map +1 -1
- package/lib/typescript/src/components/cvvInfoBottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/components/deleteAddressModal.d.ts.map +1 -1
- package/lib/typescript/src/components/knowMoreBottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/components/paymentFailed.d.ts.map +1 -1
- package/lib/typescript/src/components/paymentSuccess.d.ts.map +1 -1
- package/lib/typescript/src/components/savedAddressBottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/components/sessionExpire.d.ts.map +1 -1
- package/lib/typescript/src/screens/addressScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/bnplScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/cardScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/emiScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/mainScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/netBankingScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/savedAddressScreen.d.ts.map +1 -1
- package/lib/typescript/src/screens/upiTimerScreen.d.ts.map +1 -1
- package/lib/typescript/src/styles/components/savedAddressCardStyles.d.ts +2 -2
- package/lib/typescript/src/styles/screens/savedAddressScreenStyles.d.ts +1 -5
- package/lib/typescript/src/styles/screens/savedAddressScreenStyles.d.ts.map +1 -1
- package/package.json +1 -2
- package/src/components/cancelPaymentModal.tsx +2 -3
- package/src/components/cvvInfoBottomSheet.tsx +2 -3
- package/src/components/deleteAddressModal.tsx +19 -28
- package/src/components/knowMoreBottomSheet.tsx +2 -3
- package/src/components/paymentFailed.tsx +2 -3
- package/src/components/paymentSuccess.tsx +2 -3
- package/src/components/savedAddressBottomSheet.tsx +15 -22
- package/src/components/sessionExpire.tsx +2 -3
- package/src/screens/addressScreen.tsx +1 -7
- package/src/screens/bnplScreen.tsx +1 -7
- package/src/screens/cardScreen.tsx +1 -7
- package/src/screens/emiScreen.tsx +1 -7
- package/src/screens/mainScreen.tsx +1 -7
- package/src/screens/netBankingScreen.tsx +1 -7
- package/src/screens/savedAddressScreen.tsx +2 -9
- package/src/screens/upiTimerScreen.tsx +1 -6
- package/src/styles/components/savedAddressCardStyles.ts +3 -3
- package/src/styles/screens/savedAddressScreenStyles.ts +1 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upiTimerScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/upiTimerScreen.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAC,SAAS,EAAE,cAAc,EAAC,MAAM,0BAA0B,CAAA;AAEvE,KAAK,uBAAuB,GAAG,SAAS,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,CAAC;AAGnF,KAAK,2BAA2B,GAAG,cAAc,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,CAAC;AAE5F,UAAU,KAAK;IACb,KAAK,EAAE,uBAAuB,CAAC;IAC/B,UAAU,EAAE,2BAA2B,CAAC;CACzC;AAED,QAAA,MAAM,cAAc,GAAI,uBAAuB,KAAK,
|
|
1
|
+
{"version":3,"file":"upiTimerScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/upiTimerScreen.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAC,SAAS,EAAE,cAAc,EAAC,MAAM,0BAA0B,CAAA;AAEvE,KAAK,uBAAuB,GAAG,SAAS,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,CAAC;AAGnF,KAAK,2BAA2B,GAAG,cAAc,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,CAAC;AAE5F,UAAU,KAAK;IACb,KAAK,EAAE,uBAAuB,CAAC;IAC/B,UAAU,EAAE,2BAA2B,CAAC;CACzC;AAED,QAAA,MAAM,cAAc,GAAI,uBAAuB,KAAK,4CA8PnD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -34,6 +34,7 @@ declare const styles: {
|
|
|
34
34
|
fontSize: number;
|
|
35
35
|
fontFamily: string;
|
|
36
36
|
color: string;
|
|
37
|
+
marginBottom: number;
|
|
37
38
|
};
|
|
38
39
|
selectedTag: {
|
|
39
40
|
backgroundColor: string;
|
|
@@ -42,6 +43,7 @@ declare const styles: {
|
|
|
42
43
|
borderRadius: number;
|
|
43
44
|
marginLeft: number;
|
|
44
45
|
borderColor: string;
|
|
46
|
+
borderWidth: number;
|
|
45
47
|
};
|
|
46
48
|
selectedTagText: {
|
|
47
49
|
fontSize: number;
|
|
@@ -49,11 +51,9 @@ declare const styles: {
|
|
|
49
51
|
color: string;
|
|
50
52
|
};
|
|
51
53
|
addressText: {
|
|
52
|
-
marginTop: number;
|
|
53
54
|
fontSize: number;
|
|
54
55
|
fontFamily: string;
|
|
55
56
|
color: string;
|
|
56
|
-
lineHeight: number;
|
|
57
57
|
};
|
|
58
58
|
imageStyle: {
|
|
59
59
|
width: number;
|
|
@@ -19,7 +19,6 @@ declare const styles: {
|
|
|
19
19
|
};
|
|
20
20
|
mainHeadingText: {
|
|
21
21
|
marginTop: number;
|
|
22
|
-
marginBottom: number;
|
|
23
22
|
marginHorizontal: number;
|
|
24
23
|
color: string;
|
|
25
24
|
fontFamily: string;
|
|
@@ -34,21 +33,18 @@ declare const styles: {
|
|
|
34
33
|
backgroundColor: string;
|
|
35
34
|
flexDirection: "row";
|
|
36
35
|
borderRadius: number;
|
|
37
|
-
|
|
36
|
+
justifyContent: "center";
|
|
38
37
|
};
|
|
39
38
|
imageStyle: {
|
|
40
39
|
height: number;
|
|
41
40
|
width: number;
|
|
42
41
|
marginStart: number;
|
|
43
|
-
marginTop: number;
|
|
44
42
|
tintColor: string;
|
|
45
43
|
};
|
|
46
44
|
insideContainerClickableText: {
|
|
47
45
|
fontSize: number;
|
|
48
46
|
color: string;
|
|
49
47
|
fontFamily: string;
|
|
50
|
-
flexShrink: number;
|
|
51
|
-
marginTop: number;
|
|
52
48
|
};
|
|
53
49
|
};
|
|
54
50
|
export default styles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"savedAddressScreenStyles.d.ts","sourceRoot":"","sources":["../../../../../src/styles/screens/savedAddressScreenStyles.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"savedAddressScreenStyles.d.ts","sourceRoot":"","sources":["../../../../../src/styles/screens/savedAddressScreenStyles.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CV,CAAA;AAEF,eAAe,MAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "boxpay-checkout-reactnative-sdk",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-beta26",
|
|
4
4
|
"description": "Boxpay Payment Gateway",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"react": "19.0.0",
|
|
78
78
|
"react-native": "0.79.6",
|
|
79
|
-
"react-native-modal": ">=13.0.0",
|
|
80
79
|
"react-native-paper": ">=5.0.0",
|
|
81
80
|
"react-native-shimmer-placeholder": ">=2.0.0",
|
|
82
81
|
"react-native-toast-message": ">=2.0.0",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View, Text, Image, Pressable } from 'react-native';
|
|
3
|
-
import Modal from 'react-native-modal';
|
|
2
|
+
import { View, Text, Image, Pressable, Modal } from 'react-native';
|
|
4
3
|
import { checkoutDetailsHandler } from '../sharedContext/checkoutDetailsHandler';
|
|
5
4
|
import styles from '../styles/components/cancelPaymentModalStyles';
|
|
6
5
|
|
|
@@ -17,7 +16,7 @@ const CancelPaymentModal: React.FC<CancelPaymentModalProps> = ({
|
|
|
17
16
|
|
|
18
17
|
return (
|
|
19
18
|
<View style={styles.modalContainer}>
|
|
20
|
-
<Modal
|
|
19
|
+
<Modal visible={true} style={styles.modal}>
|
|
21
20
|
<View style={styles.modalContent}>
|
|
22
21
|
<View style={styles.iconContainer}>
|
|
23
22
|
<Image
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { View, Text, Pressable, Image } from 'react-native';
|
|
1
|
+
import { View, Text, Pressable, Image, Modal } from 'react-native';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Modal from 'react-native-modal';
|
|
4
3
|
import { checkoutDetailsHandler } from '../sharedContext/checkoutDetailsHandler';
|
|
5
4
|
import styles from '../styles/components/cvvInfoBottomSheetStyles';
|
|
6
5
|
|
|
@@ -11,7 +10,7 @@ const CvvInfoBottomSheet: React.FC<CvvInfoBottomSheetProps> = ({ onClick }) => {
|
|
|
11
10
|
const { checkoutDetails } = checkoutDetailsHandler;
|
|
12
11
|
return (
|
|
13
12
|
<View>
|
|
14
|
-
<Modal
|
|
13
|
+
<Modal visible={true} style={styles.modal} onRequestClose={onClick}>
|
|
15
14
|
<View style={styles.sheet}>
|
|
16
15
|
<Text
|
|
17
16
|
style={styles.headingText}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { View, Text, TouchableOpacity, StyleSheet, Image } from "react-native";
|
|
2
|
-
import
|
|
1
|
+
import { View, Text, TouchableOpacity, StyleSheet, Image, Modal } from "react-native";
|
|
2
|
+
import { checkoutDetailsHandler } from "../sharedContext/checkoutDetailsHandler";
|
|
3
3
|
|
|
4
4
|
interface DeletePros {
|
|
5
5
|
visible : boolean,
|
|
@@ -11,12 +11,8 @@ interface DeletePros {
|
|
|
11
11
|
const DeleteAddressModal = ({ visible, onCancel, onDelete, address } : DeletePros) => {
|
|
12
12
|
return (
|
|
13
13
|
<Modal
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
animationOut="zoomOut"
|
|
17
|
-
backdropOpacity={0.5}
|
|
18
|
-
onBackdropPress={onCancel}
|
|
19
|
-
useNativeDriver
|
|
14
|
+
visible={visible}
|
|
15
|
+
onRequestClose={onCancel}
|
|
20
16
|
>
|
|
21
17
|
<View style={styles.modalContainer}>
|
|
22
18
|
{/* Delete Icon */}
|
|
@@ -45,36 +41,31 @@ const DeleteAddressModal = ({ visible, onCancel, onDelete, address } : DeletePro
|
|
|
45
41
|
</Modal>
|
|
46
42
|
);
|
|
47
43
|
};
|
|
48
|
-
|
|
44
|
+
const {brandColor} = checkoutDetailsHandler.checkoutDetails
|
|
49
45
|
const styles = StyleSheet.create({
|
|
50
46
|
modalContainer: {
|
|
51
47
|
backgroundColor: "#fff",
|
|
52
48
|
borderRadius: 16,
|
|
53
49
|
padding: 20,
|
|
54
|
-
alignItems: "center",
|
|
55
|
-
justifyContent: "center",
|
|
56
50
|
width: "90%",
|
|
57
51
|
alignSelf: "center",
|
|
58
52
|
},
|
|
59
53
|
deleteIcon: {
|
|
60
|
-
width:
|
|
61
|
-
height:
|
|
62
|
-
marginBottom: 10
|
|
63
|
-
tintColor: "#FF3B30",
|
|
54
|
+
width: 28,
|
|
55
|
+
height: 28,
|
|
56
|
+
marginBottom: 10
|
|
64
57
|
},
|
|
65
58
|
title: {
|
|
66
|
-
fontSize:
|
|
67
|
-
|
|
68
|
-
color: "#
|
|
69
|
-
|
|
70
|
-
marginBottom: 10,
|
|
59
|
+
fontSize: 16,
|
|
60
|
+
fontFamily:"Poppins-SemiBold",
|
|
61
|
+
color: "#2D2B32",
|
|
62
|
+
marginBottom: 4,
|
|
71
63
|
},
|
|
72
64
|
address: {
|
|
73
|
-
fontSize:
|
|
74
|
-
color: "#
|
|
75
|
-
textAlign: "center",
|
|
65
|
+
fontSize: 12,
|
|
66
|
+
color: "#4F4D55",
|
|
76
67
|
marginBottom: 20,
|
|
77
|
-
|
|
68
|
+
fontFamily:"Poppins-Regular"
|
|
78
69
|
},
|
|
79
70
|
buttonRow: {
|
|
80
71
|
flexDirection: "row",
|
|
@@ -95,19 +86,19 @@ const styles = StyleSheet.create({
|
|
|
95
86
|
deleteButton: {
|
|
96
87
|
flex: 1,
|
|
97
88
|
paddingVertical: 12,
|
|
98
|
-
backgroundColor:
|
|
89
|
+
backgroundColor: brandColor,
|
|
99
90
|
borderRadius: 8,
|
|
100
91
|
alignItems: "center",
|
|
101
92
|
},
|
|
102
93
|
cancelText: {
|
|
103
94
|
fontSize: 16,
|
|
104
|
-
color:
|
|
105
|
-
|
|
95
|
+
color: brandColor,
|
|
96
|
+
fontFamily:"Poppins-Regular"
|
|
106
97
|
},
|
|
107
98
|
deleteText: {
|
|
108
99
|
fontSize: 16,
|
|
109
100
|
color: "#fff",
|
|
110
|
-
|
|
101
|
+
fontFamily:"Poppins-SemiBold"
|
|
111
102
|
},
|
|
112
103
|
});
|
|
113
104
|
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { View, Text, StyleSheet, Pressable, Image } from 'react-native';
|
|
2
|
-
import Modal from 'react-native-modal';
|
|
1
|
+
import { View, Text, StyleSheet, Pressable, Image, Modal } from 'react-native';
|
|
3
2
|
import { checkoutDetailsHandler } from '../sharedContext/checkoutDetailsHandler';
|
|
4
3
|
|
|
5
4
|
interface KnowMoreBottomSheetProps {
|
|
@@ -10,7 +9,7 @@ const KnowMoreBottomSheet = ({ onClick }: KnowMoreBottomSheetProps) => {
|
|
|
10
9
|
const { checkoutDetails } = checkoutDetailsHandler;
|
|
11
10
|
return (
|
|
12
11
|
<View>
|
|
13
|
-
<Modal
|
|
12
|
+
<Modal visible={true} style={styles.modal} onRequestClose={onClick}>
|
|
14
13
|
<View style={styles.sheet}>
|
|
15
14
|
<Text
|
|
16
15
|
style={styles.headingText}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { View, Text, StyleSheet, Pressable } from 'react-native';
|
|
1
|
+
import { View, Text, StyleSheet, Pressable, Modal } from 'react-native';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Modal from 'react-native-modal';
|
|
4
3
|
import LottieView from 'lottie-react-native';
|
|
5
4
|
import { checkoutDetailsHandler } from '../sharedContext/checkoutDetailsHandler';
|
|
6
5
|
import callUIAnalytics from '../postRequest/callUIAnalytics';
|
|
@@ -17,7 +16,7 @@ const PaymentFailed: React.FC<PaymentFailedProps> = ({
|
|
|
17
16
|
const { checkoutDetails } = checkoutDetailsHandler;
|
|
18
17
|
return (
|
|
19
18
|
<View>
|
|
20
|
-
<Modal
|
|
19
|
+
<Modal visible={true} style={styles.modal}>
|
|
21
20
|
<View style={styles.sheet}>
|
|
22
21
|
<LottieView
|
|
23
22
|
source={require('../../assets/animations/payment_failed.json')}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { View, Text, StyleSheet, Pressable } from 'react-native';
|
|
1
|
+
import { View, Text, StyleSheet, Pressable, Modal } from 'react-native';
|
|
2
2
|
import React, { useEffect, useState } from 'react';
|
|
3
|
-
import Modal from 'react-native-modal';
|
|
4
3
|
import LottieView from 'lottie-react-native';
|
|
5
4
|
import { checkoutDetailsHandler } from '../sharedContext/checkoutDetailsHandler';
|
|
6
5
|
import callUIAnalytics from '../postRequest/callUIAnalytics';
|
|
@@ -72,7 +71,7 @@ const PaymentSuccess: React.FC<PaymentSuccessProps> = ({
|
|
|
72
71
|
});
|
|
73
72
|
return (
|
|
74
73
|
<View>
|
|
75
|
-
<Modal
|
|
74
|
+
<Modal visible={true} style={styles.modal}>
|
|
76
75
|
<View style={styles.sheet}>
|
|
77
76
|
<LottieView
|
|
78
77
|
source={require('../../assets/animations/payment_successful.json')}
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
TouchableOpacity,
|
|
5
5
|
StyleSheet,
|
|
6
6
|
Image,
|
|
7
|
+
Modal
|
|
7
8
|
} from "react-native";
|
|
8
|
-
import Modal from "react-native-modal";
|
|
9
9
|
|
|
10
10
|
interface Props {
|
|
11
11
|
visible: boolean;
|
|
@@ -30,26 +30,22 @@ const SavedAddressBottomSheet = ({
|
|
|
30
30
|
}: Props) => {
|
|
31
31
|
return (
|
|
32
32
|
<Modal
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
visible={visible}
|
|
34
|
+
onRequestClose={onClose}
|
|
35
35
|
style={styles.modal}
|
|
36
|
-
backdropOpacity={0.4}
|
|
37
36
|
>
|
|
38
37
|
<View style={styles.container}>
|
|
39
38
|
{/* Address Info */}
|
|
40
|
-
<View
|
|
41
|
-
<
|
|
42
|
-
|
|
39
|
+
<View>
|
|
40
|
+
<View style={styles.headerContainer}>
|
|
41
|
+
<Image source={icon} style={styles.icon} />
|
|
43
42
|
<Text style={styles.label}>{label}</Text>
|
|
44
|
-
|
|
43
|
+
</View>
|
|
44
|
+
<Text style={styles.address} numberOfLines={1} ellipsizeMode="tail">
|
|
45
45
|
{address}
|
|
46
46
|
</Text>
|
|
47
|
-
</View>
|
|
48
47
|
</View>
|
|
49
48
|
|
|
50
|
-
{/* Divider */}
|
|
51
|
-
<View style={styles.divider} />
|
|
52
|
-
|
|
53
49
|
{/* Options */}
|
|
54
50
|
<TouchableOpacity style={styles.option} onPress={onEdit}>
|
|
55
51
|
<Text style={styles.optionText}>Edit</Text>
|
|
@@ -74,7 +70,7 @@ const styles = StyleSheet.create({
|
|
|
74
70
|
margin: 0,
|
|
75
71
|
},
|
|
76
72
|
container: {
|
|
77
|
-
backgroundColor: "#
|
|
73
|
+
backgroundColor: "#F5F6FB",
|
|
78
74
|
borderTopLeftRadius: 16,
|
|
79
75
|
borderTopRightRadius: 16,
|
|
80
76
|
padding: 16,
|
|
@@ -83,6 +79,7 @@ const styles = StyleSheet.create({
|
|
|
83
79
|
flexDirection: "row",
|
|
84
80
|
alignItems: "center",
|
|
85
81
|
marginBottom: 12,
|
|
82
|
+
justifyContent:'center'
|
|
86
83
|
},
|
|
87
84
|
icon: {
|
|
88
85
|
width: 20,
|
|
@@ -101,14 +98,9 @@ const styles = StyleSheet.create({
|
|
|
101
98
|
address: {
|
|
102
99
|
fontSize: 14,
|
|
103
100
|
color: "#4F4D55",
|
|
104
|
-
marginTop:
|
|
101
|
+
marginTop: 2,
|
|
105
102
|
fontFamily:"Poppins-Regular"
|
|
106
103
|
},
|
|
107
|
-
divider: {
|
|
108
|
-
height: 1,
|
|
109
|
-
backgroundColor: "#ECECED",
|
|
110
|
-
marginVertical: 12,
|
|
111
|
-
},
|
|
112
104
|
option: {
|
|
113
105
|
paddingVertical: 14,
|
|
114
106
|
alignItems: "center",
|
|
@@ -120,7 +112,8 @@ const styles = StyleSheet.create({
|
|
|
120
112
|
},
|
|
121
113
|
optionText: {
|
|
122
114
|
fontSize: 16,
|
|
123
|
-
color: "#
|
|
115
|
+
color: "#2D2B32",
|
|
116
|
+
fontFamily:"Poppins-Regular"
|
|
124
117
|
},
|
|
125
118
|
deleteOption: {
|
|
126
119
|
paddingVertical: 14,
|
|
@@ -128,8 +121,8 @@ const styles = StyleSheet.create({
|
|
|
128
121
|
},
|
|
129
122
|
deleteText: {
|
|
130
123
|
fontSize: 16,
|
|
131
|
-
color: "
|
|
132
|
-
|
|
124
|
+
color: "#FF4D4F",
|
|
125
|
+
fontFamily:"Poppins-Regular"
|
|
133
126
|
},
|
|
134
127
|
});
|
|
135
128
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { View, Text, StyleSheet, Pressable } from 'react-native';
|
|
1
|
+
import { View, Text, StyleSheet, Pressable, Modal } from 'react-native';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import Modal from 'react-native-modal';
|
|
4
3
|
import LottieView from 'lottie-react-native';
|
|
5
4
|
import { checkoutDetailsHandler } from '../sharedContext/checkoutDetailsHandler';
|
|
6
5
|
import callUIAnalytics from '../postRequest/callUIAnalytics';
|
|
@@ -14,7 +13,7 @@ const SessionExpire: React.FC<SessionExpireProps> = ({ onClick }) => {
|
|
|
14
13
|
const { checkoutDetails } = checkoutDetailsHandler;
|
|
15
14
|
return (
|
|
16
15
|
<View>
|
|
17
|
-
<Modal
|
|
16
|
+
<Modal visible={true} style={styles.modal}>
|
|
18
17
|
<View style={styles.sheet}>
|
|
19
18
|
<LottieView
|
|
20
19
|
source={require('../../assets/animations/payment_status_pending.json')}
|
|
@@ -86,18 +86,12 @@ const AddressScreen = ({ navigation }: Props) => {
|
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
useEffect(() => {
|
|
89
|
-
|
|
89
|
+
BackHandler.addEventListener(
|
|
90
90
|
'hardwareBackPress',
|
|
91
91
|
() => {
|
|
92
92
|
return onProceedBack(); // Allow back navigation if not loading
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
|
-
|
|
96
|
-
return () => {
|
|
97
|
-
if (backHandler) {
|
|
98
|
-
backHandler.remove();
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
95
|
});
|
|
102
96
|
|
|
103
97
|
const onChangeFullName = (updatedText: string) => {
|
|
@@ -65,7 +65,7 @@ const BNPLScreen = ({ navigation }: Props) => {
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
useEffect(() => {
|
|
68
|
-
|
|
68
|
+
BackHandler.addEventListener(
|
|
69
69
|
'hardwareBackPress',
|
|
70
70
|
() => {
|
|
71
71
|
if (showWebView) {
|
|
@@ -81,12 +81,6 @@ const BNPLScreen = ({ navigation }: Props) => {
|
|
|
81
81
|
return onProceedBack(); // Allow back navigation if not loading
|
|
82
82
|
}
|
|
83
83
|
);
|
|
84
|
-
|
|
85
|
-
return () => {
|
|
86
|
-
if (backHandler) {
|
|
87
|
-
backHandler.remove();
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
84
|
});
|
|
91
85
|
|
|
92
86
|
useEffect(() => {
|
|
@@ -522,7 +522,7 @@ const CardScreen = ({ route, navigation }: Props) => {
|
|
|
522
522
|
};
|
|
523
523
|
|
|
524
524
|
useEffect(() => {
|
|
525
|
-
|
|
525
|
+
BackHandler.addEventListener(
|
|
526
526
|
'hardwareBackPress',
|
|
527
527
|
() => {
|
|
528
528
|
if (showWebView) {
|
|
@@ -538,12 +538,6 @@ const CardScreen = ({ route, navigation }: Props) => {
|
|
|
538
538
|
return onProceedBack(); // Allow back navigation if not loading
|
|
539
539
|
}
|
|
540
540
|
);
|
|
541
|
-
|
|
542
|
-
return () => {
|
|
543
|
-
if (backHandler) {
|
|
544
|
-
backHandler.remove();
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
541
|
});
|
|
548
542
|
|
|
549
543
|
useEffect(() => {
|
|
@@ -375,7 +375,7 @@ const EmiScreen = ({ navigation }: Props) => {
|
|
|
375
375
|
return true;
|
|
376
376
|
};
|
|
377
377
|
useEffect(() => {
|
|
378
|
-
|
|
378
|
+
BackHandler.addEventListener(
|
|
379
379
|
'hardwareBackPress',
|
|
380
380
|
() => {
|
|
381
381
|
if (showWebView) {
|
|
@@ -394,12 +394,6 @@ const EmiScreen = ({ navigation }: Props) => {
|
|
|
394
394
|
return onProceedBack(); // Allow back navigation if not loading
|
|
395
395
|
}
|
|
396
396
|
);
|
|
397
|
-
|
|
398
|
-
return () => {
|
|
399
|
-
if (backHandler) {
|
|
400
|
-
backHandler.remove();
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
397
|
});
|
|
404
398
|
|
|
405
399
|
const navigateToCardScreen = (
|
|
@@ -263,7 +263,7 @@ const MainScreen = ({route, navigation} : MainScreenProps) => {
|
|
|
263
263
|
};
|
|
264
264
|
|
|
265
265
|
useEffect(() => {
|
|
266
|
-
|
|
266
|
+
BackHandler.addEventListener(
|
|
267
267
|
'hardwareBackPress',
|
|
268
268
|
() => {
|
|
269
269
|
if (showWebView) {
|
|
@@ -280,12 +280,6 @@ const MainScreen = ({route, navigation} : MainScreenProps) => {
|
|
|
280
280
|
return onExitCheckout();
|
|
281
281
|
}
|
|
282
282
|
);
|
|
283
|
-
|
|
284
|
-
return () => {
|
|
285
|
-
if (backHandler) {
|
|
286
|
-
backHandler.remove();
|
|
287
|
-
}
|
|
288
|
-
};
|
|
289
283
|
});
|
|
290
284
|
|
|
291
285
|
useEffect(() => {
|
|
@@ -93,7 +93,7 @@ const NetBankingScreen = ({ navigation }: Props) => {
|
|
|
93
93
|
};
|
|
94
94
|
|
|
95
95
|
useEffect(() => {
|
|
96
|
-
|
|
96
|
+
BackHandler.addEventListener(
|
|
97
97
|
'hardwareBackPress',
|
|
98
98
|
() => {
|
|
99
99
|
if (showWebView) {
|
|
@@ -109,12 +109,6 @@ const NetBankingScreen = ({ navigation }: Props) => {
|
|
|
109
109
|
return onProceedBack(); // Allow back navigation if not loading
|
|
110
110
|
}
|
|
111
111
|
);
|
|
112
|
-
|
|
113
|
-
return () => {
|
|
114
|
-
if (backHandler) {
|
|
115
|
-
backHandler.remove();
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
112
|
});
|
|
119
113
|
|
|
120
114
|
useEffect(() => {
|
|
@@ -111,7 +111,7 @@ const SavedAddressScreen = ({ navigation }: Props) => {
|
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
useEffect(() => {
|
|
114
|
-
|
|
114
|
+
BackHandler.addEventListener(
|
|
115
115
|
'hardwareBackPress',
|
|
116
116
|
() => {
|
|
117
117
|
if (loading) {
|
|
@@ -120,12 +120,6 @@ const SavedAddressScreen = ({ navigation }: Props) => {
|
|
|
120
120
|
return onProceedBack(); // Allow back navigation if not loading
|
|
121
121
|
}
|
|
122
122
|
);
|
|
123
|
-
|
|
124
|
-
return () => {
|
|
125
|
-
if (backHandler) {
|
|
126
|
-
backHandler.remove();
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
123
|
});
|
|
130
124
|
useEffect(() => {
|
|
131
125
|
if(updateAddress || isEditClicked) {
|
|
@@ -220,7 +214,6 @@ const SavedAddressScreen = ({ navigation }: Props) => {
|
|
|
220
214
|
onClickAddress={(address : FetchSavedAddress) => {
|
|
221
215
|
setSelectedAddress(address)
|
|
222
216
|
setUpdateAddress(true)
|
|
223
|
-
console.log(address);
|
|
224
217
|
}}
|
|
225
218
|
onClickOtherOptions={(address : FetchSavedAddress) => {
|
|
226
219
|
setSelectedAddress(address)
|
|
@@ -236,7 +229,7 @@ const SavedAddressScreen = ({ navigation }: Props) => {
|
|
|
236
229
|
visible={isOptionsClicked}
|
|
237
230
|
onClose={() => setIsOptionsClicked(false)}
|
|
238
231
|
onEdit={() => setIsEditClicked(true)}
|
|
239
|
-
onSetDefault={() =>
|
|
232
|
+
onSetDefault={() => setUpdateAddress(true)}
|
|
240
233
|
onDelete={() => setIsDeleteConfirmationVisible(true)}
|
|
241
234
|
label= {selectedAddress?.labelName ? selectedAddress?.labelName ?? "" : selectedAddress?.labelType ?? ""}
|
|
242
235
|
address={formatAddress({
|
|
@@ -114,15 +114,10 @@ const UpiTimerScreen = ({ route, navigation }: Props) => {
|
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
useEffect(() => {
|
|
117
|
-
|
|
117
|
+
BackHandler.addEventListener(
|
|
118
118
|
'hardwareBackPress',
|
|
119
119
|
onProceedBack
|
|
120
120
|
);
|
|
121
|
-
return () => {
|
|
122
|
-
if (backHandler) {
|
|
123
|
-
backHandler.remove();
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
121
|
}, []);
|
|
127
122
|
|
|
128
123
|
const formatTime = () => {
|
|
@@ -33,6 +33,7 @@ const styles = StyleSheet.create({
|
|
|
33
33
|
fontSize: 14,
|
|
34
34
|
fontFamily: 'Poppins-SemiBold',
|
|
35
35
|
color: "#2D2B32",
|
|
36
|
+
marginBottom:10
|
|
36
37
|
},
|
|
37
38
|
selectedTag: {
|
|
38
39
|
backgroundColor: "#FFF0F6",
|
|
@@ -40,7 +41,8 @@ const styles = StyleSheet.create({
|
|
|
40
41
|
paddingVertical: 2,
|
|
41
42
|
borderRadius: 6,
|
|
42
43
|
marginLeft: 8,
|
|
43
|
-
borderColor:"#FFADD2"
|
|
44
|
+
borderColor:"#FFADD2",
|
|
45
|
+
borderWidth:1
|
|
44
46
|
},
|
|
45
47
|
selectedTagText: {
|
|
46
48
|
fontSize: 10,
|
|
@@ -48,11 +50,9 @@ const styles = StyleSheet.create({
|
|
|
48
50
|
color: "#EB2F96",
|
|
49
51
|
},
|
|
50
52
|
addressText: {
|
|
51
|
-
marginTop: 10,
|
|
52
53
|
fontSize: 12,
|
|
53
54
|
fontFamily: 'Poppins-Regular',
|
|
54
55
|
color: "#7F7D83",
|
|
55
|
-
lineHeight: 20,
|
|
56
56
|
},
|
|
57
57
|
imageStyle : {
|
|
58
58
|
width : 20,
|
|
@@ -22,7 +22,6 @@ const styles = StyleSheet.create({
|
|
|
22
22
|
},
|
|
23
23
|
mainHeadingText :{
|
|
24
24
|
marginTop: 16,
|
|
25
|
-
marginBottom: 8,
|
|
26
25
|
marginHorizontal: 16,
|
|
27
26
|
color: '#020815B5',
|
|
28
27
|
fontFamily: 'Poppins-SemiBold',
|
|
@@ -37,21 +36,18 @@ const styles = StyleSheet.create({
|
|
|
37
36
|
backgroundColor: 'white',
|
|
38
37
|
flexDirection: 'row',
|
|
39
38
|
borderRadius: 12,
|
|
40
|
-
|
|
39
|
+
justifyContent:'center'
|
|
41
40
|
},
|
|
42
41
|
imageStyle : {
|
|
43
42
|
height: 20,
|
|
44
43
|
width: 20,
|
|
45
44
|
marginStart: 12,
|
|
46
|
-
marginTop: 20,
|
|
47
45
|
tintColor: brandColor
|
|
48
46
|
},
|
|
49
47
|
insideContainerClickableText : {
|
|
50
48
|
fontSize: 14,
|
|
51
49
|
color: brandColor,
|
|
52
50
|
fontFamily: 'Poppins-SemiBold',
|
|
53
|
-
flexShrink: 1,
|
|
54
|
-
marginTop: -4,
|
|
55
51
|
}
|
|
56
52
|
})
|
|
57
53
|
|