ordering-ui-react-native 0.17.31 → 0.17.33
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
|
@@ -9,7 +9,7 @@ const TitleWrapper = styled.View`
|
|
|
9
9
|
padding-horizontal: 10px;
|
|
10
10
|
`
|
|
11
11
|
const TitleTopWrapper = styled.View`
|
|
12
|
-
flex
|
|
12
|
+
flex: 1;
|
|
13
13
|
flex-direction: row;
|
|
14
14
|
align-items: center;
|
|
15
15
|
`
|
|
@@ -40,7 +40,8 @@ interface Props {
|
|
|
40
40
|
style?: ViewStyle,
|
|
41
41
|
titleWrapStyle?: ViewStyle,
|
|
42
42
|
paddingTop?: number,
|
|
43
|
-
isVertical?: boolean
|
|
43
|
+
isVertical?: boolean,
|
|
44
|
+
noMargin?: any
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
const NavBar = (props: Props) => {
|
|
@@ -96,10 +97,9 @@ const NavBar = (props: Props) => {
|
|
|
96
97
|
style={
|
|
97
98
|
{
|
|
98
99
|
textAlign: props.titleAlign ? props.titleAlign : 'center',
|
|
99
|
-
marginRight: props.showCall ? 0 : 40,
|
|
100
|
+
marginRight: (props.showCall || !!props.noMargin) ? 0 : 40,
|
|
100
101
|
color: props.titleColor || theme.colors.textNormal,
|
|
101
102
|
paddingHorizontal: props.titleAlign == 'left' ? 12 : 0,
|
|
102
|
-
width: '100%',
|
|
103
103
|
...props.titleStyle,
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -528,13 +528,13 @@ export const ProductOptionsUI = (props: any) => {
|
|
|
528
528
|
style={styles.slide1}
|
|
529
529
|
key={i}
|
|
530
530
|
>
|
|
531
|
-
{String(img).includes('image') ? (
|
|
531
|
+
{String(img).includes('image') || typeof img === 'number' ? (
|
|
532
532
|
<FastImage
|
|
533
533
|
style={{ height: '100%', opacity: isSoldOut ? 0.5 : 1, aspectRatio: 3 / 2 }}
|
|
534
|
-
source={{
|
|
534
|
+
source={typeof img !== 'number' ? {
|
|
535
535
|
uri: optimizeImage(img, 'h_1024,c_limit'),
|
|
536
536
|
priority: FastImage.priority.normal,
|
|
537
|
-
}}
|
|
537
|
+
} : img}
|
|
538
538
|
/>
|
|
539
539
|
) : (
|
|
540
540
|
<>
|
|
@@ -173,7 +173,8 @@ const SingleOrderCardUI = (props: SingleOrderCardParams) => {
|
|
|
173
173
|
{(!!order.business?.logo || theme?.images?.dummies?.businessLogo) && (
|
|
174
174
|
<Logo style={styles.logoWrapper}>
|
|
175
175
|
<OIcon
|
|
176
|
-
url={optimizeImage(order.business?.logo
|
|
176
|
+
url={optimizeImage(order.business?.logo, 'h_300,c_limit')}
|
|
177
|
+
src={optimizeImage(!order.business?.logo && theme?.images?.dummies?.businessLogo, 'h_300,c_limit')}
|
|
177
178
|
style={styles.logo}
|
|
178
179
|
/>
|
|
179
180
|
</Logo>
|