ordering-ui-react-native 0.17.97 → 0.17.98-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.
- package/package.json +9 -7
- package/src/DeliveryApp.tsx +43 -1
- package/src/components/BusinessInformation/index.tsx +10 -9
- package/src/components/BusinessesListing/index.tsx +1 -1
- package/src/components/OrderCreating/index.tsx +0 -20
- package/src/components/PaymentOptionsWebView/index.tsx +29 -8
- package/src/components/PhoneInputNumber/index.tsx +6 -2
- package/src/components/StripeMethodForm/index.tsx +136 -102
- package/src/components/VerifyPhone/styles.tsx +1 -2
- package/src/components/shared/OToast.tsx +3 -2
- package/src/types/index.tsx +5 -0
- package/src/utils/index.tsx +7 -2
- package/themes/business/index.tsx +2 -0
- package/themes/business/src/components/AcceptOrRejectOrder/index.tsx +36 -26
- package/themes/business/src/components/BusinessController/index.tsx +0 -1
- package/themes/business/src/components/Chat/index.tsx +163 -123
- package/themes/business/src/components/DriverMap/index.tsx +17 -6
- package/themes/business/src/components/DriverSchedule/index.tsx +45 -8
- package/themes/business/src/components/FloatingButton/index.tsx +34 -31
- package/themes/business/src/components/GoogleMap/index.tsx +58 -57
- package/themes/business/src/components/LoginForm/index.tsx +5 -2
- package/themes/business/src/components/MapView/index.tsx +14 -10
- package/themes/business/src/components/MessagesOption/index.tsx +22 -94
- package/themes/business/src/components/NewOrderNotification/index.tsx +123 -96
- package/themes/business/src/components/NotFoundSource/index.tsx +2 -2
- package/themes/business/src/components/OrderDetails/Business.tsx +1 -1
- package/themes/business/src/components/OrderDetails/Delivery.tsx +209 -15
- package/themes/business/src/components/OrderDetails/OrderContentComponent.tsx +84 -37
- package/themes/business/src/components/OrderDetails/OrderHeaderComponent.tsx +87 -66
- package/themes/business/src/components/OrderDetailsLogistic/index.tsx +200 -0
- package/themes/business/src/components/OrderDetailsLogistic/styles.tsx +5 -0
- package/themes/business/src/components/OrderMessage/index.tsx +19 -18
- package/themes/business/src/components/OrderSummary/index.tsx +114 -123
- package/themes/business/src/components/OrdersListManager/index.tsx +7 -2
- package/themes/business/src/components/OrdersListManager/utils.tsx +1 -1
- package/themes/business/src/components/OrdersOption/index.tsx +60 -47
- package/themes/business/src/components/PreviousMessages/FooterMessageComponent.tsx +103 -0
- package/themes/business/src/components/PreviousMessages/index.tsx +97 -55
- package/themes/business/src/components/PreviousOrders/OrderItem.tsx +21 -29
- package/themes/business/src/components/PreviousOrders/OrderList.tsx +93 -0
- package/themes/business/src/components/PreviousOrders/OrdersGroupedItem.tsx +1 -1
- package/themes/business/src/components/PreviousOrders/index.tsx +198 -221
- package/themes/business/src/components/PreviousOrders/styles.tsx +10 -0
- package/themes/business/src/components/ProductItemAccordion/index.tsx +7 -1
- package/themes/business/src/components/ReviewCustomer/index.tsx +18 -13
- package/themes/business/src/components/StoresList/index.tsx +3 -4
- package/themes/business/src/components/UserProfileForm/index.tsx +14 -15
- package/themes/business/src/components/WebsocketStatus/index.tsx +171 -0
- package/themes/business/src/components/WebsocketStatus/styles.tsx +28 -0
- package/themes/business/src/components/shared/OModal.tsx +16 -9
- package/themes/business/src/types/index.tsx +24 -10
- package/themes/business/src/utils/index.tsx +29 -2
- package/themes/doordash/src/components/BusinessesListing/index.tsx +1 -1
- package/themes/doordash/src/components/LoginForm/index.tsx +1 -2
- package/themes/instacart/src/components/BusinessesListing/index.tsx +1 -1
- package/themes/kiosk/src/components/Checkout/index.tsx +6 -0
- package/themes/kiosk/src/components/Intro/index.tsx +16 -1
- package/themes/kiosk/src/components/LoginForm/index.tsx +7 -5
- package/themes/kiosk/src/components/NavBar/index.tsx +14 -14
- package/themes/kiosk/src/components/OptionCard/index.tsx +1 -1
- package/themes/kiosk/src/components/OrderTypeCardSelector/index.tsx +8 -10
- package/themes/kiosk/src/components/PhoneInputNumber/index.tsx +2 -2
- package/themes/kiosk/src/components/shared/OButton.tsx +5 -18
- package/themes/original/index.tsx +7 -3
- package/themes/original/src/components/AddressDetails/index.tsx +19 -3
- package/themes/original/src/components/AddressForm/index.tsx +33 -15
- package/themes/original/src/components/AddressList/index.tsx +5 -8
- package/themes/original/src/components/AnalyticsSegment/index.tsx +193 -10
- package/themes/original/src/components/AppleLogin/index.tsx +4 -4
- package/themes/original/src/components/AppleLogin/styles.tsx +3 -1
- package/themes/original/src/components/BusinessBasicInformation/index.tsx +72 -36
- package/themes/original/src/components/BusinessBasicInformation/styles.tsx +10 -12
- package/themes/original/src/components/BusinessController/index.tsx +35 -44
- package/themes/original/src/components/BusinessController/styles.tsx +12 -5
- package/themes/original/src/components/BusinessFeaturedController/index.tsx +21 -54
- package/themes/original/src/components/BusinessFeaturedController/styles.tsx +8 -0
- package/themes/original/src/components/BusinessInformation/index.tsx +140 -85
- package/themes/original/src/components/BusinessItemAccordion/index.tsx +21 -23
- package/themes/original/src/components/BusinessListingSearch/MaxSectionItem/index.tsx +1 -1
- package/themes/original/src/components/BusinessListingSearch/index.tsx +346 -340
- package/themes/original/src/components/BusinessListingSearch/styles.tsx +0 -18
- package/themes/original/src/components/BusinessPreorder/index.tsx +103 -19
- package/themes/original/src/components/BusinessProductsCategories/index.tsx +1 -2
- package/themes/original/src/components/BusinessProductsList/index.tsx +15 -7
- package/themes/original/src/components/BusinessProductsList/styles.tsx +8 -3
- package/themes/original/src/components/BusinessProductsListing/UpsellingRedirect.tsx +1 -1
- package/themes/original/src/components/BusinessProductsListing/index.tsx +137 -32
- package/themes/original/src/components/BusinessProductsListing/styles.tsx +2 -3
- package/themes/original/src/components/BusinessReviews/index.tsx +3 -1
- package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListFooter.tsx +69 -0
- package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListHeader.tsx +406 -0
- package/themes/original/src/components/BusinessesListing/Layout/Original/FlatListBusinessListing.tsx +76 -0
- package/themes/original/src/components/BusinessesListing/Layout/Original/index.tsx +36 -403
- package/themes/original/src/components/BusinessesListing/index.tsx +0 -1
- package/themes/original/src/components/Cart/index.tsx +44 -81
- package/themes/original/src/components/CartContent/index.tsx +70 -30
- package/themes/original/src/components/CartContent/styles.tsx +6 -6
- package/themes/original/src/components/Checkout/index.tsx +262 -35
- package/themes/original/src/components/CitiesControl/index.tsx +1 -1
- package/themes/original/src/components/CouponControl/index.tsx +10 -3
- package/themes/original/src/components/DatePicker/index.tsx +17 -0
- package/themes/original/src/components/DatePicker/styles.tsx +20 -0
- package/themes/original/src/components/DriverTips/index.tsx +12 -4
- package/themes/original/src/components/FacebookLogin/styles.tsx +3 -1
- package/themes/original/src/components/Favorite/index.tsx +1 -5
- package/themes/original/src/components/GPSButton/index.tsx +6 -4
- package/themes/original/src/components/GiftCard/GiftCardUI/index.tsx +8 -3
- package/themes/original/src/components/GiftCard/PurchaseGiftCard/index.tsx +42 -5
- package/themes/original/src/components/GiftCard/PurchaseGiftCard/styles.tsx +2 -0
- package/themes/original/src/components/GiftCard/RedeemGiftCard/index.tsx +84 -8
- package/themes/original/src/components/GoogleLogin/styles.tsx +1 -1
- package/themes/original/src/components/GoogleMap/index.tsx +63 -7
- package/themes/original/src/components/Home/index.tsx +13 -4
- package/themes/original/src/components/LastOrder/index.tsx +2 -1
- package/themes/original/src/components/LastOrders/index.tsx +2 -1
- package/themes/original/src/components/LoginForm/Otp/index.tsx +91 -25
- package/themes/original/src/components/LoginForm/index.tsx +64 -34
- package/themes/original/src/components/LottieAnimation/index.tsx +88 -63
- package/themes/original/src/components/MessageListing/index.tsx +9 -2
- package/themes/original/src/components/Messages/index.tsx +15 -4
- package/themes/original/src/components/MomentOption/index.tsx +41 -36
- package/themes/original/src/components/MomentOption/styles.tsx +0 -15
- package/themes/original/src/components/MomentSelector/index.tsx +1 -1
- package/themes/original/src/components/MultiCartsPaymethodsAndWallets/index.tsx +161 -49
- package/themes/original/src/components/MultiCheckout/index.tsx +347 -69
- package/themes/original/src/components/MultiCheckout/styles.tsx +3 -1
- package/themes/original/src/components/MultiOrdersDetails/index.tsx +1 -1
- package/themes/original/src/components/MyOrders/index.tsx +12 -1
- package/themes/original/src/components/NavBar/index.tsx +20 -13
- package/themes/original/src/components/NotFoundSource/index.tsx +14 -10
- package/themes/original/src/components/OrderDetails/OrderEta.tsx +76 -0
- package/themes/original/src/components/OrderDetails/OrderHistory.tsx +21 -5
- package/themes/original/src/components/OrderDetails/index.tsx +50 -38
- package/themes/original/src/components/OrderDetails/styles.tsx +0 -1
- package/themes/original/src/components/OrderItAgain/index.tsx +3 -1
- package/themes/original/src/components/OrderProgress/index.tsx +34 -25
- package/themes/original/src/components/OrderSummary/index.tsx +59 -56
- package/themes/original/src/components/OrderTypeSelector/index.tsx +5 -6
- package/themes/original/src/components/OrdersOption/PreviousProductsOrdered/index.tsx +13 -13
- package/themes/original/src/components/OrdersOption/index.tsx +43 -20
- package/themes/original/src/components/OrdersOption/styles.tsx +1 -1
- package/themes/original/src/components/PageBanner/index.tsx +65 -29
- package/themes/original/src/components/PageBanner/styles.tsx +0 -3
- package/themes/original/src/components/PaymentOptionCard/index.tsx +180 -0
- package/themes/original/src/components/PaymentOptionStripe/styles.tsx +3 -0
- package/themes/original/src/components/PaymentOptionWallet/index.tsx +56 -56
- package/themes/original/src/components/PaymentOptions/index.tsx +100 -34
- package/themes/original/src/components/PhoneInputNumber/index.tsx +18 -4
- package/themes/original/src/components/ProductForm/index.tsx +65 -34
- package/themes/original/src/components/ProductForm/styles.tsx +3 -3
- package/themes/original/src/components/ProductItemAccordion/index.tsx +8 -6
- package/themes/original/src/components/ProductOptionSubOption/index.tsx +49 -20
- package/themes/original/src/components/ProductOptionSubOption/styles.tsx +10 -9
- package/themes/original/src/components/ProfessionalFilter/SingleProfessionalCard/index.tsx +108 -0
- package/themes/original/src/components/ProfessionalFilter/index.tsx +20 -50
- package/themes/original/src/components/ProfessionalProfile/index.tsx +36 -7
- package/themes/original/src/components/Promotions/index.tsx +2 -2
- package/themes/original/src/components/Promotions/styles.tsx +3 -1
- package/themes/original/src/components/ReviewProducts/index.tsx +16 -7
- package/themes/original/src/components/ScheduleAccordion/index.tsx +3 -3
- package/themes/original/src/components/ServiceForm/index.tsx +40 -20
- package/themes/original/src/components/SignupForm/index.tsx +27 -16
- package/themes/original/src/components/SingleOrderCard/index.tsx +44 -20
- package/themes/original/src/components/SingleOrderCard/styles.tsx +1 -1
- package/themes/original/src/components/SingleProductCard/index.tsx +13 -10
- package/themes/original/src/components/SingleProductCard/styles.tsx +8 -3
- package/themes/original/src/components/SingleProductReview/styles.tsx +1 -1
- package/themes/original/src/components/StripeCardsList/index.tsx +61 -5
- package/themes/original/src/components/StripeElementsForm/index.tsx +48 -34
- package/themes/original/src/components/StripeElementsForm/naked.tsx +12 -1
- package/themes/original/src/components/UpsellingProducts/index.tsx +3 -8
- package/themes/original/src/components/UserDetails/index.tsx +3 -1
- package/themes/original/src/components/UserFormDetails/index.tsx +84 -19
- package/themes/original/src/components/UserFormDetails/styles.tsx +1 -1
- package/themes/original/src/components/UserProfile/index.tsx +7 -25
- package/themes/original/src/components/UserProfileForm/index.tsx +30 -31
- package/themes/original/src/components/UserVerification/index.tsx +55 -50
- package/themes/original/src/components/WalletTransactionItem/index.tsx +2 -2
- package/themes/original/src/components/WalletTransactions/index.tsx +3 -3
- package/themes/original/src/components/Wallets/index.tsx +51 -61
- package/themes/original/src/components/Wallets/styles.tsx +2 -4
- package/themes/original/src/components/shared/OButton.tsx +3 -3
- package/themes/original/src/components/shared/OInput.tsx +4 -5
- package/themes/original/src/components/shared/OModal.tsx +3 -3
- package/themes/original/src/config/constants.tsx +0 -10
- package/themes/original/src/types/index.tsx +31 -15
- package/themes/original/src/utils/index.tsx +180 -13
- package/themes/uber-eats/src/components/BusinessesListing/index.tsx +1 -1
- package/src/navigators/BottomNavigator.tsx +0 -117
- package/src/navigators/CheckoutNavigator.tsx +0 -66
- package/src/navigators/HomeNavigator.tsx +0 -202
- package/src/navigators/NavigationRef.tsx +0 -7
- package/src/navigators/RootNavigator.tsx +0 -269
- package/src/pages/Account.tsx +0 -34
- package/src/pages/AddressForm.tsx +0 -62
- package/src/pages/AddressList.tsx +0 -24
- package/src/pages/BusinessProductsList.tsx +0 -81
- package/src/pages/BusinessesListing.tsx +0 -43
- package/src/pages/CartList.tsx +0 -49
- package/src/pages/Checkout.tsx +0 -101
- package/src/pages/ForgotPassword.tsx +0 -24
- package/src/pages/Help.tsx +0 -23
- package/src/pages/HelpAccountAndPayment.tsx +0 -23
- package/src/pages/HelpGuide.tsx +0 -23
- package/src/pages/HelpOrder.tsx +0 -23
- package/src/pages/Home.tsx +0 -36
- package/src/pages/IntroductoryTutorial.tsx +0 -170
- package/src/pages/Login.tsx +0 -47
- package/src/pages/MomentOption.tsx +0 -30
- package/src/pages/MultiCheckout.tsx +0 -31
- package/src/pages/MultiOrdersDetails.tsx +0 -27
- package/src/pages/MyOrders.tsx +0 -40
- package/src/pages/NetworkError.tsx +0 -24
- package/src/pages/NotFound.tsx +0 -22
- package/src/pages/OrderDetails.tsx +0 -25
- package/src/pages/ProductDetails.tsx +0 -55
- package/src/pages/Profile.tsx +0 -36
- package/src/pages/ReviewDriver.tsx +0 -30
- package/src/pages/ReviewOrder.tsx +0 -32
- package/src/pages/ReviewProducts.tsx +0 -30
- package/src/pages/Sessions.tsx +0 -22
- package/src/pages/Signup.tsx +0 -53
- package/src/pages/SpinnerLoader.tsx +0 -10
- package/src/pages/Splash.tsx +0 -21
|
@@ -4,6 +4,7 @@ import FontAwesome from 'react-native-vector-icons/FontAwesome';
|
|
|
4
4
|
import { CODES } from 'ordering-components/native'
|
|
5
5
|
import { ORDER_TYPES } from '../config/constants';
|
|
6
6
|
import { useTheme } from 'styled-components/native';
|
|
7
|
+
import ReactNativeHapticFeedback from "react-native-haptic-feedback";
|
|
7
8
|
|
|
8
9
|
const [languageState, t] = useLanguage();
|
|
9
10
|
const theme = useTheme()
|
|
@@ -271,6 +272,11 @@ export const transformCountryCode = (countryCode: number) => {
|
|
|
271
272
|
return code?.countryCode
|
|
272
273
|
}
|
|
273
274
|
|
|
275
|
+
export const findExitingCode = (countryCode: string) => {
|
|
276
|
+
const code = CODES.find((code: any) => code.countryCode === (countryCode || '').toUpperCase())
|
|
277
|
+
return code?.countryCode
|
|
278
|
+
}
|
|
279
|
+
|
|
274
280
|
/**
|
|
275
281
|
* Function to check if a number is decimal or not
|
|
276
282
|
* @param {*} value number to check if decimal or not
|
|
@@ -378,7 +384,7 @@ export const getOrderStatus = (s: string) => {
|
|
|
378
384
|
key: 0,
|
|
379
385
|
value: t('PENDING', 'Pending'),
|
|
380
386
|
slug: 'PENDING',
|
|
381
|
-
percentage: 0.
|
|
387
|
+
percentage: 0.1,
|
|
382
388
|
image: theme.images.order.status0,
|
|
383
389
|
},
|
|
384
390
|
{
|
|
@@ -406,7 +412,7 @@ export const getOrderStatus = (s: string) => {
|
|
|
406
412
|
key: 4,
|
|
407
413
|
value: t('PREPARATION_COMPLETED', 'Preparation Completed'),
|
|
408
414
|
slug: 'PREPARATION_COMPLETED',
|
|
409
|
-
percentage: 0.
|
|
415
|
+
percentage: 0.2,
|
|
410
416
|
image: theme.images.order.status4,
|
|
411
417
|
},
|
|
412
418
|
{
|
|
@@ -427,21 +433,21 @@ export const getOrderStatus = (s: string) => {
|
|
|
427
433
|
key: 7,
|
|
428
434
|
value: t('ACCEPTED_BY_BUSINESS', 'Accepted by business'),
|
|
429
435
|
slug: 'ACCEPTED_BY_BUSINESS',
|
|
430
|
-
percentage: 0.
|
|
436
|
+
percentage: 0.15,
|
|
431
437
|
image: theme.images.order.status7,
|
|
432
438
|
},
|
|
433
439
|
{
|
|
434
440
|
key: 8,
|
|
435
441
|
value: t('ACCEPTED_BY_DRIVER', 'Accepted by driver'),
|
|
436
442
|
slug: 'ACCEPTED_BY_DRIVER',
|
|
437
|
-
percentage: 0.
|
|
443
|
+
percentage: 0.4,
|
|
438
444
|
image: theme.images.order.status8,
|
|
439
445
|
},
|
|
440
446
|
{
|
|
441
447
|
key: 9,
|
|
442
448
|
value: t('PICK_UP_COMPLETED_BY_DRIVER', 'Pick up completed by driver'),
|
|
443
449
|
slug: 'PICK_UP_COMPLETED_BY_DRIVER',
|
|
444
|
-
percentage: 0.
|
|
450
|
+
percentage: 0.7,
|
|
445
451
|
image: theme.images.order.status9,
|
|
446
452
|
},
|
|
447
453
|
{
|
|
@@ -479,7 +485,7 @@ export const getOrderStatus = (s: string) => {
|
|
|
479
485
|
key: 14,
|
|
480
486
|
value: t('ORDER_NOT_READY', 'Order not ready'),
|
|
481
487
|
slug: 'ORDER_NOT_READY',
|
|
482
|
-
percentage: 0,
|
|
488
|
+
percentage: 0.15,
|
|
483
489
|
image: theme.images.order.status13,
|
|
484
490
|
},
|
|
485
491
|
{
|
|
@@ -489,7 +495,7 @@ export const getOrderStatus = (s: string) => {
|
|
|
489
495
|
'Order picked up completed by customer',
|
|
490
496
|
),
|
|
491
497
|
slug: 'ORDER_PICKEDUP_COMPLETED_BY_CUSTOMER',
|
|
492
|
-
percentage:
|
|
498
|
+
percentage: 1,
|
|
493
499
|
image: theme.images.order.status1,
|
|
494
500
|
},
|
|
495
501
|
{
|
|
@@ -516,7 +522,7 @@ export const getOrderStatus = (s: string) => {
|
|
|
516
522
|
'Driver almost arrived to business',
|
|
517
523
|
),
|
|
518
524
|
slug: 'DRIVER_ALMOST_ARRIVED_TO_BUSINESS',
|
|
519
|
-
percentage: 0.
|
|
525
|
+
percentage: 0.5,
|
|
520
526
|
image: theme.images.order.status3,
|
|
521
527
|
},
|
|
522
528
|
{
|
|
@@ -536,7 +542,7 @@ export const getOrderStatus = (s: string) => {
|
|
|
536
542
|
'Customer almost arrived to business',
|
|
537
543
|
),
|
|
538
544
|
slug: 'ORDER_CUSTOMER_ALMOST_ARRIVED_BUSINESS',
|
|
539
|
-
percentage:
|
|
545
|
+
percentage: 0.9,
|
|
540
546
|
image: theme.images.order.status7,
|
|
541
547
|
},
|
|
542
548
|
{
|
|
@@ -546,26 +552,187 @@ export const getOrderStatus = (s: string) => {
|
|
|
546
552
|
'Customer arrived to business',
|
|
547
553
|
),
|
|
548
554
|
slug: 'ORDER_CUSTOMER_ARRIVED_BUSINESS',
|
|
549
|
-
percentage:
|
|
555
|
+
percentage: 0.9,
|
|
550
556
|
image: theme.images.order.status7,
|
|
551
557
|
},
|
|
552
558
|
{
|
|
553
559
|
key: 22,
|
|
554
560
|
value: t('ORDER_LOOKING_FOR_DRIVER', 'Looking for driver'),
|
|
555
561
|
slug: 'ORDER_LOOKING_FOR_DRIVER',
|
|
556
|
-
percentage:
|
|
562
|
+
percentage: 0.3,
|
|
557
563
|
image: theme.images.order.status8
|
|
558
564
|
},
|
|
559
565
|
{
|
|
560
566
|
key: 23,
|
|
561
567
|
value: t('ORDER_DRIVER_ON_WAY', 'Driver on way'),
|
|
562
568
|
slug: 'ORDER_DRIVER_ON_WAY',
|
|
563
|
-
percentage:
|
|
569
|
+
percentage: 0.8,
|
|
564
570
|
image: theme.images.order.status8
|
|
565
571
|
}
|
|
566
572
|
];
|
|
567
|
-
|
|
573
|
+
|
|
574
|
+
const objectStatus = orderStatus.find((o) => o.key === status);
|
|
575
|
+
|
|
576
|
+
return objectStatus && objectStatus;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
export const getOrderStatuPickUp = (s: any) => {
|
|
580
|
+
const status = parseInt(s);
|
|
581
|
+
const orderStatus = [
|
|
582
|
+
{
|
|
583
|
+
key: 0,
|
|
584
|
+
value: t('PENDING', 'Pending'),
|
|
585
|
+
slug: 'PENDING',
|
|
586
|
+
percentage: 0.1,
|
|
587
|
+
image: theme.images.order.status0,
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
key: 1,
|
|
591
|
+
value: t('COMPLETED', 'Completed'),
|
|
592
|
+
slug: 'COMPLETED',
|
|
593
|
+
percentage: 1,
|
|
594
|
+
image: theme.images.order.status1,
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
key: 2,
|
|
598
|
+
value: t('REJECTED', 'Rejected'),
|
|
599
|
+
slug: 'REJECTED',
|
|
600
|
+
percentage: 0,
|
|
601
|
+
image: theme.images.order.status2,
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
key: 4,
|
|
605
|
+
value: t('PREPARATION_COMPLETED', 'Preparation Completed'),
|
|
606
|
+
slug: 'PREPARATION_COMPLETED',
|
|
607
|
+
percentage: 0.5,
|
|
608
|
+
image: theme.images.order.status4,
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
key: 5,
|
|
612
|
+
value: t('REJECTED_BY_BUSINESS', 'Rejected by business'),
|
|
613
|
+
slug: 'REJECTED_BY_BUSINESS',
|
|
614
|
+
percentage: 0,
|
|
615
|
+
image: theme.images.order.status5,
|
|
616
|
+
},
|
|
617
|
+
{
|
|
618
|
+
key: 7,
|
|
619
|
+
value: t('ACCEPTED_BY_BUSINESS', 'Accepted by business'),
|
|
620
|
+
slug: 'ACCEPTED_BY_BUSINESS',
|
|
621
|
+
percentage: 0.3,
|
|
622
|
+
image: theme.images.order.status7,
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
key: 13,
|
|
626
|
+
value: t('PREORDER', 'PreOrder'),
|
|
627
|
+
slug: 'PREORDER',
|
|
628
|
+
percentage: 0,
|
|
629
|
+
image: theme.images.order.status13,
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
key: 14,
|
|
633
|
+
value: t('ORDER_NOT_READY', 'Order not ready'),
|
|
634
|
+
slug: 'ORDER_NOT_READY',
|
|
635
|
+
percentage: 0.3,
|
|
636
|
+
image: theme.images.order.status13,
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
key: 15,
|
|
640
|
+
value: t(
|
|
641
|
+
'ORDER_PICKEDUP_COMPLETED_BY_CUSTOMER',
|
|
642
|
+
'Order picked up completed by customer',
|
|
643
|
+
),
|
|
644
|
+
slug: 'ORDER_PICKEDUP_COMPLETED_BY_CUSTOMER',
|
|
645
|
+
percentage: 1,
|
|
646
|
+
image: theme.images.order.status1,
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
key: 16,
|
|
650
|
+
value: t('CANCELLED_BY_CUSTOMER', 'Cancelled by customer'),
|
|
651
|
+
slug: 'CANCELLED_BY_CUSTOMER',
|
|
652
|
+
percentage: 0,
|
|
653
|
+
image: theme.images.order.status2,
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
key: 17,
|
|
657
|
+
value: t(
|
|
658
|
+
'ORDER_NOT_PICKEDUP_BY_CUSTOMER',
|
|
659
|
+
'Order not picked up by customer',
|
|
660
|
+
),
|
|
661
|
+
slug: 'ORDER_NOT_PICKEDUP_BY_CUSTOMER',
|
|
662
|
+
percentage: 0,
|
|
663
|
+
image: theme.images.order.status2,
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
key: 20,
|
|
667
|
+
value: t(
|
|
668
|
+
'ORDER_CUSTOMER_ALMOST_ARRIVED_BUSINESS',
|
|
669
|
+
'Customer almost arrived to business',
|
|
670
|
+
),
|
|
671
|
+
slug: 'ORDER_CUSTOMER_ALMOST_ARRIVED_BUSINESS',
|
|
672
|
+
percentage: 0.7,
|
|
673
|
+
image: theme.images.order.status7,
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
key: 21,
|
|
677
|
+
value: t(
|
|
678
|
+
'ORDER_CUSTOMER_ARRIVED_BUSINESS',
|
|
679
|
+
'Customer arrived to business',
|
|
680
|
+
),
|
|
681
|
+
slug: 'ORDER_CUSTOMER_ARRIVED_BUSINESS',
|
|
682
|
+
percentage: 0.9,
|
|
683
|
+
image: theme.images.order.status7,
|
|
684
|
+
}
|
|
685
|
+
];
|
|
686
|
+
|
|
568
687
|
const objectStatus = orderStatus.find((o) => o.key === status);
|
|
569
688
|
|
|
570
689
|
return objectStatus && objectStatus;
|
|
571
690
|
}
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Function to get brightness of color.
|
|
694
|
+
*/
|
|
695
|
+
export const lightenDarkenColor = (color: any) => {
|
|
696
|
+
|
|
697
|
+
let r, g, b, hsp
|
|
698
|
+
if (!color) return
|
|
699
|
+
if (color.match(/^rgb/)) {
|
|
700
|
+
// If HEX --> store the red, green, blue values in separate variables
|
|
701
|
+
color = color.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/)
|
|
702
|
+
|
|
703
|
+
r = color[1]
|
|
704
|
+
g = color[2]
|
|
705
|
+
b = color[3]
|
|
706
|
+
} else {
|
|
707
|
+
// If RGB --> Convert it to HEX
|
|
708
|
+
color = +("0x" + color.slice(1).replace(color.length < 5 && /./g, '$&$&'))
|
|
709
|
+
|
|
710
|
+
r = color >> 16
|
|
711
|
+
g = color >> 8 & 255
|
|
712
|
+
b = color & 255
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
// HSP (Highly Sensitive Poo) equation
|
|
716
|
+
hsp = Math.sqrt(
|
|
717
|
+
0.299 * (r * r) +
|
|
718
|
+
0.587 * (g * g) +
|
|
719
|
+
0.114 * (b * b)
|
|
720
|
+
)
|
|
721
|
+
|
|
722
|
+
// Using the HSP value, determine whether the color is light or dark
|
|
723
|
+
if (hsp > 197) {
|
|
724
|
+
return true //is light color
|
|
725
|
+
} else {
|
|
726
|
+
return false
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
export const vibrateApp = (impact ?: string) => {
|
|
731
|
+
const options = {
|
|
732
|
+
enableVibrateFallback: true,
|
|
733
|
+
ignoreAndroidSystemSettings: false
|
|
734
|
+
};
|
|
735
|
+
|
|
736
|
+
ReactNativeHapticFeedback.trigger(impact || "impactLight", options);
|
|
737
|
+
|
|
738
|
+
}
|
|
@@ -144,7 +144,7 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
|
|
|
144
144
|
{isFarAway && (
|
|
145
145
|
<FarAwayMessage style={styles.farAwayMsg}>
|
|
146
146
|
<Ionicons name='md-warning-outline' style={styles.iconStyle} />
|
|
147
|
-
<OText size={12} numberOfLines={1} ellipsizeMode={'tail'} color={theme.colors.textNormal}>{t('YOU_ARE_FAR_FROM_ADDRESS', '
|
|
147
|
+
<OText size={12} numberOfLines={1} ellipsizeMode={'tail'} color={theme.colors.textNormal}>{t('YOU_ARE_FAR_FROM_ADDRESS', 'Your are far from this address')}</OText>
|
|
148
148
|
</FarAwayMessage>
|
|
149
149
|
)}
|
|
150
150
|
<View style={styles.wrapperOrderOptions}>
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { View, Platform, PlatformIOSStatic } from 'react-native'
|
|
3
|
-
import { useOrder } from 'ordering-components/native'
|
|
4
|
-
import { createMaterialBottomTabNavigator } from '@react-navigation/material-bottom-tabs'
|
|
5
|
-
import MaterialCommunityIcon from 'react-native-vector-icons/MaterialCommunityIcons'
|
|
6
|
-
import MaterialIcon from 'react-native-vector-icons/MaterialIcons'
|
|
7
|
-
import styled from 'styled-components/native'
|
|
8
|
-
|
|
9
|
-
import { OText } from '../components/shared'
|
|
10
|
-
import BusinessList from '../pages/BusinessesListing'
|
|
11
|
-
import MyOrders from '../pages/MyOrders'
|
|
12
|
-
import CartList from '../pages/CartList'
|
|
13
|
-
import Profile from '../pages/Profile'
|
|
14
|
-
import { useTheme } from 'styled-components/native'
|
|
15
|
-
|
|
16
|
-
const CartsLenght = styled.View`
|
|
17
|
-
width: 25px;
|
|
18
|
-
height: 25px;
|
|
19
|
-
background-color: ${(props: any) => props.theme.colors.primary};
|
|
20
|
-
display: flex;
|
|
21
|
-
justify-content: center;
|
|
22
|
-
align-items: center;
|
|
23
|
-
position: absolute;
|
|
24
|
-
right: 0;
|
|
25
|
-
`
|
|
26
|
-
|
|
27
|
-
const Tab = createMaterialBottomTabNavigator();
|
|
28
|
-
|
|
29
|
-
const BottomNavigator = () => {
|
|
30
|
-
const theme = useTheme()
|
|
31
|
-
const [{ carts }] = useOrder()
|
|
32
|
-
const cartsList = (carts && Object.values(carts).filter((cart: any) => cart.products.length > 0)) || []
|
|
33
|
-
const isIos = Platform.OS === 'ios'
|
|
34
|
-
const platformIOS = Platform as PlatformIOSStatic
|
|
35
|
-
const androidStyles = isIos
|
|
36
|
-
? platformIOS.isPad
|
|
37
|
-
? { paddingBottom: 30 }
|
|
38
|
-
: {}
|
|
39
|
-
: {height: 40, position: 'relative', bottom: 15}
|
|
40
|
-
return (
|
|
41
|
-
<Tab.Navigator
|
|
42
|
-
initialRouteName="BusinessList"
|
|
43
|
-
activeColor={theme.colors.primary}
|
|
44
|
-
barStyle={{ backgroundColor: theme.colors.white, ...androidStyles }}
|
|
45
|
-
labeled={false}
|
|
46
|
-
inactiveColor={theme.colors.disabled}
|
|
47
|
-
>
|
|
48
|
-
<Tab.Screen
|
|
49
|
-
name="BusinessList"
|
|
50
|
-
component={BusinessList}
|
|
51
|
-
options={{
|
|
52
|
-
tabBarIcon:
|
|
53
|
-
({ color }: any) => (
|
|
54
|
-
<View style={{ width: 50, height: 50, justifyContent: !isIos ? 'flex-start' : 'space-evenly', position: 'relative', bottom: !isIos ? 10 : 0 }}>
|
|
55
|
-
<MaterialCommunityIcon name='home' size={46} color={color} />
|
|
56
|
-
</View>
|
|
57
|
-
)
|
|
58
|
-
}}
|
|
59
|
-
/>
|
|
60
|
-
<Tab.Screen
|
|
61
|
-
name="MyOrders"
|
|
62
|
-
component={MyOrders}
|
|
63
|
-
options={
|
|
64
|
-
{
|
|
65
|
-
tabBarIcon:
|
|
66
|
-
({ color }: any) => (
|
|
67
|
-
<View style={{ width: 50, height: 50, justifyContent: !isIos ? 'flex-start' : 'space-evenly', position: 'relative', bottom: !isIos ? 10 : 0 }}>
|
|
68
|
-
<MaterialIcon name='format-list-bulleted' size={46} color={color} />
|
|
69
|
-
</View>
|
|
70
|
-
),
|
|
71
|
-
}}
|
|
72
|
-
/>
|
|
73
|
-
<Tab.Screen
|
|
74
|
-
name="Cart"
|
|
75
|
-
component={CartList}
|
|
76
|
-
options={{
|
|
77
|
-
tabBarIcon:
|
|
78
|
-
({ color }: any) => (
|
|
79
|
-
<View style={{
|
|
80
|
-
width: 50,
|
|
81
|
-
height: 50,
|
|
82
|
-
justifyContent: !isIos ? 'flex-start' : 'space-evenly',
|
|
83
|
-
position: 'relative',
|
|
84
|
-
bottom: !isIos ? 10 : 0
|
|
85
|
-
}}
|
|
86
|
-
>
|
|
87
|
-
<MaterialIcon name='shopping-basket' size={46} color={color} />
|
|
88
|
-
{cartsList.length > 0 && (
|
|
89
|
-
<CartsLenght style={{ borderRadius: 100 / 2 }}>
|
|
90
|
-
<OText
|
|
91
|
-
color={theme.colors.white}
|
|
92
|
-
>
|
|
93
|
-
{cartsList.length}
|
|
94
|
-
</OText>
|
|
95
|
-
</CartsLenght>
|
|
96
|
-
)}
|
|
97
|
-
</View>
|
|
98
|
-
)
|
|
99
|
-
}}
|
|
100
|
-
/>
|
|
101
|
-
<Tab.Screen
|
|
102
|
-
name="Profile"
|
|
103
|
-
component={Profile}
|
|
104
|
-
options={{
|
|
105
|
-
tabBarIcon:
|
|
106
|
-
({ color }: any) => (
|
|
107
|
-
<View style={{ width: 50, height: 50, justifyContent: !isIos ? 'flex-start' : 'space-evenly', position: 'relative', bottom: !isIos ? 10 : 0 }}>
|
|
108
|
-
<MaterialIcon name='person' size={46} color={color} />
|
|
109
|
-
</View>
|
|
110
|
-
)
|
|
111
|
-
}}
|
|
112
|
-
/>
|
|
113
|
-
</Tab.Navigator>
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export default BottomNavigator
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { createStackNavigator } from "@react-navigation/stack";
|
|
3
|
-
|
|
4
|
-
import AddressList from '../pages/AddressList'
|
|
5
|
-
import AddressForm from '../pages/AddressForm'
|
|
6
|
-
import CartList from '../pages/CartList'
|
|
7
|
-
import CheckoutPage from '../pages/Checkout';
|
|
8
|
-
import BusinessProductsList from '../pages/BusinessProductsList';
|
|
9
|
-
import MultiCheckout from '../pages/MultiCheckout';
|
|
10
|
-
|
|
11
|
-
const Stack = createStackNavigator();
|
|
12
|
-
|
|
13
|
-
const CheckoutNavigator = (props: any) => {
|
|
14
|
-
const {
|
|
15
|
-
navigation,
|
|
16
|
-
route
|
|
17
|
-
} = props;
|
|
18
|
-
|
|
19
|
-
const cartUuid = route?.params?.cartUuid
|
|
20
|
-
|
|
21
|
-
const checkoutProps = {
|
|
22
|
-
navigation,
|
|
23
|
-
route,
|
|
24
|
-
cartUuid: route?.params?.cartUuid
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<Stack.Navigator>
|
|
29
|
-
{!cartUuid && (
|
|
30
|
-
<Stack.Screen
|
|
31
|
-
name="Cart"
|
|
32
|
-
component={CartList}
|
|
33
|
-
options={{ headerShown: false }}
|
|
34
|
-
/>
|
|
35
|
-
)}
|
|
36
|
-
<Stack.Screen
|
|
37
|
-
name="CheckoutPage"
|
|
38
|
-
children={() => <CheckoutPage {...checkoutProps} />}
|
|
39
|
-
options={{ headerShown: false }}
|
|
40
|
-
/>
|
|
41
|
-
<Stack.Screen
|
|
42
|
-
name="Business"
|
|
43
|
-
component={BusinessProductsList}
|
|
44
|
-
options={{ headerShown: false }}
|
|
45
|
-
/>
|
|
46
|
-
<Stack.Screen
|
|
47
|
-
name="AddressList"
|
|
48
|
-
component={AddressList}
|
|
49
|
-
options={{ headerShown: false }}
|
|
50
|
-
initialParams={{isFromCheckout: true}}
|
|
51
|
-
/>
|
|
52
|
-
<Stack.Screen
|
|
53
|
-
name="AddressForm"
|
|
54
|
-
component={AddressForm}
|
|
55
|
-
options={{ headerShown: false }}
|
|
56
|
-
/>
|
|
57
|
-
<Stack.Screen
|
|
58
|
-
name="MultiCheckout"
|
|
59
|
-
children={() => <MultiCheckout {...checkoutProps} />}
|
|
60
|
-
options={{ headerShown: false }}
|
|
61
|
-
/>
|
|
62
|
-
</Stack.Navigator>
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export default CheckoutNavigator;
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AppState } from 'react-native'
|
|
3
|
-
import { createStackNavigator } from "@react-navigation/stack";
|
|
4
|
-
import { useSession, useOrder, useWebsocket } from 'ordering-components/native';
|
|
5
|
-
import BottomNavigator from '../navigators/BottomNavigator';
|
|
6
|
-
import RootNavigator from '../navigators/RootNavigator';
|
|
7
|
-
import CheckoutNavigator from '../navigators/CheckoutNavigator';
|
|
8
|
-
import BackgroundTimer from 'react-native-background-timer';
|
|
9
|
-
|
|
10
|
-
import AddressList from '../pages/AddressList';
|
|
11
|
-
import AddressForm from '../pages/AddressForm';
|
|
12
|
-
import OrderDetails from '../pages/OrderDetails';
|
|
13
|
-
import BusinessProductsList from '../pages/BusinessProductsList';
|
|
14
|
-
import ReviewOrder from '../pages/ReviewOrder'
|
|
15
|
-
import ReviewProducts from '../pages/ReviewProducts';
|
|
16
|
-
import ReviewDriver from '../pages/ReviewDriver'
|
|
17
|
-
import MomentOption from '../pages/MomentOption'
|
|
18
|
-
import Account from '../pages/Account'
|
|
19
|
-
import Help from '../pages/Help'
|
|
20
|
-
import HelpOrder from '../pages/HelpOrder'
|
|
21
|
-
import HelpGuide from '../pages/HelpGuide'
|
|
22
|
-
import HelpAccountAndPayment from '../pages/HelpAccountAndPayment'
|
|
23
|
-
import Sessions from '../pages/Sessions';
|
|
24
|
-
import Splash from '../pages/Splash';
|
|
25
|
-
import ProductDetails from '../pages/ProductDetails';
|
|
26
|
-
import MultiOrdersDetails from '../pages/MultiOrdersDetails';
|
|
27
|
-
const Stack = createStackNavigator();
|
|
28
|
-
|
|
29
|
-
const HomeNavigator = (e : any) => {
|
|
30
|
-
const [orderState] = useOrder();
|
|
31
|
-
const [{ auth, user }] = useSession();
|
|
32
|
-
const socket = useWebsocket();
|
|
33
|
-
|
|
34
|
-
const appState = React.useRef(AppState.currentState);
|
|
35
|
-
let interval: any
|
|
36
|
-
|
|
37
|
-
const _handleAppStateChange = (nextAppState: any) => {
|
|
38
|
-
if (appState.current.match(/inactive|background/) && nextAppState === 'active') {
|
|
39
|
-
BackgroundTimer.clearInterval(interval)
|
|
40
|
-
}else{
|
|
41
|
-
interval = BackgroundTimer.setInterval(()=>{
|
|
42
|
-
const ordersRoom = user?.level === 0 ? 'orders' : `orders_${user?.id}`
|
|
43
|
-
socket.join(ordersRoom)
|
|
44
|
-
}, 5000)
|
|
45
|
-
appState.current = nextAppState;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
React.useEffect (() => {
|
|
50
|
-
AppState.addEventListener('change', _handleAppStateChange);
|
|
51
|
-
return () => {
|
|
52
|
-
AppState.removeEventListener('change', _handleAppStateChange);
|
|
53
|
-
};
|
|
54
|
-
},[])
|
|
55
|
-
|
|
56
|
-
return (
|
|
57
|
-
<Stack.Navigator>
|
|
58
|
-
{!orderState.loading || (orderState?.options?.user_id && orderState.loading) || orderState?.options?.address?.location ? (
|
|
59
|
-
<>
|
|
60
|
-
{auth ? (
|
|
61
|
-
<>
|
|
62
|
-
{Object.keys(orderState?.carts).length === 0 && !orderState?.options?.address?.location && !orderState.loading ? (
|
|
63
|
-
<>
|
|
64
|
-
<Stack.Screen
|
|
65
|
-
name="AddressListInitial"
|
|
66
|
-
component={AddressList}
|
|
67
|
-
options={{ headerShown: false }}
|
|
68
|
-
initialParams={{ afterSignup: true }}
|
|
69
|
-
/>
|
|
70
|
-
<Stack.Screen
|
|
71
|
-
name="AddressFormInitial"
|
|
72
|
-
component={AddressForm}
|
|
73
|
-
options={{ headerShown: false }}
|
|
74
|
-
initialParams={{ afterSignup: true }}
|
|
75
|
-
/>
|
|
76
|
-
</>
|
|
77
|
-
) : (
|
|
78
|
-
<>
|
|
79
|
-
{!!Object.keys(e?.route?.params?.productLogin || {})?.length && (
|
|
80
|
-
<Stack.Screen
|
|
81
|
-
name="BusinessAfterLogin"
|
|
82
|
-
component={BusinessProductsList}
|
|
83
|
-
options={{headerShown: false}}
|
|
84
|
-
initialParams={{productLogin: e?.route?.params?.productLogin}}
|
|
85
|
-
/>
|
|
86
|
-
)}
|
|
87
|
-
<Stack.Screen
|
|
88
|
-
name='BottomTab'
|
|
89
|
-
component={BottomNavigator}
|
|
90
|
-
options={{ headerShown: false }}
|
|
91
|
-
/>
|
|
92
|
-
<Stack.Screen
|
|
93
|
-
name="CheckoutNavigator"
|
|
94
|
-
component={CheckoutNavigator}
|
|
95
|
-
options={{ headerShown: false }}
|
|
96
|
-
/>
|
|
97
|
-
<Stack.Screen
|
|
98
|
-
name="OrderDetails"
|
|
99
|
-
component={OrderDetails}
|
|
100
|
-
options={{ headerShown: false }}
|
|
101
|
-
/>
|
|
102
|
-
<Stack.Screen
|
|
103
|
-
name="Business"
|
|
104
|
-
component={BusinessProductsList}
|
|
105
|
-
options={{ headerShown: false }}
|
|
106
|
-
/>
|
|
107
|
-
<Stack.Screen
|
|
108
|
-
name="ProductDetails"
|
|
109
|
-
component={ProductDetails}
|
|
110
|
-
options={{ headerShown: false }}
|
|
111
|
-
/>
|
|
112
|
-
<Stack.Screen
|
|
113
|
-
name="ReviewOrder"
|
|
114
|
-
component={ReviewOrder}
|
|
115
|
-
options={{ headerShown: false }}
|
|
116
|
-
/>
|
|
117
|
-
<Stack.Screen
|
|
118
|
-
name="ReviewProducts"
|
|
119
|
-
component={ReviewProducts}
|
|
120
|
-
options={{ headerShown: false }}
|
|
121
|
-
/>
|
|
122
|
-
<Stack.Screen
|
|
123
|
-
name="ReviewDriver"
|
|
124
|
-
component={ReviewDriver}
|
|
125
|
-
options={{ headerShown: false }}
|
|
126
|
-
/>
|
|
127
|
-
<Stack.Screen
|
|
128
|
-
name='MomentOption'
|
|
129
|
-
component={MomentOption}
|
|
130
|
-
options={{ headerShown: false }}
|
|
131
|
-
/>
|
|
132
|
-
<Stack.Screen
|
|
133
|
-
name="AddressList"
|
|
134
|
-
component={AddressList}
|
|
135
|
-
options={{ headerShown: false }}
|
|
136
|
-
initialParams={{ afterSignup: false }}
|
|
137
|
-
/>
|
|
138
|
-
<Stack.Screen
|
|
139
|
-
name="AddressForm"
|
|
140
|
-
component={AddressForm}
|
|
141
|
-
options={{ headerShown: false }}
|
|
142
|
-
initialParams={{ afterSignup: false }}
|
|
143
|
-
/>
|
|
144
|
-
<Stack.Screen
|
|
145
|
-
name="Account"
|
|
146
|
-
component={Account}
|
|
147
|
-
options={{ headerShown: false }}
|
|
148
|
-
/>
|
|
149
|
-
<Stack.Screen
|
|
150
|
-
name="Help"
|
|
151
|
-
component={Help}
|
|
152
|
-
options={{ headerShown: false }}
|
|
153
|
-
/>
|
|
154
|
-
<Stack.Screen
|
|
155
|
-
name="HelpOrder"
|
|
156
|
-
component={HelpOrder}
|
|
157
|
-
options={{ headerShown: false }}
|
|
158
|
-
/>
|
|
159
|
-
<Stack.Screen
|
|
160
|
-
name="HelpGuide"
|
|
161
|
-
component={HelpGuide}
|
|
162
|
-
options={{ headerShown: false }}
|
|
163
|
-
/>
|
|
164
|
-
<Stack.Screen
|
|
165
|
-
name="HelpAccountAndPayment"
|
|
166
|
-
component={HelpAccountAndPayment}
|
|
167
|
-
options={{ headerShown: false }}
|
|
168
|
-
/>
|
|
169
|
-
<Stack.Screen
|
|
170
|
-
name="Sessions"
|
|
171
|
-
component={Sessions}
|
|
172
|
-
options={{ headerShown: false }}
|
|
173
|
-
/>
|
|
174
|
-
<Stack.Screen
|
|
175
|
-
name="MultiOrdersDetails"
|
|
176
|
-
component={MultiOrdersDetails}
|
|
177
|
-
options={{ headerShown: false }}
|
|
178
|
-
/>
|
|
179
|
-
</>
|
|
180
|
-
)}
|
|
181
|
-
</>
|
|
182
|
-
)
|
|
183
|
-
: (
|
|
184
|
-
<Stack.Screen
|
|
185
|
-
name='root'
|
|
186
|
-
component={RootNavigator}
|
|
187
|
-
options={{ headerShown: false }}
|
|
188
|
-
/>
|
|
189
|
-
)}
|
|
190
|
-
</>
|
|
191
|
-
) : (
|
|
192
|
-
<Stack.Screen
|
|
193
|
-
name="Splash"
|
|
194
|
-
component={Splash}
|
|
195
|
-
options={{ headerShown: false }}
|
|
196
|
-
/>
|
|
197
|
-
)}
|
|
198
|
-
</Stack.Navigator>
|
|
199
|
-
);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
export default HomeNavigator;
|