react-native-google-places-autocomplete 2.5.6 → 2.6.0

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.
@@ -286,11 +286,15 @@ interface GooglePlaceData {
286
286
  interface Point {
287
287
  lat: number;
288
288
  lng: number;
289
+ latitude: number;
290
+ longitude: number;
289
291
  }
290
292
 
291
293
  interface AddressComponent {
292
294
  long_name: string;
293
295
  short_name: string;
296
+ longText: string;
297
+ shortText: string;
294
298
  types: PlaceType[];
295
299
  }
296
300
 
@@ -323,6 +327,11 @@ interface GooglePlaceDetail {
323
327
  url: string;
324
328
  utc_offset: number;
325
329
  vicinity: string;
330
+ // New Places API parameters
331
+ addressComponents: AddressComponent[];
332
+ adrFormatAddress: string;
333
+ formattedAddress: string;
334
+ location: Point;
326
335
  }
327
336
 
328
337
  /** @see https://developers.google.com/places/web-service/autocomplete */
@@ -431,6 +440,8 @@ interface GooglePlacesAutocompleteProps {
431
440
  /** text input props */
432
441
  textInputProps?: TextInputProps | Object;
433
442
  timeout?: number;
443
+ isNewPlacesAPI?: boolean;
444
+ fields?: string;
434
445
  }
435
446
 
436
447
  export type GooglePlacesAutocompleteRef = {