ordering-ui-react-native 0.22.67-release → 0.22.68-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ordering-ui-react-native",
3
- "version": "0.22.67-release",
3
+ "version": "0.22.68-release",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -7,7 +7,7 @@
7
7
  */
8
8
 
9
9
  import * as React from 'react';
10
- import { LogBox, Platform } from 'react-native';
10
+ import { LogBox } from 'react-native';
11
11
  import { OrderingProvider } from 'ordering-components/native';
12
12
  import RNBootSplash from "react-native-bootsplash";
13
13
 
@@ -79,7 +79,6 @@ export const AppleLogin = (props: any) => {
79
79
  identityToken,
80
80
  authorizationCode
81
81
  } = appleAuthRequestResponse;
82
-
83
82
  user = newUser;
84
83
 
85
84
  fetchAndUpdateCredentialState(updateCredentialStateForUser).catch(error =>
@@ -60,7 +60,7 @@ export const WrapMomentOption = styled.TouchableOpacity`
60
60
 
61
61
  export const HeaderWrapper = styled.ImageBackground`
62
62
  width: 100%;
63
- height: 270px;
63
+ height: ${({ bgHeaderHeight }: any) => bgHeaderHeight || '270px'};
64
64
  padding: 20px;
65
65
  background-color: transparent;
66
66
  `;
@@ -1,3 +1,4 @@
1
+
1
2
  import React, { useState, useEffect } from 'react'
2
3
  import { useOrder, useSession, useLanguage, useConfig } from 'ordering-components/native';
3
4
 
@@ -14,7 +14,8 @@ import {
14
14
 
15
15
  export const Favorite = (props: any) => {
16
16
  const {
17
- navigation
17
+ navigation,
18
+ franchiseId
18
19
  } = props
19
20
  const [, t] = useLanguage()
20
21
  const theme = useTheme()
@@ -71,6 +72,7 @@ export const Favorite = (props: any) => {
71
72
  originalURL='business'
72
73
  location={`${orderState.options?.address?.location?.lat},${orderState.options?.address?.location?.lng}`}
73
74
  propsToFetch={['id', 'name', 'header', 'logo', 'location', 'address', 'ribbon', 'timezone', 'schedule', 'open', 'delivery_price', 'distance', 'delivery_time', 'pickup_time', 'reviews', 'featured', 'offers', 'food', 'laundry', 'alcohol', 'groceries', 'slug']}
75
+ franchiseId={franchiseId}
74
76
  />
75
77
  )}
76
78
  {tabSelected === 'products' && (
@@ -79,6 +81,7 @@ export const Favorite = (props: any) => {
79
81
  originalURL='products'
80
82
  onNavigationRedirect={onRedirect}
81
83
  isProduct
84
+ franchiseId={franchiseId}
82
85
  />
83
86
  )}
84
87
  {tabSelected === 'orders' && (
@@ -87,6 +90,7 @@ export const Favorite = (props: any) => {
87
90
  favoriteURL='favorite_orders'
88
91
  originalURL='orders'
89
92
  isOrder
93
+ franchiseId={franchiseId}
90
94
  />
91
95
  )}
92
96
  </Container>
@@ -47,7 +47,7 @@ export const Home = (props: any) => {
47
47
  return (
48
48
  <View style={styles.container}>
49
49
  <View>
50
- <View style={{paddingTop: (height <= 756 && Platform.OS !== 'ios') ? (height * 0.05) : 0 }}>
50
+ <View style={{ paddingTop: (height <= 756 && Platform.OS !== 'ios') ? (height * 0.05) : 0 }}>
51
51
  <LanguageSelector />
52
52
  </View>
53
53
  <OIcon