@hoddy-ui/core 2.5.33 → 2.5.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": "@hoddy-ui/core",
3
- "version": "2.5.33",
3
+ "version": "2.5.36",
4
4
  "description": "Core rich react native components written in typescript",
5
5
  "main": "index.ts",
6
6
  "repository": {
@@ -15,6 +15,7 @@ import Typography from "./Typography";
15
15
  export type predictionType = {
16
16
  id: string;
17
17
  description: string;
18
+ types: string[];
18
19
  };
19
20
  export const getPredictionsFromCoords = async (coords: {
20
21
  latitude: number;
@@ -36,10 +37,15 @@ export const getPredictionsFromCoords = async (coords: {
36
37
  const p = [];
37
38
 
38
39
  for (let key in res.results) {
39
- const { formatted_address: description, place_id } = res.results[key];
40
+ const {
41
+ formatted_address: description,
42
+ place_id,
43
+ types,
44
+ } = res.results[key];
40
45
  p.push({
41
46
  description,
42
47
  id: place_id,
48
+ types,
43
49
  latLng: { lst: coords.latitude, lng: coords.longitude },
44
50
  });
45
51
  }