ordering-ui-react-native 0.23.75-test3 → 0.23.75-test5

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.75-test3",
3
+ "version": "0.23.75-test5",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -31,7 +31,7 @@ const MapViewComponent = (props: MapViewParams) => {
31
31
  const [{ user }] = useSession()
32
32
  const { width, height } = Dimensions.get('window');
33
33
 
34
- const mapRef = useRef<MapView | any>(null);
34
+ const mapRef = useRef<any>(null);
35
35
  const following = useRef<boolean>(true);
36
36
  const [isFocused, setIsFocused] = useState(false)
37
37
  const [locationSelected, setLocationSelected] = useState<any>(null)
@@ -266,8 +266,8 @@ const MapViewComponent = (props: MapViewParams) => {
266
266
  ref={mapRef}
267
267
  provider={PROVIDER_GOOGLE}
268
268
  initialRegion={{
269
- latitude: initialPosition?.latitude ?? 0,
270
- longitude: initialPosition?.longitude ?? 0,
269
+ latitude: initialPosition?.latitude ?? 1,
270
+ longitude: initialPosition?.longitude ?? 1,
271
271
  latitudeDelta: haveOrders ? 0.01 : 0.1,
272
272
  longitudeDelta: haveOrders ? 0.01 * ASPECT_RATIO : 0.1 * ASPECT_RATIO,
273
273
  }}
@@ -279,7 +279,7 @@ const MapViewComponent = (props: MapViewParams) => {
279
279
  moveOnMarkerPress
280
280
  /* onTouchStart={() => (following.current = false)} */
281
281
  >
282
- <>
282
+ {/* <>
283
283
  {Object.values(markerGroups).length ? (Object.values(markerGroups).map((marker: any) => (
284
284
  <RenderMarker
285
285
  key={marker[0]?.business_id}
@@ -318,7 +318,7 @@ const MapViewComponent = (props: MapViewParams) => {
318
318
  </View>
319
319
  </Marker>
320
320
  ) : null}
321
- </>
321
+ </> */}
322
322
  </MapView>
323
323
  {/* <OFab
324
324
  materialIcon