question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

onPress does not returns the geometry property

See original GitHub issue

When fetchDetails={true}, details prop of onPress should show all this information https://developers.google.com/places/web-service/search#PlaceSearchResponses.

But this is an example of what it currently shows:

Object {
  "formatted_address": "San Francisco, Córdoba, Argentina",
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:8

github_iconTop GitHub Comments

3reactions
henrique010commented, Dec 16, 2019

@edoantonioco remove that

…this.props.GooglePlacesDetailsQuery,

in line 289 this solve my problem

2reactions
manindersinghsaggucommented, Dec 18, 2019

@edoantonioco you can also remove

GooglePlacesDetailsQuery from where you’re using Google Places Component

GooglePlacesSearchQuery={{ rankby: ‘distance’, types: ‘food’, }} // GooglePlacesDetailsQuery={{ // // available options for GooglePlacesDetails API : https://developers.google.com/places/web-service/details // fields: ‘formatted_address’, // }} filterReverseGeocodingByTypes={[ ‘locality’, ‘administrative_area_level_3’, ]}

Hope this works for u that work for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why isn't onPress calling the function? - Stack Overflow
Entirely new to React Native. The problem isn't with the actual logic of the code. Tested it and it worked in a browser....
Read more >
Using Google Places autocomplete components in React Native
For example, when a suggested address is pressed, the user's input does not return any more suggestions (i.e place not found). These responses ......
Read more >
Pressable - React Native
Pressable is a Core Component wrapper that can detect various stages of press interactions on any of its defined children.
Read more >
How to dismiss the keyboard in React native without clicking ...
To dismiss the keyboard we will be discussing two methods. ... component and set the onPress value of this component to Keyboard.dismiss.
Read more >
react-native-google-places-autocomplete - npm
returns if the Google Places Details API returns a 'not found' code (when you press a suggestion). onPress, function, returns when after a ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found