ordering-ui-react-native 0.17.34 → 0.17.36

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.34",
3
+ "version": "0.17.36",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -52,7 +52,8 @@ export const BusinessListingSearchUI = (props: BusinessSearchParams) => {
52
52
  brandList,
53
53
  onNavigationRedirect,
54
54
  handleUpdateBusinessList,
55
- handleUpdateProducts
55
+ handleUpdateProducts,
56
+ brandId
56
57
  } = props
57
58
 
58
59
  const screenHeight = Dimensions.get('window').height;
@@ -253,6 +254,7 @@ export const BusinessListingSearchUI = (props: BusinessSearchParams) => {
253
254
  onNavigationRedirect={onNavigationRedirect}
254
255
  BusinessControllerSkeletons={BusinessControllerSkeletons}
255
256
  businessPaginationProps={paginationProps}
257
+ franchiseId={brandId}
256
258
  />
257
259
  )}
258
260
 
@@ -260,7 +260,7 @@ const BusinessProductsListingUI = (props: BusinessProductsListingParams) => {
260
260
  <Animated.View style={{ position: 'relative' }}>
261
261
  <TopHeader
262
262
  style={{
263
- marginTop: Platform.OS === 'ios' ? insets.top : 40
263
+ marginTop: Platform.OS === 'ios' ? insets.top : 0
264
264
  }}
265
265
  >
266
266
  {!isOpenSearchBar && (
@@ -186,7 +186,7 @@ const BusinessesListingUI = (props: BusinessesListingParams) => {
186
186
  paginationProps.totalPages === paginationProps.currentPage
187
187
  );
188
188
 
189
- if (y + PIXELS_TO_SCROLL > height && !businessesList.loading && hasMore) {
189
+ if (y + PIXELS_TO_SCROLL > height && !businessesList.loading && hasMore && businessesList?.businesses?.length > 0) {
190
190
  getBusinesses();
191
191
  }
192
192
  };
@@ -645,6 +645,7 @@ export interface BusinessSearchParams {
645
645
  onNavigationRedirect?: any,
646
646
  handleUpdateProducts: any,
647
647
  handleUpdateBusinessList?: any;
648
+ brandId?: number
648
649
  }
649
650
 
650
651
  export interface NoNetworkParams {