ordering-ui-react-native 0.15.15 → 0.15.16

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.15.15",
3
+ "version": "0.15.16",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -93,7 +93,7 @@ const BusinessProductsListingUI = (props: BusinessProductsListingParams) => {
93
93
  >
94
94
  <Category
95
95
  style={cardStyle}
96
- source={{uri: item.images}}
96
+ source={item.images ? {uri: item.images} : theme.images.categories.all}
97
97
  resizeMode="cover"
98
98
  w={widthScreen}
99
99
  borderRadius={16}
@@ -172,7 +172,7 @@ const BusinessProductsListingUI = (props: BusinessProductsListingParams) => {
172
172
  <OCard
173
173
  key={category.id}
174
174
  title={category?.name || ''}
175
- image={{uri: category?.image}}
175
+ image={category.images ? {uri: category.images} : theme.images.categories.all}
176
176
  style={{
177
177
  width:
178
178
  orientationState?.orientation === LANDSCAPE