boxpay-checkout-reactnative-sdk 1.0.11-beta → 1.0.11-beta3

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 (98) hide show
  1. package/lib/module/components/checkboxContainer.js +1 -1
  2. package/lib/module/components/header.js +1 -1
  3. package/lib/module/components/header.js.map +1 -1
  4. package/lib/module/components/paymentSelector.js +1 -1
  5. package/lib/module/components/paymentSelector.js.map +1 -1
  6. package/lib/module/components/paymentSuccess.js +2 -7
  7. package/lib/module/components/paymentSuccess.js.map +1 -1
  8. package/lib/module/components/savedCardComponent.js +1 -1
  9. package/lib/module/components/savedCardComponent.js.map +1 -1
  10. package/lib/module/components/subscriptionRow.js +33 -0
  11. package/lib/module/components/subscriptionRow.js.map +1 -0
  12. package/lib/module/interface.js +1 -0
  13. package/lib/module/interface.js.map +1 -1
  14. package/lib/module/screens/addressScreen.js +11 -60
  15. package/lib/module/screens/addressScreen.js.map +1 -1
  16. package/lib/module/screens/cardScreen.js +488 -447
  17. package/lib/module/screens/cardScreen.js.map +1 -1
  18. package/lib/module/screens/emiScreen.js +2 -6
  19. package/lib/module/screens/emiScreen.js.map +1 -1
  20. package/lib/module/screens/instantOfferList.js +2 -6
  21. package/lib/module/screens/instantOfferList.js.map +1 -1
  22. package/lib/module/screens/mainScreen.js +50 -2
  23. package/lib/module/screens/mainScreen.js.map +1 -1
  24. package/lib/module/screens/netBankingScreen.js +2 -6
  25. package/lib/module/screens/netBankingScreen.js.map +1 -1
  26. package/lib/module/screens/upiScreen.js +2 -6
  27. package/lib/module/screens/upiScreen.js.map +1 -1
  28. package/lib/module/screens/walletScreen.js +2 -6
  29. package/lib/module/screens/walletScreen.js.map +1 -1
  30. package/lib/module/sdk-version.json +1 -1
  31. package/lib/module/sharedContext/checkoutDetailsHandler.js +8 -2
  32. package/lib/module/sharedContext/checkoutDetailsHandler.js.map +1 -1
  33. package/lib/module/sharedContext/getTextInputTheme.js +15 -0
  34. package/lib/module/sharedContext/getTextInputTheme.js.map +1 -0
  35. package/lib/module/styles/indexStyles.js +1 -1
  36. package/lib/module/styles/indexStyles.js.map +1 -1
  37. package/lib/module/styles/screens/bnplScreenStyles.js +2 -3
  38. package/lib/module/styles/screens/bnplScreenStyles.js.map +1 -1
  39. package/lib/module/styles/screens/cardScreenStyles.js +9 -4
  40. package/lib/module/styles/screens/cardScreenStyles.js.map +1 -1
  41. package/lib/module/styles/screens/netBankingScreenStyles.js +2 -3
  42. package/lib/module/styles/screens/netBankingScreenStyles.js.map +1 -1
  43. package/lib/module/styles/screens/walletScreenStyles.js +2 -3
  44. package/lib/module/styles/screens/walletScreenStyles.js.map +1 -1
  45. package/lib/module/utility.js +16 -0
  46. package/lib/module/utility.js.map +1 -1
  47. package/lib/typescript/src/components/subscriptionRow.d.ts +9 -0
  48. package/lib/typescript/src/components/subscriptionRow.d.ts.map +1 -0
  49. package/lib/typescript/src/interface.d.ts +26 -2
  50. package/lib/typescript/src/interface.d.ts.map +1 -1
  51. package/lib/typescript/src/screens/addressScreen.d.ts.map +1 -1
  52. package/lib/typescript/src/screens/cardScreen.d.ts +1 -1
  53. package/lib/typescript/src/screens/cardScreen.d.ts.map +1 -1
  54. package/lib/typescript/src/screens/emiScreen.d.ts.map +1 -1
  55. package/lib/typescript/src/screens/instantOfferList.d.ts.map +1 -1
  56. package/lib/typescript/src/screens/mainScreen.d.ts.map +1 -1
  57. package/lib/typescript/src/screens/netBankingScreen.d.ts.map +1 -1
  58. package/lib/typescript/src/screens/upiScreen.d.ts.map +1 -1
  59. package/lib/typescript/src/screens/walletScreen.d.ts.map +1 -1
  60. package/lib/typescript/src/sharedContext/checkoutDetailsHandler.d.ts.map +1 -1
  61. package/lib/typescript/src/sharedContext/getTextInputTheme.d.ts +7 -0
  62. package/lib/typescript/src/sharedContext/getTextInputTheme.d.ts.map +1 -0
  63. package/lib/typescript/src/styles/indexStyles.d.ts +1 -1
  64. package/lib/typescript/src/styles/screens/bnplScreenStyles.d.ts +1 -2
  65. package/lib/typescript/src/styles/screens/bnplScreenStyles.d.ts.map +1 -1
  66. package/lib/typescript/src/styles/screens/cardScreenStyles.d.ts +8 -3
  67. package/lib/typescript/src/styles/screens/cardScreenStyles.d.ts.map +1 -1
  68. package/lib/typescript/src/styles/screens/netBankingScreenStyles.d.ts +1 -2
  69. package/lib/typescript/src/styles/screens/netBankingScreenStyles.d.ts.map +1 -1
  70. package/lib/typescript/src/styles/screens/walletScreenStyles.d.ts +1 -2
  71. package/lib/typescript/src/styles/screens/walletScreenStyles.d.ts.map +1 -1
  72. package/lib/typescript/src/utility.d.ts +2 -0
  73. package/lib/typescript/src/utility.d.ts.map +1 -1
  74. package/package.json +2 -2
  75. package/src/components/checkboxContainer.tsx +1 -1
  76. package/src/components/header.tsx +1 -1
  77. package/src/components/paymentSelector.tsx +1 -1
  78. package/src/components/paymentSuccess.tsx +3 -5
  79. package/src/components/savedCardComponent.tsx +1 -1
  80. package/src/components/subscriptionRow.tsx +19 -0
  81. package/src/interface.ts +24 -2
  82. package/src/screens/addressScreen.tsx +11 -60
  83. package/src/screens/cardScreen.tsx +188 -124
  84. package/src/screens/emiScreen.tsx +2 -6
  85. package/src/screens/instantOfferList.tsx +2 -6
  86. package/src/screens/mainScreen.tsx +54 -3
  87. package/src/screens/netBankingScreen.tsx +2 -6
  88. package/src/screens/upiScreen.tsx +2 -6
  89. package/src/screens/walletScreen.tsx +2 -6
  90. package/src/sdk-version.json +1 -1
  91. package/src/sharedContext/checkoutDetailsHandler.ts +8 -2
  92. package/src/sharedContext/getTextInputTheme.ts +12 -0
  93. package/src/styles/indexStyles.ts +1 -1
  94. package/src/styles/screens/bnplScreenStyles.ts +2 -3
  95. package/src/styles/screens/cardScreenStyles.ts +3 -4
  96. package/src/styles/screens/netBankingScreenStyles.ts +2 -3
  97. package/src/styles/screens/walletScreenStyles.ts +2 -3
  98. package/src/utility.ts +24 -1
@@ -47,14 +47,13 @@ declare const styles: {
47
47
  };
48
48
  bottomContainer: {
49
49
  justifyContent: "center";
50
- alignItems: "flex-end";
50
+ alignItems: "center";
51
51
  backgroundColor: string;
52
52
  flexDirection: "row";
53
53
  };
54
54
  bottomText: {
55
55
  fontSize: number;
56
56
  color: string;
57
- marginBottom: number;
58
57
  };
59
58
  bottomImage: {
60
59
  height: number;
@@ -1 +1 @@
1
- {"version":3,"file":"walletScreenStyles.d.ts","sourceRoot":"","sources":["../../../../../src/styles/screens/walletScreenStyles.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FV,CAAA;AAEF,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"walletScreenStyles.d.ts","sourceRoot":"","sources":["../../../../../src/styles/screens/walletScreenStyles.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0FV,CAAA;AAEF,eAAe,MAAM,CAAA"}
@@ -56,4 +56,6 @@ export declare function extractNames(fullName: string): {
56
56
  export declare const formatTime: (timeRemaining: number) => string;
57
57
  export declare const formatExpiry: (input: string) => string;
58
58
  export declare const getPhoneNumberCodeAndCountryName: (countryCodeRef: string) => CountryDetails | any;
59
+ export declare const formatDate: (dateStr: string) => string;
60
+ export declare const isEmpty: (value: unknown) => boolean;
59
61
  //# sourceMappingURL=utility.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../src/utility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMhG,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,aAAa,EAAE,EACrB,UAAU,EAAE,MAAM,GACjB,YAAY,EAAE,CAehB;AAGD,wBAAgB,gBAAgB;;;;;;EAQ/B;AAED,wBAAgB,cAAc;;;;;;;;;;;EAa7B;AAED,wBAAgB,iBAAiB;;;;;;;;;;;;;;;;;;;EA8BhC;AAED,eAAO,MAAQ,MAAM,UAAE,KAAK,QAA6B,CAAC;AAE1D,eAAO,MAAM,YAAY,GAAI,gBAAgB,MAAM;;;;CA0BlD,CAAC;AAMF,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG/C;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAavE;AAGD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG9C;AAED,wBAAgB,aAAa,CAAC,eAAe,EAAG,eAAe,GAAI,MAAM,CAMxE;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAcA;AAED,eAAO,MAAM,UAAU,GAAI,eAAgB,MAAM,WAIhD,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,KAAG,MAgB5C,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAI,gBAAiB,MAAM,KAAI,cAAc,GAAG,GAK5F,CAAA"}
1
+ {"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../src/utility.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMhG,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,aAAa,EAAE,EACrB,UAAU,EAAE,MAAM,GACjB,YAAY,EAAE,CAehB;AAGD,wBAAgB,gBAAgB;;;;;;EAQ/B;AAED,wBAAgB,cAAc;;;;;;;;;;;EAa7B;AAED,wBAAgB,iBAAiB;;;;;;;;;;;;;;;;;;;EA8BhC;AAED,eAAO,MAAQ,MAAM,UAAE,KAAK,QAA6B,CAAC;AAE1D,eAAO,MAAM,YAAY,GAAI,gBAAgB,MAAM;;;;CA0BlD,CAAC;AAMF,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG/C;AAED,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAavE;AAGD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAG9C;AAED,wBAAgB,aAAa,CAAC,eAAe,EAAG,eAAe,GAAI,MAAM,CAMxE;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG;IAC9C,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAcA;AAED,eAAO,MAAM,UAAU,GAAI,eAAgB,MAAM,WAIhD,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO,MAAM,KAAG,MAgB5C,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAI,gBAAiB,MAAM,KAAI,cAAc,GAAG,GAK5F,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,SAAS,MAAM,WAWzC,CAAC;AAEF,eAAO,MAAM,OAAO,GAAI,OAAO,OAAO,KAAG,OAQxC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boxpay-checkout-reactnative-sdk",
3
- "version": "1.0.11-beta",
3
+ "version": "1.0.11-beta3",
4
4
  "description": "Boxpay Payment Gateway",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -145,7 +145,7 @@
145
145
  "create-react-native-library": {
146
146
  "languages": "js",
147
147
  "type": "library",
148
- "version": "1.0.11-beta"
148
+ "version": "1.0.11-beta3"
149
149
  },
150
150
  "dependencies": {
151
151
  "axios": "^1.11.0",
@@ -52,7 +52,7 @@ const styles = StyleSheet.create({
52
52
  borderRadius: 3,
53
53
  justifyContent: 'center',
54
54
  alignItems: 'center',
55
- marginLeft: 8,
55
+ marginLeft: 16,
56
56
  },
57
57
  checkmark: {
58
58
  color: '#fff',
@@ -78,7 +78,7 @@ const styles = StyleSheet.create({
78
78
  color: '#363840'
79
79
  },
80
80
  headerDesc: {
81
- marginTop: -4,
81
+ paddingTop: 2,
82
82
  fontSize: 12,
83
83
  color: '#4F4D55'
84
84
  },
@@ -138,7 +138,7 @@ const PaymentSelector = ({
138
138
  }}
139
139
  >
140
140
  <Text style={[styles.buttonText, {fontFamily: checkoutDetails.fontFamily.semiBold,}]}>
141
- Proceed to Pay{' '}
141
+ Pay{' '}
142
142
  <Text
143
143
  style={{
144
144
  fontFamily: 'Inter-SemiBold',
@@ -256,11 +256,9 @@ const styles = StyleSheet.create({
256
256
  fontSize: 16,
257
257
  },
258
258
  dashedLine: {
259
- borderBottomWidth: 2, // Thickness of the line
260
- borderBottomColor: '#E6E6E6', // Color of the line
261
- borderStyle: 'dashed', // Makes it dashed
259
+ backgroundColor: '#E6E6E6', // Color of the line
262
260
  width: '100%', // Full width
263
- marginVertical: 10, // Some spacing
264
- marginTop: 16,
261
+ marginVertical: 10,
262
+ height : 2
265
263
  },
266
264
  });
@@ -201,7 +201,7 @@ const SavedCardRow = ({
201
201
  }}
202
202
  >
203
203
  <Text style={[styles.buttonText, {fontFamily: checkoutDetails.fontFamily.semiBold,}]}>
204
- Proceed to Pay{' '}
204
+ Pay{' '}
205
205
  <Text
206
206
  style={{
207
207
  fontFamily: 'Inter-SemiBold',
@@ -0,0 +1,19 @@
1
+ import { View, Text } from "react-native"
2
+ import type { CheckoutDetails } from "../interface"
3
+
4
+ interface SubscriptionArgs{
5
+ checkoutDetails : CheckoutDetails,
6
+ heading: string,
7
+ value : string
8
+ }
9
+
10
+ const SubscriptionRow = ({checkoutDetails, heading, value} : SubscriptionArgs) => {
11
+ return (
12
+ <View style={{ flexDirection : 'row', justifyContent : 'space-between', marginHorizontal : 16, paddingTop : 4}}>
13
+ <Text style={{fontFamily :checkoutDetails.fontFamily.regular, color : '#2D2B32'}}>{heading}</Text>
14
+ <Text style={{fontFamily :checkoutDetails.fontFamily.semiBold, color : '#2D2B32'}}>{value}</Text>
15
+ </View>
16
+ )
17
+ }
18
+
19
+ export default SubscriptionRow
package/src/interface.ts CHANGED
@@ -13,6 +13,7 @@ export enum ConfigurationOptions {
13
13
  export enum UIConfigurationOptions {
14
14
  FontFamily = 'FONT_FAMILY',
15
15
  CTABorderRadius = 'CTA_BORDER_RADIUS',
16
+ TextInputFields = 'TEXT_INPUT_FIELDS'
16
17
  }
17
18
 
18
19
  export interface FontConfiguration {
@@ -23,10 +24,16 @@ export interface FontConfiguration {
23
24
  extraBold?: string
24
25
  }
25
26
 
27
+ export interface TextInputFields {
28
+ focusedBorderColor? : string;
29
+ borderColor? : string
30
+ }
31
+
26
32
  // 👇 Each key has its own strict type
27
33
  export interface UIConfiguration {
28
34
  [UIConfigurationOptions.FontFamily]?: FontConfiguration;
29
35
  [UIConfigurationOptions.CTABorderRadius]?: number;
36
+ [UIConfigurationOptions.TextInputFields]?: TextInputFields
30
37
  }
31
38
 
32
39
  export interface BoxpayCheckoutProps {
@@ -46,6 +53,8 @@ export interface CheckoutDetails {
46
53
  ctaBorderRadius : number,
47
54
  buttonColor: string;
48
55
  buttonTextColor : string;
56
+ textInputFieldFocusedOutlineColor : string;
57
+ textInputFieldUnFocusedOutlineColor : string;
49
58
  headerColor : string;
50
59
  headerTextColor : string;
51
60
  env: string;
@@ -78,7 +87,8 @@ export interface CheckoutDetails {
78
87
  isUPIOtmQRMethodEnabled : boolean,
79
88
  isOrderItemDetailsVisible : boolean,
80
89
  isSICheckboxVisible : boolean,
81
- isSubscriptionCheckout : boolean
90
+ isSubscriptionCheckout : boolean,
91
+ subscriptionDetails : {label:string,value : string | null}[] | null
82
92
  }
83
93
 
84
94
  interface AnalyticsResponse {
@@ -532,8 +542,20 @@ interface OrderDetails {
532
542
  items : OrderItem[] | null
533
543
  }
534
544
 
535
- interface SubscriptionDetails {
545
+ export interface SubscriptionDetails {
536
546
  type : string,
547
+ billingCycle : {
548
+ billingTimeUnit : string,
549
+ count : number,
550
+ billingCycleValue : string
551
+ },
552
+ billingDuration : {
553
+ type : string,
554
+ noOfCycles : number
555
+ },
556
+ nextBillingDateLocale : string,
557
+ expiryDateLocale : string,
558
+ recurringExpiryDateLocale : string,
537
559
  maxAmountLocaleFull : string
538
560
  }
539
561
 
@@ -20,6 +20,7 @@ import {
20
20
  } from '../sharedContext/userdataHandler';
21
21
  import styles from '../styles/screens/addressScreenStyles.';
22
22
  import { extractNames, getPhoneNumberCodeAndCountryName } from '../utility';
23
+ import { getTextInputTheme } from '../sharedContext/getTextInputTheme';
23
24
 
24
25
  type AddressScreenRouteProp = RouteProp<CheckoutStackParamList, 'AddressScreen'>;
25
26
  type AddressScreenNavigationProp = NavigationProp<CheckoutStackParamList, 'AddressScreen'>;
@@ -358,12 +359,7 @@ const AddressScreen = ({ route, navigation }: Props) => {
358
359
  }
359
360
  value={countryTextField || ''}
360
361
  onChangeText={(_) => {}}
361
- theme={{
362
- colors: {
363
- primary: '#2D2B32',
364
- outline: '#E6E6E6',
365
- },
366
- }}
362
+ theme={getTextInputTheme()}
367
363
  style={[
368
364
  styles.textInput,
369
365
  { marginTop: 28, marginHorizontal: 16, fontFamily: checkoutDetails.fontFamily.regular, },
@@ -411,12 +407,7 @@ const AddressScreen = ({ route, navigation }: Props) => {
411
407
  onChangeText={(it) => {
412
408
  onChangeFullName(it);
413
409
  }}
414
- theme={{
415
- colors: {
416
- primary: '#2D2B32',
417
- outline: '#E6E6E6',
418
- },
419
- }}
410
+ theme={getTextInputTheme()}
420
411
  style={[
421
412
  styles.textInput,
422
413
  { marginTop: 20, marginHorizontal: 16, fontFamily: checkoutDetails.fontFamily.regular, },
@@ -465,12 +456,7 @@ const AddressScreen = ({ route, navigation }: Props) => {
465
456
  }
466
457
  value={selectedPhoneCode || ''}
467
458
  onChangeText={(_) => {}}
468
- theme={{
469
- colors: {
470
- primary: '#2D2B32',
471
- outline: '#E6E6E6',
472
- },
473
- }}
459
+ theme={getTextInputTheme()}
474
460
  style={[
475
461
  styles.textInput,
476
462
  { width: 100, marginEnd: 8, fontFamily: checkoutDetails.fontFamily.regular,},
@@ -514,12 +500,7 @@ const AddressScreen = ({ route, navigation }: Props) => {
514
500
  onChangeText={(it) => {
515
501
  onChangePhoneNumber(it)
516
502
  }}
517
- theme={{
518
- colors: {
519
- primary: '#2D2B32',
520
- outline: '#E6E6E6',
521
- },
522
- }}
503
+ theme={getTextInputTheme()}
523
504
  style={[styles.textInput, { flex: 1 , fontFamily: checkoutDetails.fontFamily.regular,}]}
524
505
  error={isPhoneNumberValid == false}
525
506
  outlineStyle={{
@@ -560,12 +541,7 @@ const AddressScreen = ({ route, navigation }: Props) => {
560
541
  onChangeText={(it) => {
561
542
  onChangeEmailId(it);
562
543
  }}
563
- theme={{
564
- colors: {
565
- primary: '#2D2B32',
566
- outline: '#E6E6E6',
567
- },
568
- }}
544
+ theme={getTextInputTheme()}
569
545
  style={[
570
546
  styles.textInput,
571
547
  { marginTop: 20, marginHorizontal: 16, fontFamily: checkoutDetails.fontFamily.regular, },
@@ -617,12 +593,7 @@ const AddressScreen = ({ route, navigation }: Props) => {
617
593
  onChangeText={(it) => {
618
594
  onChangePostalCode(it);
619
595
  }}
620
- theme={{
621
- colors: {
622
- primary: '#2D2B32',
623
- outline: '#E6E6E6',
624
- },
625
- }}
596
+ theme={getTextInputTheme()}
626
597
  style={[styles.textInput, {fontFamily: checkoutDetails.fontFamily.regular,}]}
627
598
  error={isPinValid == false}
628
599
  outlineStyle={{
@@ -662,12 +633,7 @@ const AddressScreen = ({ route, navigation }: Props) => {
662
633
  onChangeText={(it) => {
663
634
  onChangeCity(it);
664
635
  }}
665
- theme={{
666
- colors: {
667
- primary: '#2D2B32',
668
- outline: '#E6E6E6',
669
- },
670
- }}
636
+ theme={getTextInputTheme()}
671
637
  style={[styles.textInput, { marginStart: 8, fontFamily: checkoutDetails.fontFamily.regular, }]}
672
638
  error={isCityValid == false}
673
639
  outlineStyle={{
@@ -706,12 +672,7 @@ const AddressScreen = ({ route, navigation }: Props) => {
706
672
  onChangeText={(it) => {
707
673
  onChangeState(it);
708
674
  }}
709
- theme={{
710
- colors: {
711
- primary: '#2D2B32',
712
- outline: '#E6E6E6',
713
- },
714
- }}
675
+ theme={getTextInputTheme()}
715
676
  style={[
716
677
  styles.textInput,
717
678
  { marginTop: 20, marginHorizontal: 16, fontFamily: checkoutDetails.fontFamily.regular, },
@@ -753,12 +714,7 @@ const AddressScreen = ({ route, navigation }: Props) => {
753
714
  onChangeText={(it) => {
754
715
  onChangeMainAddress(it);
755
716
  }}
756
- theme={{
757
- colors: {
758
- primary: '#2D2B32',
759
- outline: '#E6E6E6',
760
- },
761
- }}
717
+ theme={getTextInputTheme()}
762
718
  style={[
763
719
  styles.textInput,
764
720
  { marginTop: 20, marginHorizontal: 16, fontFamily: checkoutDetails.fontFamily.regular, },
@@ -800,12 +756,7 @@ const AddressScreen = ({ route, navigation }: Props) => {
800
756
  onChangeText={(it) => {
801
757
  setSecondaryAddressTextField(it);
802
758
  }}
803
- theme={{
804
- colors: {
805
- primary: '#2D2B32',
806
- outline: '#E6E6E6',
807
- },
808
- }}
759
+ theme={getTextInputTheme()}
809
760
  style={[
810
761
  styles.textInput,
811
762
  { marginTop: 20, marginHorizontal: 16, fontFamily: checkoutDetails.fontFamily.regular, },