ordering-ui-react-native 0.22.70 → 0.22.71

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.22.70",
3
+ "version": "0.22.71",
4
4
  "description": "Reusable components made in react native",
5
5
  "main": "src/index.tsx",
6
6
  "author": "ordering.inc",
@@ -356,9 +356,6 @@ const AddressFormUI = (props: AddressFormParams) => {
356
356
  map_data: { library: 'google', place_id: data.place_id },
357
357
  zip_code: data?.zip_code || null,
358
358
  };
359
- if (googleInput?.current) {
360
- googleInput?.current?.setAddressText(addressSelected.address);
361
- }
362
359
  updateChanges(addressSelected);
363
360
  };
364
361
 
@@ -195,8 +195,8 @@ export const GoogleMap = (props: GoogleMapsParams) => {
195
195
  const regionConfig = {
196
196
  latitude: location?.lat,
197
197
  longitude: location?.lng,
198
- latitudeDelta: delta ?? 0.0010,
199
- longitudeDelta: (delta ?? 0.0010) * ASPECT_RATIO
198
+ latitudeDelta: region?.latitudeDelta ?? delta ?? 0.0010,
199
+ longitudeDelta: region?.longitudeDelta ?? (delta ?? 0.0010) * ASPECT_RATIO
200
200
  }
201
201
 
202
202
  mapRef.current.animateToRegion(autoCompleteAddress
@@ -641,6 +641,8 @@ export interface GoogleMapsParams {
641
641
  setAutoCompleteAddress?: (val: boolean) => void,
642
642
  autoCompleteAddress?: boolean,
643
643
  manualZoom?: boolean
644
+ autoCompleteAddress?: boolean,
645
+ setAutoCompleteAddress?: (val: boolean) => void,
644
646
  }
645
647
 
646
648
  export interface HelpParams {