ordering-ui-react-native 0.23.77 → 0.23.78

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.23.77",
3
+ "version": "0.23.78",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -24,6 +24,7 @@ const MapViewComponent = (props: MapViewParams) => {
24
24
  setDriverLocation,
25
25
  onNavigationRedirect,
26
26
  getBusinessLocations,
27
+ isDeliveryApp
27
28
  } = props;
28
29
 
29
30
  const theme = useTheme();
@@ -177,7 +178,7 @@ const MapViewComponent = (props: MapViewParams) => {
177
178
  longitude: coordinateLng
178
179
  })
179
180
  }
180
- ref={(ref) => markerRef.current = ref}
181
+ ref={(ref: any) => markerRef.current = ref}
181
182
  >
182
183
  <Icon
183
184
  name="map-marker"
@@ -250,7 +251,7 @@ const MapViewComponent = (props: MapViewParams) => {
250
251
  return (
251
252
  <SafeAreaView style={{ flex: 1 }}>
252
253
  <View style={{ flex: 1 }}>
253
- {!isLoadingBusinessMarkers && isFocused && (
254
+ {(isDeliveryApp || (!isLoadingBusinessMarkers && isFocused)) && (
254
255
  <View style={{ flex: 1 }}>
255
256
  <MapView
256
257
  ref={mapRef}
@@ -288,7 +288,7 @@ export interface OrdersOptionParams {
288
288
  rememberOrderStatus?: any;
289
289
  titleContent?: string;
290
290
  customArray?: Array<any>;
291
- loadMoreOrders?: (options ?: any) => {};
291
+ loadMoreOrders?: (options?: any) => {};
292
292
  loadOrders?: ({ }: any, options?: any) => {};
293
293
  messages?: any;
294
294
  setMessages?: () => {};
@@ -618,6 +618,7 @@ export interface MapViewParams {
618
618
  getBusinessLocations: () => void,
619
619
  setDriverLocation: (location: any) => void,
620
620
  isLoadingBusinessMarkers?: boolean,
621
+ isDeliveryApp: boolean,
621
622
  markerGroups: Array<any>,
622
623
  customerMarkerGroups: Array<any>,
623
624
  alertState: { open: boolean, content: Array<string>, key?: string | null },