ordering-ui-react-native 0.17.31 → 0.17.32

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.17.31",
3
+ "version": "0.17.32",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -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
  <>