ordering-ui-react-native 0.17.37 → 0.17.38
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
|
@@ -5,6 +5,7 @@ import { useTheme } from 'styled-components/native';
|
|
|
5
5
|
import MaterialCommunityIcon from 'react-native-vector-icons/MaterialCommunityIcons'
|
|
6
6
|
import RNPickerSelect from 'react-native-picker-select'
|
|
7
7
|
import { ServiceForm } from '../ServiceForm';
|
|
8
|
+
import FastImage from 'react-native-fast-image'
|
|
8
9
|
|
|
9
10
|
import {
|
|
10
11
|
Accordion,
|
|
@@ -157,12 +158,40 @@ export const ProductItemAccordion = (props: ProductItemAccordionParams) => {
|
|
|
157
158
|
{(product?.images || theme?.images?.dummies?.product) && (
|
|
158
159
|
<ProductImage>
|
|
159
160
|
{isFromCheckout ? (
|
|
160
|
-
|
|
161
|
+
product?.images ? (
|
|
162
|
+
<FastImage
|
|
163
|
+
style={{ ...styles.productImage, ...{ width: 82, height: 82 } }}
|
|
164
|
+
source={{
|
|
165
|
+
uri: optimizeImage(product?.images, 'h_100,c_limit'),
|
|
166
|
+
priority: FastImage.priority.normal,
|
|
167
|
+
}}
|
|
168
|
+
resizeMode={FastImage.resizeMode.cover}
|
|
169
|
+
/>
|
|
170
|
+
) : (
|
|
171
|
+
<OIcon
|
|
172
|
+
src={theme?.images?.dummies?.product}
|
|
173
|
+
style={{ ...styles.productImage, ...{ width: 82, height: 82 } }}
|
|
174
|
+
/>
|
|
175
|
+
)
|
|
161
176
|
) : (
|
|
162
|
-
|
|
177
|
+
product?.images ? (
|
|
178
|
+
<FastImage
|
|
179
|
+
style={styles.productImage}
|
|
180
|
+
source={{
|
|
181
|
+
uri: optimizeImage(product?.images, 'h_100,c_limit'),
|
|
182
|
+
priority: FastImage.priority.normal,
|
|
183
|
+
}}
|
|
184
|
+
resizeMode={FastImage.resizeMode.cover}
|
|
185
|
+
/>
|
|
186
|
+
) : (
|
|
187
|
+
<OIcon
|
|
188
|
+
src={theme?.images?.dummies?.product}
|
|
189
|
+
style={styles.productImage}
|
|
190
|
+
/>
|
|
191
|
+
)
|
|
163
192
|
)}
|
|
164
193
|
</ProductImage>
|
|
165
|
-
|
|
194
|
+
)}
|
|
166
195
|
{!!product?.calendar_event ? (
|
|
167
196
|
<View style={{ flex: 1, marginLeft: 10, flexDirection: 'column' }}>
|
|
168
197
|
<View>
|