ordering-ui-react-native 0.16.17-release → 0.16.18-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
|
@@ -353,7 +353,7 @@ const BusinessProductsListingUI = (props: BusinessProductsListingParams) => {
|
|
|
353
353
|
</FiltProductsContainer>
|
|
354
354
|
)}
|
|
355
355
|
{isOpenFiltProducts && (
|
|
356
|
-
<BackgroundGray />
|
|
356
|
+
<BackgroundGray isIos={Platform.OS === 'ios'} />
|
|
357
357
|
)}
|
|
358
358
|
<IOScrollView
|
|
359
359
|
stickyHeaderIndices={[business?.professionals?.length > 0 ? 3 : 2]}
|
|
@@ -38,16 +38,16 @@ export const FiltProductsContainer = styled.ScrollView`
|
|
|
38
38
|
position: absolute;
|
|
39
39
|
width: 100%;
|
|
40
40
|
z-index: 2000;
|
|
41
|
-
top:
|
|
41
|
+
top: 80px;
|
|
42
42
|
margin-top: 20px;
|
|
43
43
|
`
|
|
44
44
|
|
|
45
45
|
export const BackgroundGray = styled.View`
|
|
46
46
|
flex: 1;
|
|
47
|
-
height: 100
|
|
47
|
+
height: ${(props: any) => props.isIos ? '80%' : '100%'};
|
|
48
48
|
background-color: rgba(0,0,0,0.5);
|
|
49
|
-
position: absolute;
|
|
50
|
-
margin-top: 100px;
|
|
49
|
+
position: absolute;
|
|
50
|
+
margin-top: 100px;
|
|
51
51
|
z-index: 100;
|
|
52
52
|
width: 100%;
|
|
53
53
|
`
|
|
@@ -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
|
-
style={{ height: '100%', opacity: isSoldOut ? 0.5 : 1 }}
|
|
534
|
-
source={{
|
|
533
|
+
style={{ height: '100%', opacity: isSoldOut ? 0.5 : 1, aspectRatio: 3 / 2 }}
|
|
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
|
<>
|