ordering-ui-react-native 0.15.9 → 0.15.10-release

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 (129) hide show
  1. package/package.json +5 -3
  2. package/src/DeliveryApp.tsx +43 -1
  3. package/src/components/BusinessTypeFilter/index.tsx +12 -2
  4. package/src/components/BusinessTypeFilter/styles.tsx +1 -1
  5. package/src/components/BusinessesListing/index.tsx +1 -1
  6. package/src/components/Checkout/index.tsx +0 -1
  7. package/src/components/LanguageSelector/index.tsx +1 -0
  8. package/src/components/MomentOption/index.tsx +3 -1
  9. package/src/components/OrderDetails/index.tsx +24 -3
  10. package/src/components/PaymentOptions/index.tsx +9 -16
  11. package/src/components/PaymentOptionsWebView/index.tsx +123 -124
  12. package/src/components/ProductForm/index.tsx +1 -1
  13. package/src/components/ProductForm/styles.tsx +1 -0
  14. package/src/components/StripeElementsForm/index.tsx +27 -48
  15. package/src/components/VerifyPhone/styles.tsx +1 -2
  16. package/src/config.json +0 -2
  17. package/src/pages/Checkout.tsx +1 -1
  18. package/src/types/index.tsx +1 -9
  19. package/src/utils/index.tsx +2 -1
  20. package/themes/business/index.tsx +2 -0
  21. package/themes/business/src/components/Chat/index.tsx +3 -2
  22. package/themes/business/src/components/Home/index.tsx +128 -55
  23. package/themes/business/src/components/Home/styles.tsx +8 -1
  24. package/themes/business/src/components/NewOrderNotification/index.tsx +59 -98
  25. package/themes/business/src/components/OrderDetails/Business.tsx +1 -0
  26. package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +27 -0
  27. package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +85 -17
  28. package/themes/business/src/components/OrdersListManager/index.tsx +874 -0
  29. package/themes/business/src/components/OrdersListManager/styles.tsx +123 -0
  30. package/themes/business/src/components/OrdersListManager/utils.tsx +216 -0
  31. package/themes/business/src/components/OrdersOption/index.tsx +70 -116
  32. package/themes/business/src/components/OrdersOption/styles.tsx +2 -5
  33. package/themes/business/src/components/PreviousOrders/index.tsx +82 -23
  34. package/themes/doordash/src/components/BusinessesListing/index.tsx +1 -1
  35. package/themes/doordash/src/components/LoginForm/index.tsx +1 -2
  36. package/themes/instacart/src/components/BusinessesListing/index.tsx +1 -1
  37. package/themes/kiosk/src/components/BusinessController/index.tsx +27 -6
  38. package/themes/kiosk/src/components/BusinessController/styles.tsx +1 -1
  39. package/themes/kiosk/src/components/BusinessProductsListing/index.tsx +51 -24
  40. package/themes/kiosk/src/components/Cart/index.tsx +1 -1
  41. package/themes/kiosk/src/components/CartBottomSheet/index.tsx +1 -1
  42. package/themes/kiosk/src/components/CartBottomSheet/styles.tsx +1 -1
  43. package/themes/kiosk/src/components/CartContent/index.tsx +13 -3
  44. package/themes/kiosk/src/components/CartItem/index.tsx +20 -8
  45. package/themes/kiosk/src/components/CategoriesMenu/index.tsx +7 -5
  46. package/themes/kiosk/src/components/CustomerName/index.tsx +89 -88
  47. package/themes/kiosk/src/components/Intro/index.tsx +13 -13
  48. package/themes/kiosk/src/components/LanguageSelector/index.tsx +12 -8
  49. package/themes/kiosk/src/components/NavBar/index.tsx +14 -14
  50. package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
  51. package/themes/kiosk/src/components/OrderDetails/index.tsx +2 -2
  52. package/themes/kiosk/src/components/OrderSummary/index.tsx +1 -1
  53. package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +10 -12
  54. package/themes/kiosk/src/components/ProductForm/index.tsx +174 -126
  55. package/themes/kiosk/src/components/ProductForm/styles.tsx +1 -1
  56. package/themes/kiosk/src/components/ProductOption/index.tsx +1 -0
  57. package/themes/kiosk/src/components/ProductOption/styles.tsx +1 -0
  58. package/themes/kiosk/src/components/UpsellingProducts/index.tsx +48 -34
  59. package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
  60. package/themes/kiosk/src/components/shared/OCard.tsx +112 -78
  61. package/themes/original/index.tsx +177 -0
  62. package/themes/original/src/components/AddressForm/index.tsx +15 -10
  63. package/themes/original/src/components/AddressList/index.tsx +28 -2
  64. package/themes/original/src/components/AppleLogin/index.tsx +119 -78
  65. package/themes/original/src/components/BusinessBasicInformation/index.tsx +95 -44
  66. package/themes/original/src/components/BusinessBasicInformation/styles.tsx +28 -1
  67. package/themes/original/src/components/BusinessController/index.tsx +32 -21
  68. package/themes/original/src/components/BusinessListingSearch/index.tsx +7 -3
  69. package/themes/original/src/components/BusinessMenuList/index.tsx +11 -4
  70. package/themes/original/src/components/BusinessPreorder/index.tsx +141 -121
  71. package/themes/original/src/components/BusinessProductsCategories/index.tsx +7 -5
  72. package/themes/original/src/components/BusinessProductsList/index.tsx +129 -22
  73. package/themes/original/src/components/BusinessProductsList/styles.tsx +32 -2
  74. package/themes/original/src/components/BusinessProductsListing/index.tsx +92 -37
  75. package/themes/original/src/components/BusinessProductsListing/styles.tsx +22 -0
  76. package/themes/original/src/components/BusinessReviews/index.tsx +4 -25
  77. package/themes/original/src/components/BusinessesListing/index.tsx +40 -53
  78. package/themes/original/src/components/Cart/index.tsx +40 -9
  79. package/themes/original/src/components/CartContent/index.tsx +2 -2
  80. package/themes/original/src/components/Checkout/index.tsx +47 -31
  81. package/themes/original/src/components/Checkout/styles.tsx +7 -0
  82. package/themes/original/src/components/CouponControl/index.tsx +1 -0
  83. package/themes/original/src/components/DriverTips/index.tsx +1 -1
  84. package/themes/original/src/components/ForgotPasswordForm/index.tsx +8 -12
  85. package/themes/original/src/components/HighestRatedBusinesses/index.tsx +97 -89
  86. package/themes/original/src/components/Home/index.tsx +1 -1
  87. package/themes/original/src/components/LoginForm/index.tsx +156 -70
  88. package/themes/original/src/components/LoginForm/styles.tsx +6 -1
  89. package/themes/original/src/components/Messages/index.tsx +50 -45
  90. package/themes/original/src/components/Messages/styles.tsx +1 -3
  91. package/themes/original/src/components/MomentOption/index.tsx +10 -1
  92. package/themes/original/src/components/MomentOption/styles.tsx +1 -1
  93. package/themes/original/src/components/OrderDetails/index.tsx +104 -126
  94. package/themes/original/src/components/OrderDetails/styles.tsx +3 -1
  95. package/themes/original/src/components/OrderProgress/index.tsx +4 -4
  96. package/themes/original/src/components/OrderProgress/styles.tsx +1 -0
  97. package/themes/original/src/components/OrderSummary/index.tsx +34 -1
  98. package/themes/original/src/components/OrdersOption/index.tsx +15 -46
  99. package/themes/original/src/components/OrdersOption/styles.tsx +0 -6
  100. package/themes/original/src/components/PaymentOptionWallet/index.tsx +6 -2
  101. package/themes/original/src/components/PaymentOptions/index.tsx +24 -25
  102. package/themes/original/src/components/PhoneInputNumber/index.tsx +15 -8
  103. package/themes/original/src/components/PlaceSpot/index.tsx +114 -0
  104. package/themes/original/src/components/PlaceSpot/styles.tsx +11 -0
  105. package/themes/original/src/components/PreviousOrders/index.tsx +19 -13
  106. package/themes/original/src/components/ProductForm/index.tsx +31 -20
  107. package/themes/original/src/components/ProductForm/styles.tsx +2 -2
  108. package/themes/original/src/components/ReviewOrder/index.tsx +10 -9
  109. package/themes/original/src/components/ReviewProducts/index.tsx +1 -1
  110. package/themes/original/src/components/SignupForm/index.tsx +173 -154
  111. package/themes/original/src/components/StripeElementsForm/index.tsx +55 -72
  112. package/themes/original/src/components/TaxInformation/index.tsx +17 -7
  113. package/themes/original/src/components/UpsellingProducts/index.tsx +6 -6
  114. package/themes/original/src/components/UserDetails/index.tsx +4 -95
  115. package/themes/original/src/components/UserFormDetails/index.tsx +2 -14
  116. package/themes/original/src/components/UserProfile/index.tsx +16 -16
  117. package/themes/original/src/components/UserProfileForm/index.tsx +8 -6
  118. package/themes/original/src/components/VerifyPhone/index.tsx +10 -7
  119. package/themes/original/src/components/VerifyPhone/styles.tsx +2 -1
  120. package/themes/original/src/components/shared/HeaderTitle.tsx +21 -0
  121. package/themes/original/src/components/shared/index.tsx +2 -0
  122. package/themes/original/src/config/constants.tsx +6 -6
  123. package/themes/original/src/types/index.tsx +63 -23
  124. package/themes/original/src/utils/index.tsx +12 -2
  125. package/themes/single-business/src/components/AddressList/index.tsx +1 -1
  126. package/themes/single-business/src/components/OrderTypeSelector/index.tsx +5 -5
  127. package/themes/single-business/src/components/UserProfile/index.tsx +1 -1
  128. package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
  129. package/src/components/StripeMethodForm/index.tsx +0 -168
@@ -1,110 +1,144 @@
1
1
  import React from 'react';
2
- import { TextStyle, ViewStyle, Platform } from 'react-native';
2
+ import { TextStyle, ImageBackground, StyleSheet } from 'react-native';
3
3
  import { useTheme } from 'styled-components/native';
4
+ import FastImage from 'react-native-fast-image'
4
5
 
5
- import styled from 'styled-components/native';
6
- import OImage from './OImage';
6
+ import styled, { css } from 'styled-components/native';
7
7
  import OText from './OText';
8
8
 
9
9
  const CardContainer = styled.TouchableOpacity`
10
- width: 21%;
11
- margin: 10px 20px;
12
- overflow: hidden;
10
+ position: relative;
11
+ flex-direction: column;
12
+ border-radius: 10px;
13
+ position: relative;
14
+ margin: 0 30px 30px 0;
15
+ align-self: flex-start;
13
16
  `
14
17
 
15
- const CardBody = styled.View`
16
- padding: 4%;
18
+ const WrapPrice = styled.View`
19
+ display: flex;
20
+ flex-direction: row;
21
+ align-items: center;
22
+ margin-top: 10px;
17
23
  `
18
24
 
19
- const CardBadge = styled.Text`
20
- padding: 2% 4%;
21
- position: absolute;
22
- background-color: ${(props: any) => props.theme.theme.colors.primary};
23
- z-index: 100;
24
- border-radius: 5px;
25
- color: #fff;
26
- font-weight: bold;
27
- margin: 10px 0;
25
+ const WrapImage = styled.View`
26
+ width: 100%;
27
+ height: 120px;
28
+ `
29
+
30
+ const WrapContent = styled.View`
31
+ display: flex;
32
+ flex-direction: column;
33
+ ${(props: any) => props.isCentered && css`
34
+ align-items: center;
35
+ `}
28
36
  `
29
37
 
30
38
  const OCard = (props: Props): React.ReactElement => {
31
39
  const theme = useTheme()
32
40
 
41
+ const styles = StyleSheet.create({
42
+ textStyle: {
43
+ marginTop: 10
44
+ },
45
+ image: {
46
+ width: '100%',
47
+ height: '100%',
48
+ borderBottomLeftRadius: 0,
49
+ borderBottomRightRadius: 0,
50
+ }
51
+ })
52
+
33
53
  return (
34
54
  <CardContainer
35
- style={{...props.style}}
36
- onPress={props?.onPress}
37
- disabled={!props?.onPress}
38
- activeOpacity={1}
39
- >
40
- {props?.badgeText && (
41
- <CardBadge>
42
- {props?.badgeText}
43
- </CardBadge>
44
- )}
45
- <OImage
46
- source={props.image}
47
- height={120}
48
- resizeMode="cover"
49
- borderRadius={16}
50
- />
51
- <CardBody>
52
- <OText
53
- mLeft={0}
54
- size={18}
55
- numberOfLines={2}
56
- mBottom={8}
57
- style={{...props?.titleStyle}}
58
- >
59
- {props.title}
60
- </OText>
61
-
62
- {props?.description && (
63
- <OText
64
- color={theme.colors.mediumGray}
65
- numberOfLines={3}
66
- mBottom={8}
67
- style={{...props?.descriptionStyle}}
68
- >
69
- {props.description}
70
- </OText>
55
+ activeOpacity={1}
56
+ style={props.style}
57
+ onPress={props?.onPress}
58
+ disabled={!props?.onPress}
59
+ >
60
+ <WrapImage>
61
+ {props.isUri ? (
62
+ <FastImage
63
+ style={[styles.image, props.style]}
64
+ source={{
65
+ uri: props.image?.uri,
66
+ priority: FastImage.priority.normal,
67
+ // cache:FastImage.cacheControl.web
68
+ }}
69
+ resizeMode={FastImage.resizeMode.cover}
70
+ />
71
+ ) : (
72
+ <ImageBackground
73
+ style={[styles.image, props.style]}
74
+ source={props.image}
75
+ imageStyle={{
76
+ borderBottomLeftRadius: 0,
77
+ borderBottomRightRadius: 0,
78
+ borderRadius: 10
79
+ }}
80
+ resizeMode='cover'
81
+ />
71
82
  )}
72
-
73
- {props?.price && (
74
- <OText>
75
- <OText
76
- color={theme.colors.primary}
77
- weight="bold"
78
- >
79
- {props.price}
80
- </OText>
81
-
82
- <OText
83
- color={theme.colors.mediumGray}
84
- size={12}
85
- style={{textDecorationLine: 'line-through', textDecorationStyle: 'solid'}}
86
- >
87
- {props?.prevPrice ? ` ${props?.prevPrice} ` : ''}
88
- </OText>
89
- </OText>
90
- )}
91
-
92
- </CardBody>
93
- </CardContainer>
94
- );
83
+ </WrapImage>
84
+ <WrapContent isCentered={props.isCentered}>
85
+ <OText
86
+ size={18}
87
+ numberOfLines={1}
88
+ ellipsizeMode='tail'
89
+ style={styles.textStyle}
90
+ >
91
+ {props.title}
92
+ </OText>
93
+ {!!props?.description && (
94
+ <OText
95
+ color={theme.colors.mediumGray}
96
+ size={18}
97
+ numberOfLines={3}
98
+ ellipsizeMode='tail'
99
+ style={styles.textStyle}
100
+ >
101
+ {props?.description}
102
+ </OText>
103
+ )}
104
+ <WrapPrice>
105
+ <OText
106
+ size={18}
107
+ >
108
+ {props.price}
109
+ </OText>
110
+ {props?.prevPrice && (
111
+ <OText
112
+ size={18}
113
+ color={theme.colors.mediumGray}
114
+ style={{
115
+ textDecorationLine: 'line-through',
116
+ textDecorationStyle: 'solid',
117
+ marginLeft: 20,
118
+ }}
119
+ >
120
+ {props?.prevPrice}
121
+ </OText>
122
+ )}
123
+ </WrapPrice>
124
+ </WrapContent>
125
+ </CardContainer>
126
+ )
95
127
  }
96
128
 
97
129
  interface Props {
98
130
  badgeText?: string;
131
+ isUri?: boolean;
99
132
  onPress?(): void;
100
- image: string | { uri: string };
133
+ image: any;
134
+ isCentered?: any;
101
135
  title: string;
102
136
  titleStyle?: TextStyle;
103
137
  description?: string;
104
138
  descriptionStyle?: TextStyle;
105
139
  price?: string;
106
140
  prevPrice?: string;
107
- style?: ViewStyle;
141
+ style?: any;
108
142
  }
109
143
 
110
144
  export default OCard;
@@ -7,11 +7,15 @@ import { SignupForm } from './src/components/SignupForm';
7
7
  import { ActiveOrders } from './src/components/ActiveOrders';
8
8
  import { AddressList } from './src/components/AddressList';
9
9
  import { AppleLogin } from './src/components/AppleLogin';
10
+ import { BusinessBasicInformation } from './src/components/BusinessBasicInformation';
11
+ import { BusinessProductsCategories } from './src/components/BusinessProductsCategories';
12
+ import { BusinessProductsList } from './src/components/BusinessProductsList';
10
13
  import { BusinessesListing } from './src/components/BusinessesListing';
11
14
  import { BusinessProductsListing } from './src/components/BusinessProductsListing';
12
15
  import { CartContent } from './src/components/CartContent';
13
16
  import { BusinessCart } from './src/components/BusinessCart';
14
17
  import { Checkout } from './src/components/Checkout';
18
+ import { FloatingButton } from './src/components/FloatingButton';
15
19
  import { ForgotPasswordForm } from './src/components/ForgotPasswordForm';
16
20
  import { MomentOption } from './src/components/MomentOption';
17
21
  import { OrdersOption } from './src/components/OrdersOption';
@@ -25,6 +29,7 @@ import { ReviewProducts } from './src/components/ReviewProducts';
25
29
  import { ReviewDriver } from './src/components/ReviewDriver';
26
30
  import { UserProfile } from './src/components/UserProfile';
27
31
  import { MessageListing } from './src/components/MessageListing';
32
+ import { Messages } from './src/components/Messages';
28
33
  import { Help } from './src/components/Help';
29
34
  import { HelpAccountAndPayment } from './src/components/HelpAccountAndPayment';
30
35
  import { HelpGuide } from './src/components/HelpGuide';
@@ -32,12 +37,87 @@ import { HelpOrder } from './src/components/HelpOrder';
32
37
  import { NetworkError } from './src/components/NetworkError';
33
38
  import { NotFoundSource } from './src/components/NotFoundSource';
34
39
  import { OrderTypeSelector } from './src/components/OrderTypeSelector';
40
+ import { SearchBar } from './src/components/SearchBar';
35
41
  import { Wallets } from './src/components/Wallets';
36
42
  import { PaymentOptionWallet } from './src/components/PaymentOptionWallet';
37
43
  import { ProductForm } from './src/components/ProductForm';
38
44
  import { UpsellingProducts } from './src/components/UpsellingProducts';
39
45
  import { UserVerification } from './src/components/UserVerification';
40
46
  import { BusinessListingSearch } from './src/components/BusinessListingSearch';
47
+ import { LastOrders } from './src/components/LastOrders';
48
+ import NavBar from './src/components/NavBar';
49
+ import { BusinessTypeFilter } from './src/components/BusinessTypeFilter';
50
+ import { BusinessController } from './src/components/BusinessController';
51
+ import { BusinessFeaturedController } from './src/components/BusinessFeaturedController';
52
+ import { HighestRatedBusinesses } from './src/components/HighestRatedBusinesses';
53
+ import { PaymentOptions } from './src/components/PaymentOptions';
54
+ import { DriverTips } from './src/components/DriverTips';
55
+ import { UserDetails } from './src/components/UserDetails';
56
+ import { OrderSummary } from './src/components/OrderSummary';
57
+ import { CartStoresListing } from './src/components/CartStoresListing';
58
+ import { PaymentOptionsWebView } from '../../src/components/PaymentOptionsWebView';
59
+ import { GoogleMap } from './src/components/GoogleMap';
60
+ import { SingleProductCard } from './src/components/SingleProductCard';
61
+ import { UpsellingRedirect } from './src/components/BusinessProductsListing/UpsellingRedirect';
62
+ import { ProductItemAccordion } from './src/components/ProductItemAccordion';
63
+ import { BusinessItemAccordion } from './src/components/BusinessItemAccordion';
64
+ import { CouponControl } from './src/components/CouponControl';
65
+ import { TaxInformation } from './src/components/TaxInformation';
66
+ import { PlaceSpot } from './src/components/PlaceSpot';
67
+ import { Cart } from './src/components/Cart';
68
+ import { LanguageSelector } from './src/components/LanguageSelector';
69
+ import { PhoneInputNumber } from './src/components/PhoneInputNumber'
70
+ import { FacebookLogin } from './src/components/FacebookLogin';
71
+ import { VerifyPhone } from './src/components/VerifyPhone';
72
+ import { GoogleLogin } from './src/components/GoogleLogin';
73
+ import { PreviousOrders } from './src/components/PreviousOrders';
74
+ import { PaymentOptionCash } from './src/components/PaymentOptionCash';
75
+ import { StripeElementsForm } from './src/components/StripeElementsForm';
76
+ import { StripeCardsList } from './src/components/StripeCardsList';
77
+ import { ProductIngredient } from './src/components/ProductIngredient';
78
+ import { ProductOption } from './src/components/ProductOption';
79
+ import { ProductOptionSubOption } from './src/components/ProductOptionSubOption';
80
+ import { SingleProductReview } from './src/components/SingleProductReview';
81
+ import { LogoutButton } from './src/components/LogoutButton';
82
+ import { UserFormDetailsUI } from './src/components/UserFormDetails';
83
+ import { WalletTransactionItem } from './src/components/WalletTransactionItem';
84
+
85
+ import { USER_TYPE, ORDER_TYPES } from './src/config/constants'
86
+
87
+ import { OSBill, OSTable, OSCoupon, OSTotal, OSRow } from './src/components/OrderSummary/styles';
88
+
89
+ import { FormInput, FormSide, ButtonsWrapper, LoginWith, OTab, OTabs } from './src/components/LoginForm/styles';
90
+ import { OSItem, OSItemContent, OSItemActions} from './src/components/PaymentOptionStripe/styles';
91
+
92
+ import Alert from './src/providers/AlertProvider'
93
+
94
+ import {
95
+ LoginParams,
96
+ ProfileParams,
97
+ AddressListParams,
98
+ AddressFormParams,
99
+ SignupParams,
100
+ PhoneInputParams,
101
+ LanguageSelectorParams,
102
+ BusinessesListingParams,
103
+ HighestRatedBusinessesParams,
104
+ BusinessTypeFilterParams,
105
+ BusinessControllerParams,
106
+ BusinessProductsListingParams,
107
+ BusinessBasicInformationParams,
108
+ BusinessProductsCategoriesParams,
109
+ BusinessProductsListParams,
110
+ SingleProductCardParams,
111
+ BusinessInformationParams,
112
+ BusinessReviewsParams,
113
+ SearchBarParams,
114
+ NotFoundSourceParams,
115
+ OrdersOptionParams,
116
+ ActiveOrdersParams,
117
+ PreviousOrdersParams,
118
+ OrderDetailsParams,
119
+ ReviewDriverParams
120
+ } from './src/types';
41
121
 
42
122
  import { Toast } from './src/components/shared/OToast';
43
123
  import {
@@ -54,10 +134,13 @@ import {
54
134
  OAlert,
55
135
  OModal,
56
136
  OBottomPopup,
137
+ HeaderTitle
57
138
  } from './src/components/shared';
58
139
 
59
140
  import { Container } from './src/layouts/Container';
60
141
  import { SafeAreaContainer } from './src/layouts/SafeAreaContainer';
142
+ import { FloatingBottomContainer } from './src/layouts/FloatingBottomContainer';
143
+
61
144
  import {
62
145
  _retrieveStoreData,
63
146
  _setStoreData,
@@ -93,6 +176,7 @@ export {
93
176
  BusinessMenuList,
94
177
  UserProfile,
95
178
  MessageListing,
179
+ Messages,
96
180
  Help,
97
181
  HelpAccountAndPayment,
98
182
  HelpGuide,
@@ -106,6 +190,96 @@ export {
106
190
  UpsellingProducts,
107
191
  UserVerification,
108
192
  BusinessListingSearch,
193
+ BusinessBasicInformation,
194
+ BusinessProductsCategories,
195
+ BusinessProductsList,
196
+ FloatingButton,
197
+ SearchBar,
198
+ LastOrders,
199
+ BusinessTypeFilter,
200
+ BusinessController,
201
+ BusinessFeaturedController,
202
+ HighestRatedBusinesses,
203
+ PaymentOptions,
204
+ DriverTips,
205
+ UserDetails,
206
+ OrderSummary,
207
+ CartStoresListing,
208
+ PaymentOptionsWebView,
209
+ GoogleMap,
210
+ SingleProductCard,
211
+ UpsellingRedirect,
212
+ ProductItemAccordion,
213
+ BusinessItemAccordion,
214
+ CouponControl,
215
+ TaxInformation,
216
+ PlaceSpot,
217
+ Cart,
218
+ LanguageSelector,
219
+ PhoneInputNumber,
220
+ FacebookLogin,
221
+ VerifyPhone,
222
+ GoogleLogin,
223
+ PreviousOrders,
224
+ PaymentOptionCash,
225
+ StripeElementsForm,
226
+ StripeCardsList,
227
+ ProductIngredient,
228
+ ProductOption,
229
+ ProductOptionSubOption,
230
+ SingleProductReview,
231
+ LogoutButton,
232
+ UserFormDetailsUI,
233
+ WalletTransactionItem,
234
+
235
+ ORDER_TYPES,
236
+ USER_TYPE,
237
+
238
+ OSBill,
239
+ OSTable,
240
+ OSCoupon,
241
+ OSTotal,
242
+ OSRow,
243
+
244
+ FormInput,
245
+ FormSide,
246
+ ButtonsWrapper,
247
+ LoginWith,
248
+ OTab,
249
+ OTabs,
250
+
251
+ OSItem,
252
+ OSItemContent,
253
+ OSItemActions,
254
+
255
+ Alert,
256
+
257
+ //Types
258
+ LoginParams,
259
+ ProfileParams,
260
+ AddressListParams,
261
+ AddressFormParams,
262
+ SignupParams,
263
+ PhoneInputParams,
264
+ LanguageSelectorParams,
265
+ BusinessesListingParams,
266
+ HighestRatedBusinessesParams,
267
+ BusinessTypeFilterParams,
268
+ BusinessControllerParams,
269
+ BusinessProductsListingParams,
270
+ BusinessBasicInformationParams,
271
+ BusinessProductsCategoriesParams,
272
+ BusinessProductsListParams,
273
+ SingleProductCardParams,
274
+ BusinessInformationParams,
275
+ BusinessReviewsParams,
276
+ SearchBarParams,
277
+ NotFoundSourceParams,
278
+ OrdersOptionParams,
279
+ ActiveOrdersParams,
280
+ PreviousOrdersParams,
281
+ OrderDetailsParams,
282
+ ReviewDriverParams,
109
283
 
110
284
  // OComponents
111
285
  Toast,
@@ -122,10 +296,13 @@ export {
122
296
  OAlert,
123
297
  OModal,
124
298
  OBottomPopup,
299
+ HeaderTitle,
125
300
 
126
301
  // layout
127
302
  Container,
128
303
  SafeAreaContainer,
304
+ FloatingBottomContainer,
305
+ NavBar,
129
306
 
130
307
  // utils
131
308
  _retrieveStoreData,
@@ -108,6 +108,9 @@ const AddressFormUI = (props: AddressFormParams) => {
108
108
  top: 12,
109
109
  zIndex: 1002,
110
110
  },
111
+ wrapperNavbar: Platform.OS === 'ios'
112
+ ? { paddingVertical: 0, paddingHorizontal: 40 }
113
+ : { paddingVertical: 20, paddingHorizontal: 40 }
111
114
  });
112
115
 
113
116
  const [, t] = useLanguage();
@@ -500,16 +503,18 @@ const AddressFormUI = (props: AddressFormParams) => {
500
503
  keyboardShouldPersistTaps='always'
501
504
  listViewDisplayed={false}
502
505
  >
503
- <NavBar
504
- title={t('WHERE_DO_WE_DELIVERY', 'Where do we delivery?')}
505
- titleAlign={'center'}
506
- onActionLeft={goToBack}
507
- showCall={false}
508
- paddingTop={20}
509
- btnStyle={{ paddingLeft: 40 }}
510
- titleStyle={{ fontSize: 14 }}
511
- titleWrapStyle={{ paddingHorizontal: 0 }}
512
- />
506
+ <View style={styles.wrapperNavbar}>
507
+ <NavBar
508
+ title={t('WHERE_DO_WE_DELIVERY', 'Where do we delivery?')}
509
+ titleAlign={'center'}
510
+ onActionLeft={goToBack}
511
+ showCall={false}
512
+ btnStyle={{ paddingLeft: 0 }}
513
+ style={{ flexDirection: 'column', alignItems: 'flex-start' }}
514
+ titleWrapStyle={{ paddingHorizontal: 0 }}
515
+ titleStyle={{ marginRight: 0, marginLeft: 0 }}
516
+ />
517
+ </View>
513
518
  <TouchableWithoutFeedback onPress={Keyboard.dismiss}>
514
519
  <AddressFormContainer style={{ height: 600, overflow: 'scroll' }}>
515
520
  <View>
@@ -1,7 +1,7 @@
1
1
  import React, { useEffect } from 'react'
2
2
  import { AddressList as AddressListController, useLanguage, useOrder, useSession } from 'ordering-components/native'
3
3
  import { AddressListContainer, AddressItem } from './styles'
4
- import { StyleSheet, View } from 'react-native'
4
+ import { Platform, StyleSheet, View } from 'react-native'
5
5
  import { OButton, OText, OAlert, OModal, OIcon } from '../shared'
6
6
  import { Container } from '../../layouts/Container'
7
7
  import { AddressListParams } from '../../types'
@@ -140,7 +140,7 @@ const AddressListUI = (props: AddressListParams) => {
140
140
  <AddressListContainer>
141
141
  {isProfile && (
142
142
  <NavBar
143
- title={t('MY_SAVED_PLACES', 'My saved places')}
143
+ title={t('SAVED_PLACES', 'My saved places')}
144
144
  titleAlign={'center'}
145
145
  onActionLeft={() => goToBack()}
146
146
  showCall={false}
@@ -261,6 +261,32 @@ const AddressListUI = (props: AddressListParams) => {
261
261
  )}
262
262
  {!addressList.loading && !addressList.error && (
263
263
  <>
264
+ {addressList?.addresses?.length === 0 && (
265
+ <View
266
+ style={{
267
+ flexDirection: 'column',
268
+ paddingHorizontal: 10,
269
+ paddingTop: 20
270
+ }}
271
+ >
272
+ <OText
273
+ size={24}
274
+ lineHeight={36}
275
+ weight={Platform.OS === 'ios' ? '600' : 'bold'}
276
+ style={{
277
+ textAlign: 'center',
278
+ marginRight: 40,
279
+ color: theme.colors.textNormal,
280
+ paddingHorizontal: 0,
281
+ width: '100%',
282
+ marginLeft: 0
283
+ }}
284
+ >
285
+ {t('ADDRESS_LIST', 'Address List')}
286
+ </OText>
287
+ </View>
288
+ )}
289
+
264
290
  <OButton
265
291
  text={t('ADD_NEW_ADDRESS', 'Add new Address')}
266
292
  imgRightSrc=''