onPress does not returns the geometry property
See original GitHub issueWhen 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:
- Created 4 years ago
- Reactions:4
- Comments:8
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@edoantonioco remove that
…this.props.GooglePlacesDetailsQuery,
in line 289 this solve my problem
@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