ordering-ui-react-native 0.17.14 → 0.17.15

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.14",
3
+ "version": "0.17.15",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -537,6 +537,7 @@ const BusinessProductsListingUI = (props: BusinessProductsListingParams) => {
537
537
  export const BusinessProductsListing = (props: BusinessProductsListingParams) => {
538
538
  const businessProductslistingProps = {
539
539
  ...props,
540
+ isForceSearch: Platform.OS === 'ios',
540
541
  UIComponent: BusinessProductsListingUI
541
542
  }
542
543
  return (
@@ -38,7 +38,7 @@ export const BusinessTypeFilterUI = (props: BusinessTypeFilterParams) => {
38
38
 
39
39
  const theme = useTheme();
40
40
  const [isOpenAllCategories, setIsOpenAllCategories] = useState(false)
41
- const defaultImage = (name : string) => theme.images?.categories?.[name.toLowerCase()]
41
+ const defaultImage = (name : string) => theme.images?.categories?.[name.toLowerCase().replace(' ', '')]
42
42
 
43
43
  useEffect(() => {
44
44
  if(typesState?.types?.length > 0){
@@ -198,9 +198,9 @@ export const BusinessTypeFilterUI = (props: BusinessTypeFilterParams) => {
198
198
  isOpenAllCategories && setIsOpenAllCategories(false)
199
199
  }}
200
200
  >
201
- {(item.image || defaultImage(item.name)) ? (
201
+ {(defaultImage(item.name) || item.image) ? (
202
202
  <OIcon
203
- url={item.image || defaultImage(item.name)}
203
+ url={typeof item.name === 'number' ? item.image || defaultImage(item.name) : defaultImage(item.name) || item.image}
204
204
  style={styles.logo}
205
205
  />
206
206
  ) : (