boxpay-checkout-reactnative-sdk 1.0.3 → 1.0.4-beta1
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/module/screens/addressScreen.js +5 -3
- package/lib/module/screens/addressScreen.js.map +1 -1
- package/lib/module/screens/bnplScreen.js +5 -5
- package/lib/module/screens/bnplScreen.js.map +1 -1
- package/lib/module/screens/cardScreen.js +6 -5
- package/lib/module/screens/cardScreen.js.map +1 -1
- package/lib/module/screens/emiScreen.js +5 -5
- package/lib/module/screens/emiScreen.js.map +1 -1
- package/lib/module/screens/mainScreen.js +4 -4
- package/lib/module/screens/mainScreen.js.map +1 -1
- package/lib/module/screens/netBankingScreen.js +5 -5
- package/lib/module/screens/netBankingScreen.js.map +1 -1
- package/lib/module/screens/savedAddressScreen.js +5 -3
- package/lib/module/screens/savedAddressScreen.js.map +1 -1
- package/lib/module/screens/selectTenureScreen.js +2 -2
- package/lib/module/screens/selectTenureScreen.js.map +1 -1
- package/lib/module/screens/upiTimerScreen.js +0 -2
- package/lib/module/screens/upiTimerScreen.js.map +1 -1
- package/lib/module/screens/walletScreen.js +5 -5
- package/lib/module/screens/walletScreen.js.map +1 -1
- package/lib/module/sdk-version.json +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/screens/walletScreen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/screens/addressScreen.tsx +5 -2
- package/src/screens/bnplScreen.tsx +6 -5
- package/src/screens/cardScreen.tsx +6 -5
- package/src/screens/emiScreen.tsx +6 -5
- package/src/screens/mainScreen.tsx +19 -17
- package/src/screens/netBankingScreen.tsx +6 -5
- package/src/screens/savedAddressScreen.tsx +5 -2
- package/src/screens/selectTenureScreen.tsx +3 -3
- package/src/screens/upiTimerScreen.tsx +0 -2
- package/src/screens/walletScreen.tsx +6 -5
- package/src/sdk-version.json +1 -1
- package/ios/Framework/CrossPlatformSDK.xcframework/Info.plist +0 -48
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64/CrossPlatformSDK.framework/CrossPlatformSDK +0 -0
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64/CrossPlatformSDK.framework/Headers/CrossPlatformSDK.h +0 -168
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64/CrossPlatformSDK.framework/Info.plist +0 -35
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64/CrossPlatformSDK.framework/Modules/module.modulemap +0 -8
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64/dSYMs/CrossPlatformSDK.framework.dSYM/Contents/Info.plist +0 -20
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64_x86_64-simulator/CrossPlatformSDK.framework/CrossPlatformSDK +0 -0
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64_x86_64-simulator/CrossPlatformSDK.framework/Headers/CrossPlatformSDK.h +0 -168
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64_x86_64-simulator/CrossPlatformSDK.framework/Info.plist +0 -31
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64_x86_64-simulator/CrossPlatformSDK.framework/Modules/module.modulemap +0 -5
- package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/CrossPlatformSDK.framework.dSYM/Contents/Info.plist +0 -20
- /package/{cross_platform_react_native_plugin.podspec → ios/cross_platform_react_native_plugin.podspec} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"emiScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/emiScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"emiScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/emiScreen.tsx"],"names":[],"mappings":"AAsCA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,KAAK,uBAAuB,GAAG,cAAc,CAAC,sBAAsB,EAAE,WAAW,CAAC,CAAC;AAEnF,UAAU,KAAK;IACb,UAAU,EAAE,uBAAuB,CAAC;CACrC;AAED,QAAA,MAAM,SAAS,GAAI,gBAAgB,KAAK,4CA6xBvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mainScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/mainScreen.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAgB,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC7F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAsB5D,KAAK,mBAAmB,GAAG,SAAS,CAAC,sBAAsB,EAAE,YAAY,CAAC,CAAC;AAG3E,KAAK,wBAAwB,GAAG,cAAc,CAAC,sBAAsB,EAAE,YAAY,CAAC,CAAC;AAErF,UAAU,eAAe;IACvB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,UAAU,EAAE,wBAAwB,CAAC;CACtC;AAGD,QAAA,MAAM,UAAU,GAAI,uBAAsB,eAAe,
|
|
1
|
+
{"version":3,"file":"mainScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/mainScreen.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAgB,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC7F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAsB5D,KAAK,mBAAmB,GAAG,SAAS,CAAC,sBAAsB,EAAE,YAAY,CAAC,CAAC;AAG3E,KAAK,wBAAwB,GAAG,cAAc,CAAC,sBAAsB,EAAE,YAAY,CAAC,CAAC;AAErF,UAAU,eAAe;IACvB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,UAAU,EAAE,wBAAwB,CAAC;CACtC;AAGD,QAAA,MAAM,UAAU,GAAI,uBAAsB,eAAe,4CA4xBxD,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"netBankingScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/netBankingScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"netBankingScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/netBankingScreen.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,KAAK,8BAA8B,GAAG,cAAc,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAAC;AAEjG,UAAU,KAAK;IACb,UAAU,EAAE,8BAA8B,CAAC;CAC5C;AAED,QAAA,MAAM,gBAAgB,GAAI,gBAAgB,KAAK,4CA8Z9C,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"savedAddressScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/savedAddressScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"savedAddressScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/savedAddressScreen.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAQ/D,KAAK,2BAA2B,GAAG,cAAc,CAAC,sBAAsB,EAAE,eAAe,CAAC,CAAC;AAE3F,UAAU,KAAK;IACb,UAAU,EAAE,2BAA2B,CAAC;CACzC;AAED,QAAA,MAAM,kBAAkB,GAAI,gBAAgB,KAAK,4CA2OhD,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -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;AAGvE,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;AAGvE,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,4CAsNnD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"walletScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/walletScreen.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"walletScreen.d.ts","sourceRoot":"","sources":["../../../../src/screens/walletScreen.tsx"],"names":[],"mappings":"AA2BA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,KAAK,0BAA0B,GAAG,cAAc,CAAC,sBAAsB,EAAE,cAAc,CAAC,CAAC;AAEzF,UAAU,KAAK;IACb,UAAU,EAAE,0BAA0B,CAAC;CACxC;AAED,QAAA,MAAM,YAAY,GAAI,gBAAgB,KAAK,4CAwW1C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,9 @@ import {
|
|
|
3
3
|
BackHandler,
|
|
4
4
|
Image,
|
|
5
5
|
Pressable,
|
|
6
|
+
SafeAreaView,
|
|
6
7
|
ScrollView,
|
|
8
|
+
StatusBar,
|
|
7
9
|
Text,
|
|
8
10
|
View,
|
|
9
11
|
} from 'react-native';
|
|
@@ -248,7 +250,8 @@ const AddressScreen = ({ navigation }: Props) => {
|
|
|
248
250
|
};
|
|
249
251
|
|
|
250
252
|
return (
|
|
251
|
-
<
|
|
253
|
+
<SafeAreaView style={styles.screenView}>
|
|
254
|
+
<StatusBar barStyle="dark-content" />
|
|
252
255
|
<Header
|
|
253
256
|
onBackPress={onProceedBack}
|
|
254
257
|
showDesc={false}
|
|
@@ -757,7 +760,7 @@ const AddressScreen = ({ navigation }: Props) => {
|
|
|
757
760
|
</Text>
|
|
758
761
|
</Pressable>
|
|
759
762
|
</View>
|
|
760
|
-
</
|
|
763
|
+
</SafeAreaView>
|
|
761
764
|
);
|
|
762
765
|
};
|
|
763
766
|
|
|
@@ -3,7 +3,9 @@ import {
|
|
|
3
3
|
Text,
|
|
4
4
|
BackHandler,
|
|
5
5
|
Image,
|
|
6
|
-
ScrollView
|
|
6
|
+
ScrollView,
|
|
7
|
+
StatusBar,
|
|
8
|
+
SafeAreaView,
|
|
7
9
|
} from 'react-native';
|
|
8
10
|
import { useEffect, useRef, useState } from 'react';
|
|
9
11
|
import { checkoutDetailsHandler } from '../sharedContext/checkoutDetailsHandler';
|
|
@@ -168,8 +170,6 @@ const BNPLScreen = ({ navigation }: Props) => {
|
|
|
168
170
|
};
|
|
169
171
|
|
|
170
172
|
const onExitCheckout = () => {
|
|
171
|
-
setSuccessModalState(false)
|
|
172
|
-
setSessionExppireModalState(false)
|
|
173
173
|
const mockPaymentResult: PaymentResultObject = {
|
|
174
174
|
status: status || '',
|
|
175
175
|
transactionId: transactionId || '',
|
|
@@ -184,7 +184,8 @@ const BNPLScreen = ({ navigation }: Props) => {
|
|
|
184
184
|
}, [bnplList]);
|
|
185
185
|
|
|
186
186
|
return (
|
|
187
|
-
<
|
|
187
|
+
<SafeAreaView style={styles.screenView}>
|
|
188
|
+
<StatusBar barStyle="dark-content" />
|
|
188
189
|
{loading ? (
|
|
189
190
|
<View
|
|
190
191
|
style={styles.loaderView}
|
|
@@ -295,7 +296,7 @@ const BNPLScreen = ({ navigation }: Props) => {
|
|
|
295
296
|
/>
|
|
296
297
|
</View>
|
|
297
298
|
)}
|
|
298
|
-
</
|
|
299
|
+
</SafeAreaView>
|
|
299
300
|
);
|
|
300
301
|
};
|
|
301
302
|
|
|
@@ -3,7 +3,8 @@ import {
|
|
|
3
3
|
Text,
|
|
4
4
|
Image,
|
|
5
5
|
BackHandler,
|
|
6
|
-
Pressable
|
|
6
|
+
Pressable,
|
|
7
|
+
StatusBar,
|
|
7
8
|
} from 'react-native';
|
|
8
9
|
import { useEffect, useRef, useState } from 'react';
|
|
9
10
|
import Header from '../components/header';
|
|
@@ -24,6 +25,7 @@ import fetchStatus from '../postRequest/fetchStatus';
|
|
|
24
25
|
import { SvgUri } from 'react-native-svg';
|
|
25
26
|
import ShimmerPlaceHolder from 'react-native-shimmer-placeholder';
|
|
26
27
|
import emiPostRequest from '../postRequest/emiPostRequest';
|
|
28
|
+
import { SafeAreaView } from 'react-native-safe-area-context';
|
|
27
29
|
import KnowMoreBottomSheet from '../components/knowMoreBottomSheet';
|
|
28
30
|
import styles from '../styles/screens/cardScreenStyles';
|
|
29
31
|
import Toast from 'react-native-toast-message'
|
|
@@ -544,8 +546,6 @@ const CardScreen = ({ route, navigation }: Props) => {
|
|
|
544
546
|
}, [cardNumberText, cardExpiryText, cardCvvText, cardHolderNameText]);
|
|
545
547
|
|
|
546
548
|
const onExitCheckout = () => {
|
|
547
|
-
setSuccessModalState(false)
|
|
548
|
-
setSessionExppireModalState(false)
|
|
549
549
|
const mockPaymentResult: PaymentResultObject = {
|
|
550
550
|
status: status || '',
|
|
551
551
|
transactionId: transactionId || '',
|
|
@@ -560,7 +560,8 @@ const CardScreen = ({ route, navigation }: Props) => {
|
|
|
560
560
|
}, [paymentHtml]);
|
|
561
561
|
|
|
562
562
|
return (
|
|
563
|
-
<
|
|
563
|
+
<SafeAreaView style={styles.screenView}>
|
|
564
|
+
<StatusBar barStyle="dark-content" />
|
|
564
565
|
{loading ? (
|
|
565
566
|
<View
|
|
566
567
|
style={styles.loadingContainer}
|
|
@@ -1071,7 +1072,7 @@ const CardScreen = ({ route, navigation }: Props) => {
|
|
|
1071
1072
|
/>
|
|
1072
1073
|
</View>
|
|
1073
1074
|
)}
|
|
1074
|
-
</
|
|
1075
|
+
</SafeAreaView>
|
|
1075
1076
|
);
|
|
1076
1077
|
};
|
|
1077
1078
|
|
|
@@ -4,7 +4,9 @@ import {
|
|
|
4
4
|
BackHandler,
|
|
5
5
|
Dimensions,
|
|
6
6
|
ScrollView,
|
|
7
|
-
Image
|
|
7
|
+
Image,
|
|
8
|
+
StatusBar,
|
|
9
|
+
SafeAreaView,
|
|
8
10
|
} from 'react-native';
|
|
9
11
|
import { useEffect, useRef, useState } from 'react';
|
|
10
12
|
import {
|
|
@@ -519,8 +521,6 @@ const EmiScreen = ({ navigation }: Props) => {
|
|
|
519
521
|
};
|
|
520
522
|
|
|
521
523
|
const onExitCheckout = () => {
|
|
522
|
-
setSuccessModalOpen(false)
|
|
523
|
-
setSessionExppireModalOpen(false)
|
|
524
524
|
const mockPaymentResult: PaymentResultObject = {
|
|
525
525
|
status: status || '',
|
|
526
526
|
transactionId: transactionId || '',
|
|
@@ -529,7 +529,8 @@ const EmiScreen = ({ navigation }: Props) => {
|
|
|
529
529
|
};
|
|
530
530
|
|
|
531
531
|
return (
|
|
532
|
-
<
|
|
532
|
+
<SafeAreaView style={styles.screenView}>
|
|
533
|
+
<StatusBar barStyle="dark-content" />
|
|
533
534
|
{isFirstLoad ? (
|
|
534
535
|
<ShimmerView/>
|
|
535
536
|
) : loading ? (
|
|
@@ -839,7 +840,7 @@ const EmiScreen = ({ navigation }: Props) => {
|
|
|
839
840
|
/>
|
|
840
841
|
</View>
|
|
841
842
|
)}
|
|
842
|
-
</
|
|
843
|
+
</SafeAreaView>
|
|
843
844
|
);
|
|
844
845
|
};
|
|
845
846
|
|
|
@@ -279,8 +279,6 @@ const MainScreen = ({route, navigation} : MainScreenProps) => {
|
|
|
279
279
|
const onExitCheckout = () => {
|
|
280
280
|
if (!loadingState) {
|
|
281
281
|
stopExpireTimerCountDown();
|
|
282
|
-
setSessionExppireModalState(false)
|
|
283
|
-
setSuccessModalState(false)
|
|
284
282
|
const mockPaymentResult: PaymentResultObject = {
|
|
285
283
|
status: status,
|
|
286
284
|
transactionId: transactionId,
|
|
@@ -292,23 +290,27 @@ const MainScreen = ({route, navigation} : MainScreenProps) => {
|
|
|
292
290
|
};
|
|
293
291
|
|
|
294
292
|
useEffect(() => {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
()
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
return true;
|
|
308
|
-
}
|
|
309
|
-
return onExitCheckout();
|
|
293
|
+
|
|
294
|
+
const backAction = () => {
|
|
295
|
+
if (showWebView) {
|
|
296
|
+
setShowWebView(false);
|
|
297
|
+
paymentFailedMessage.current =
|
|
298
|
+
checkoutDetailsHandler.checkoutDetails.errorMessage;
|
|
299
|
+
setStatus('Failed');
|
|
300
|
+
setFailedModalState(true);
|
|
301
|
+
setLoadingState(false);
|
|
302
|
+
return true;
|
|
303
|
+
} else if (loadingState) {
|
|
304
|
+
return true;
|
|
310
305
|
}
|
|
306
|
+
return onExitCheckout();
|
|
307
|
+
}
|
|
308
|
+
const backHandler = BackHandler.addEventListener(
|
|
309
|
+
'hardwareBackPress',
|
|
310
|
+
backAction,
|
|
311
311
|
);
|
|
312
|
+
|
|
313
|
+
return () => backHandler.remove();
|
|
312
314
|
});
|
|
313
315
|
|
|
314
316
|
useEffect(() => {
|
|
@@ -4,7 +4,9 @@ import {
|
|
|
4
4
|
BackHandler,
|
|
5
5
|
Image,
|
|
6
6
|
ScrollView,
|
|
7
|
-
Dimensions
|
|
7
|
+
Dimensions,
|
|
8
|
+
StatusBar,
|
|
9
|
+
SafeAreaView,
|
|
8
10
|
} from 'react-native';
|
|
9
11
|
import { useEffect, useRef, useState } from 'react';
|
|
10
12
|
import { checkoutDetailsHandler } from '../sharedContext/checkoutDetailsHandler';
|
|
@@ -223,8 +225,6 @@ const NetBankingScreen = ({ navigation }: Props) => {
|
|
|
223
225
|
};
|
|
224
226
|
|
|
225
227
|
const onExitCheckout = () => {
|
|
226
|
-
setSuccessModalState(false)
|
|
227
|
-
setSessionExppireModalState(false)
|
|
228
228
|
const mockPaymentResult: PaymentResultObject = {
|
|
229
229
|
status: status || '',
|
|
230
230
|
transactionId: transactionId || '',
|
|
@@ -252,7 +252,8 @@ const NetBankingScreen = ({ navigation }: Props) => {
|
|
|
252
252
|
}, [searchText]);
|
|
253
253
|
|
|
254
254
|
return (
|
|
255
|
-
<
|
|
255
|
+
<SafeAreaView style={styles.screenView}>
|
|
256
|
+
<StatusBar barStyle="dark-content" />
|
|
256
257
|
{loading ? (
|
|
257
258
|
<View
|
|
258
259
|
style={styles.loadingContainer}
|
|
@@ -445,7 +446,7 @@ const NetBankingScreen = ({ navigation }: Props) => {
|
|
|
445
446
|
/>
|
|
446
447
|
</View>
|
|
447
448
|
)}
|
|
448
|
-
</
|
|
449
|
+
</SafeAreaView>
|
|
449
450
|
);
|
|
450
451
|
};
|
|
451
452
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
View,
|
|
3
|
+
SafeAreaView,
|
|
4
|
+
StatusBar,
|
|
3
5
|
Text,
|
|
4
6
|
BackHandler,
|
|
5
7
|
ScrollView,
|
|
@@ -149,7 +151,8 @@ const SavedAddressScreen = ({ navigation }: Props) => {
|
|
|
149
151
|
}, [updateAddress, isEditClicked]);
|
|
150
152
|
|
|
151
153
|
return (
|
|
152
|
-
<
|
|
154
|
+
<SafeAreaView style = {styles.screenView}>
|
|
155
|
+
<StatusBar barStyle="dark-content" />
|
|
153
156
|
{isFirstLoad ? (
|
|
154
157
|
<ShimmerView/>
|
|
155
158
|
) : loading ? (
|
|
@@ -262,7 +265,7 @@ const SavedAddressScreen = ({ navigation }: Props) => {
|
|
|
262
265
|
labelType : selectedAddress?.labelType ?? ""
|
|
263
266
|
})}
|
|
264
267
|
/>
|
|
265
|
-
</
|
|
268
|
+
</SafeAreaView>
|
|
266
269
|
)
|
|
267
270
|
}
|
|
268
271
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { View, Text, Image } from 'react-native';
|
|
1
|
+
import { View, Text, Image, SafeAreaView } from 'react-native';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import type { Emi } from '../interface';
|
|
4
4
|
import Header from '../components/header';
|
|
@@ -38,7 +38,7 @@ const SelectTenureScreen = ({
|
|
|
38
38
|
const [selectedEmi, setSelectedEmi] = useState('');
|
|
39
39
|
const [selectedDuration, setSelectedDuration] = useState(0);
|
|
40
40
|
return (
|
|
41
|
-
<
|
|
41
|
+
<SafeAreaView style={styles.screenView}>
|
|
42
42
|
<Header
|
|
43
43
|
onBackPress={onbackPress}
|
|
44
44
|
showDesc={true}
|
|
@@ -130,7 +130,7 @@ const SelectTenureScreen = ({
|
|
|
130
130
|
</View>
|
|
131
131
|
))}
|
|
132
132
|
</View>
|
|
133
|
-
</
|
|
133
|
+
</SafeAreaView>
|
|
134
134
|
);
|
|
135
135
|
};
|
|
136
136
|
|
|
@@ -72,8 +72,6 @@ const UpiTimerScreen = ({ route, navigation }: Props) => {
|
|
|
72
72
|
}, [failedModalOpen, successModalOpen, sessionExpireModalOpen]);
|
|
73
73
|
|
|
74
74
|
const onExitCheckout = () => {
|
|
75
|
-
setSuccessModalState(false)
|
|
76
|
-
setSessionExppireModalState(false)
|
|
77
75
|
const mockPaymentResult: PaymentResultObject = {
|
|
78
76
|
status: status,
|
|
79
77
|
transactionId: transactionId,
|
|
@@ -4,7 +4,9 @@ import {
|
|
|
4
4
|
BackHandler,
|
|
5
5
|
Image,
|
|
6
6
|
ScrollView,
|
|
7
|
-
Dimensions
|
|
7
|
+
Dimensions,
|
|
8
|
+
StatusBar,
|
|
9
|
+
SafeAreaView,
|
|
8
10
|
} from 'react-native';
|
|
9
11
|
import { useEffect, useRef, useState } from 'react';
|
|
10
12
|
import { checkoutDetailsHandler } from '../sharedContext/checkoutDetailsHandler';
|
|
@@ -191,8 +193,6 @@ const WalletScreen = ({ navigation }: Props) => {
|
|
|
191
193
|
};
|
|
192
194
|
|
|
193
195
|
const onExitCheckout = () => {
|
|
194
|
-
setSuccessModalState(false)
|
|
195
|
-
setSessionExppireModalState(false)
|
|
196
196
|
const mockPaymentResult: PaymentResultObject = {
|
|
197
197
|
status: status || '',
|
|
198
198
|
transactionId: transactionId || '',
|
|
@@ -220,7 +220,8 @@ const WalletScreen = ({ navigation }: Props) => {
|
|
|
220
220
|
}, [searchText]);
|
|
221
221
|
|
|
222
222
|
return (
|
|
223
|
-
<
|
|
223
|
+
<SafeAreaView style={styles.screenView}>
|
|
224
|
+
<StatusBar barStyle="dark-content" />
|
|
224
225
|
{loading ? (
|
|
225
226
|
<View
|
|
226
227
|
style={styles.loaderView}
|
|
@@ -391,7 +392,7 @@ const WalletScreen = ({ navigation }: Props) => {
|
|
|
391
392
|
/>
|
|
392
393
|
</View>
|
|
393
394
|
)}
|
|
394
|
-
</
|
|
395
|
+
</SafeAreaView>
|
|
395
396
|
);
|
|
396
397
|
};
|
|
397
398
|
|
package/src/sdk-version.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{ "version": "1.0.
|
|
1
|
+
{ "version": "1.0.4-beta1" }
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>AvailableLibraries</key>
|
|
6
|
-
<array>
|
|
7
|
-
<dict>
|
|
8
|
-
<key>BinaryPath</key>
|
|
9
|
-
<string>CrossPlatformSDK.framework/CrossPlatformSDK</string>
|
|
10
|
-
<key>DebugSymbolsPath</key>
|
|
11
|
-
<string>dSYMs</string>
|
|
12
|
-
<key>LibraryIdentifier</key>
|
|
13
|
-
<string>ios-arm64_x86_64-simulator</string>
|
|
14
|
-
<key>LibraryPath</key>
|
|
15
|
-
<string>CrossPlatformSDK.framework</string>
|
|
16
|
-
<key>SupportedArchitectures</key>
|
|
17
|
-
<array>
|
|
18
|
-
<string>arm64</string>
|
|
19
|
-
<string>x86_64</string>
|
|
20
|
-
</array>
|
|
21
|
-
<key>SupportedPlatform</key>
|
|
22
|
-
<string>ios</string>
|
|
23
|
-
<key>SupportedPlatformVariant</key>
|
|
24
|
-
<string>simulator</string>
|
|
25
|
-
</dict>
|
|
26
|
-
<dict>
|
|
27
|
-
<key>BinaryPath</key>
|
|
28
|
-
<string>CrossPlatformSDK.framework/CrossPlatformSDK</string>
|
|
29
|
-
<key>DebugSymbolsPath</key>
|
|
30
|
-
<string>dSYMs</string>
|
|
31
|
-
<key>LibraryIdentifier</key>
|
|
32
|
-
<string>ios-arm64</string>
|
|
33
|
-
<key>LibraryPath</key>
|
|
34
|
-
<string>CrossPlatformSDK.framework</string>
|
|
35
|
-
<key>SupportedArchitectures</key>
|
|
36
|
-
<array>
|
|
37
|
-
<string>arm64</string>
|
|
38
|
-
</array>
|
|
39
|
-
<key>SupportedPlatform</key>
|
|
40
|
-
<string>ios</string>
|
|
41
|
-
</dict>
|
|
42
|
-
</array>
|
|
43
|
-
<key>CFBundlePackageType</key>
|
|
44
|
-
<string>XFWK</string>
|
|
45
|
-
<key>XCFrameworkFormatVersion</key>
|
|
46
|
-
<string>1.0</string>
|
|
47
|
-
</dict>
|
|
48
|
-
</plist>
|
|
Binary file
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
#import <Foundation/NSArray.h>
|
|
2
|
-
#import <Foundation/NSDictionary.h>
|
|
3
|
-
#import <Foundation/NSError.h>
|
|
4
|
-
#import <Foundation/NSObject.h>
|
|
5
|
-
#import <Foundation/NSSet.h>
|
|
6
|
-
#import <Foundation/NSString.h>
|
|
7
|
-
#import <Foundation/NSValue.h>
|
|
8
|
-
|
|
9
|
-
@protocol CPSDKUPIAppDetector;
|
|
10
|
-
|
|
11
|
-
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
-
#pragma clang diagnostic push
|
|
13
|
-
#pragma clang diagnostic ignored "-Wunknown-warning-option"
|
|
14
|
-
#pragma clang diagnostic ignored "-Wincompatible-property-type"
|
|
15
|
-
#pragma clang diagnostic ignored "-Wnullability"
|
|
16
|
-
|
|
17
|
-
#pragma push_macro("_Nullable_result")
|
|
18
|
-
#if !__has_feature(nullability_nullable_result)
|
|
19
|
-
#undef _Nullable_result
|
|
20
|
-
#define _Nullable_result _Nullable
|
|
21
|
-
#endif
|
|
22
|
-
|
|
23
|
-
__attribute__((swift_name("KotlinBase")))
|
|
24
|
-
@interface CPSDKBase : NSObject
|
|
25
|
-
- (instancetype)init __attribute__((unavailable));
|
|
26
|
-
+ (instancetype)new __attribute__((unavailable));
|
|
27
|
-
+ (void)initialize __attribute__((objc_requires_super));
|
|
28
|
-
@end
|
|
29
|
-
|
|
30
|
-
@interface CPSDKBase (CPSDKBaseCopying) <NSCopying>
|
|
31
|
-
@end
|
|
32
|
-
|
|
33
|
-
__attribute__((swift_name("KotlinMutableSet")))
|
|
34
|
-
@interface CPSDKMutableSet<ObjectType> : NSMutableSet<ObjectType>
|
|
35
|
-
@end
|
|
36
|
-
|
|
37
|
-
__attribute__((swift_name("KotlinMutableDictionary")))
|
|
38
|
-
@interface CPSDKMutableDictionary<KeyType, ObjectType> : NSMutableDictionary<KeyType, ObjectType>
|
|
39
|
-
@end
|
|
40
|
-
|
|
41
|
-
@interface NSError (NSErrorCPSDKKotlinException)
|
|
42
|
-
@property (readonly) id _Nullable kotlinException;
|
|
43
|
-
@end
|
|
44
|
-
|
|
45
|
-
__attribute__((swift_name("KotlinNumber")))
|
|
46
|
-
@interface CPSDKNumber : NSNumber
|
|
47
|
-
- (instancetype)initWithChar:(char)value __attribute__((unavailable));
|
|
48
|
-
- (instancetype)initWithUnsignedChar:(unsigned char)value __attribute__((unavailable));
|
|
49
|
-
- (instancetype)initWithShort:(short)value __attribute__((unavailable));
|
|
50
|
-
- (instancetype)initWithUnsignedShort:(unsigned short)value __attribute__((unavailable));
|
|
51
|
-
- (instancetype)initWithInt:(int)value __attribute__((unavailable));
|
|
52
|
-
- (instancetype)initWithUnsignedInt:(unsigned int)value __attribute__((unavailable));
|
|
53
|
-
- (instancetype)initWithLong:(long)value __attribute__((unavailable));
|
|
54
|
-
- (instancetype)initWithUnsignedLong:(unsigned long)value __attribute__((unavailable));
|
|
55
|
-
- (instancetype)initWithLongLong:(long long)value __attribute__((unavailable));
|
|
56
|
-
- (instancetype)initWithUnsignedLongLong:(unsigned long long)value __attribute__((unavailable));
|
|
57
|
-
- (instancetype)initWithFloat:(float)value __attribute__((unavailable));
|
|
58
|
-
- (instancetype)initWithDouble:(double)value __attribute__((unavailable));
|
|
59
|
-
- (instancetype)initWithBool:(BOOL)value __attribute__((unavailable));
|
|
60
|
-
- (instancetype)initWithInteger:(NSInteger)value __attribute__((unavailable));
|
|
61
|
-
- (instancetype)initWithUnsignedInteger:(NSUInteger)value __attribute__((unavailable));
|
|
62
|
-
+ (instancetype)numberWithChar:(char)value __attribute__((unavailable));
|
|
63
|
-
+ (instancetype)numberWithUnsignedChar:(unsigned char)value __attribute__((unavailable));
|
|
64
|
-
+ (instancetype)numberWithShort:(short)value __attribute__((unavailable));
|
|
65
|
-
+ (instancetype)numberWithUnsignedShort:(unsigned short)value __attribute__((unavailable));
|
|
66
|
-
+ (instancetype)numberWithInt:(int)value __attribute__((unavailable));
|
|
67
|
-
+ (instancetype)numberWithUnsignedInt:(unsigned int)value __attribute__((unavailable));
|
|
68
|
-
+ (instancetype)numberWithLong:(long)value __attribute__((unavailable));
|
|
69
|
-
+ (instancetype)numberWithUnsignedLong:(unsigned long)value __attribute__((unavailable));
|
|
70
|
-
+ (instancetype)numberWithLongLong:(long long)value __attribute__((unavailable));
|
|
71
|
-
+ (instancetype)numberWithUnsignedLongLong:(unsigned long long)value __attribute__((unavailable));
|
|
72
|
-
+ (instancetype)numberWithFloat:(float)value __attribute__((unavailable));
|
|
73
|
-
+ (instancetype)numberWithDouble:(double)value __attribute__((unavailable));
|
|
74
|
-
+ (instancetype)numberWithBool:(BOOL)value __attribute__((unavailable));
|
|
75
|
-
+ (instancetype)numberWithInteger:(NSInteger)value __attribute__((unavailable));
|
|
76
|
-
+ (instancetype)numberWithUnsignedInteger:(NSUInteger)value __attribute__((unavailable));
|
|
77
|
-
@end
|
|
78
|
-
|
|
79
|
-
__attribute__((swift_name("KotlinByte")))
|
|
80
|
-
@interface CPSDKByte : CPSDKNumber
|
|
81
|
-
- (instancetype)initWithChar:(char)value;
|
|
82
|
-
+ (instancetype)numberWithChar:(char)value;
|
|
83
|
-
@end
|
|
84
|
-
|
|
85
|
-
__attribute__((swift_name("KotlinUByte")))
|
|
86
|
-
@interface CPSDKUByte : CPSDKNumber
|
|
87
|
-
- (instancetype)initWithUnsignedChar:(unsigned char)value;
|
|
88
|
-
+ (instancetype)numberWithUnsignedChar:(unsigned char)value;
|
|
89
|
-
@end
|
|
90
|
-
|
|
91
|
-
__attribute__((swift_name("KotlinShort")))
|
|
92
|
-
@interface CPSDKShort : CPSDKNumber
|
|
93
|
-
- (instancetype)initWithShort:(short)value;
|
|
94
|
-
+ (instancetype)numberWithShort:(short)value;
|
|
95
|
-
@end
|
|
96
|
-
|
|
97
|
-
__attribute__((swift_name("KotlinUShort")))
|
|
98
|
-
@interface CPSDKUShort : CPSDKNumber
|
|
99
|
-
- (instancetype)initWithUnsignedShort:(unsigned short)value;
|
|
100
|
-
+ (instancetype)numberWithUnsignedShort:(unsigned short)value;
|
|
101
|
-
@end
|
|
102
|
-
|
|
103
|
-
__attribute__((swift_name("KotlinInt")))
|
|
104
|
-
@interface CPSDKInt : CPSDKNumber
|
|
105
|
-
- (instancetype)initWithInt:(int)value;
|
|
106
|
-
+ (instancetype)numberWithInt:(int)value;
|
|
107
|
-
@end
|
|
108
|
-
|
|
109
|
-
__attribute__((swift_name("KotlinUInt")))
|
|
110
|
-
@interface CPSDKUInt : CPSDKNumber
|
|
111
|
-
- (instancetype)initWithUnsignedInt:(unsigned int)value;
|
|
112
|
-
+ (instancetype)numberWithUnsignedInt:(unsigned int)value;
|
|
113
|
-
@end
|
|
114
|
-
|
|
115
|
-
__attribute__((swift_name("KotlinLong")))
|
|
116
|
-
@interface CPSDKLong : CPSDKNumber
|
|
117
|
-
- (instancetype)initWithLongLong:(long long)value;
|
|
118
|
-
+ (instancetype)numberWithLongLong:(long long)value;
|
|
119
|
-
@end
|
|
120
|
-
|
|
121
|
-
__attribute__((swift_name("KotlinULong")))
|
|
122
|
-
@interface CPSDKULong : CPSDKNumber
|
|
123
|
-
- (instancetype)initWithUnsignedLongLong:(unsigned long long)value;
|
|
124
|
-
+ (instancetype)numberWithUnsignedLongLong:(unsigned long long)value;
|
|
125
|
-
@end
|
|
126
|
-
|
|
127
|
-
__attribute__((swift_name("KotlinFloat")))
|
|
128
|
-
@interface CPSDKFloat : CPSDKNumber
|
|
129
|
-
- (instancetype)initWithFloat:(float)value;
|
|
130
|
-
+ (instancetype)numberWithFloat:(float)value;
|
|
131
|
-
@end
|
|
132
|
-
|
|
133
|
-
__attribute__((swift_name("KotlinDouble")))
|
|
134
|
-
@interface CPSDKDouble : CPSDKNumber
|
|
135
|
-
- (instancetype)initWithDouble:(double)value;
|
|
136
|
-
+ (instancetype)numberWithDouble:(double)value;
|
|
137
|
-
@end
|
|
138
|
-
|
|
139
|
-
__attribute__((swift_name("KotlinBoolean")))
|
|
140
|
-
@interface CPSDKBoolean : CPSDKNumber
|
|
141
|
-
- (instancetype)initWithBool:(BOOL)value;
|
|
142
|
-
+ (instancetype)numberWithBool:(BOOL)value;
|
|
143
|
-
@end
|
|
144
|
-
|
|
145
|
-
__attribute__((swift_name("UPIAppDetector")))
|
|
146
|
-
@protocol CPSDKUPIAppDetector
|
|
147
|
-
@required
|
|
148
|
-
- (NSArray<NSString *> *)getInstalledUPIApps __attribute__((swift_name("getInstalledUPIApps()")));
|
|
149
|
-
@end
|
|
150
|
-
|
|
151
|
-
__attribute__((objc_subclassing_restricted))
|
|
152
|
-
__attribute__((swift_name("UPIAppDetectorIOS")))
|
|
153
|
-
@interface CPSDKUPIAppDetectorIOS : CPSDKBase <CPSDKUPIAppDetector>
|
|
154
|
-
- (instancetype)init __attribute__((swift_name("init()"))) __attribute__((objc_designated_initializer));
|
|
155
|
-
+ (instancetype)new __attribute__((availability(swift, unavailable, message="use object initializers instead")));
|
|
156
|
-
- (NSArray<NSString *> *)getInstalledUPIApps __attribute__((swift_name("getInstalledUPIApps()")));
|
|
157
|
-
@end
|
|
158
|
-
|
|
159
|
-
__attribute__((objc_subclassing_restricted))
|
|
160
|
-
__attribute__((swift_name("UPIService")))
|
|
161
|
-
@interface CPSDKUPIService : CPSDKBase
|
|
162
|
-
- (instancetype)initWithDetector:(id<CPSDKUPIAppDetector>)detector __attribute__((swift_name("init(detector:)"))) __attribute__((objc_designated_initializer));
|
|
163
|
-
- (NSArray<NSString *> *)getAvailableApps __attribute__((swift_name("getAvailableApps()")));
|
|
164
|
-
@end
|
|
165
|
-
|
|
166
|
-
#pragma pop_macro("_Nullable_result")
|
|
167
|
-
#pragma clang diagnostic pop
|
|
168
|
-
NS_ASSUME_NONNULL_END
|
package/ios/Framework/CrossPlatformSDK.xcframework/ios-arm64/CrossPlatformSDK.framework/Info.plist
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
-
<plist version="1.0">
|
|
4
|
-
<dict>
|
|
5
|
-
<key>CFBundleExecutable</key>
|
|
6
|
-
<string>CrossPlatformSDK</string>
|
|
7
|
-
<key>CFBundleIdentifier</key>
|
|
8
|
-
<string>com.boxpaybridge.CrossPlatformSDK</string>
|
|
9
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
|
10
|
-
<string>6.0</string>
|
|
11
|
-
<key>CFBundleName</key>
|
|
12
|
-
<string>CrossPlatformSDK</string>
|
|
13
|
-
<key>CFBundlePackageType</key>
|
|
14
|
-
<string>FMWK</string>
|
|
15
|
-
<key>CFBundleShortVersionString</key>
|
|
16
|
-
<string>1.0</string>
|
|
17
|
-
<key>CFBundleSupportedPlatforms</key>
|
|
18
|
-
<array>
|
|
19
|
-
<string>iPhoneOS</string>
|
|
20
|
-
</array>
|
|
21
|
-
<key>CFBundleVersion</key>
|
|
22
|
-
<string>1</string>
|
|
23
|
-
<key>MinimumOSVersion</key>
|
|
24
|
-
<string>12.0</string>
|
|
25
|
-
<key>UIDeviceFamily</key>
|
|
26
|
-
<array>
|
|
27
|
-
<integer>1</integer>
|
|
28
|
-
<integer>2</integer>
|
|
29
|
-
</array>
|
|
30
|
-
<key>UIRequiredDeviceCapabilities</key>
|
|
31
|
-
<array>
|
|
32
|
-
<string>arm64</string>
|
|
33
|
-
</array>
|
|
34
|
-
</dict>
|
|
35
|
-
</plist>
|