React-Native Google 地图搜索结果

React-Native Google Maps search result

我想在 react-native 中显示搜索查询结果地图, 例如:

https://www.google.it/maps/search/hotels+in+New+York,+Stati+Uniti/@40.7522488,-74.0240238,13z/data=!3m1!4b1?hl=it

我检查了几个组件: https://github.com/react-community/react-native-maps https://github.com/tolu360/react-native-google-places https://github.com/react-community/react-native-maps/blob/master/docs/installation.md

我成功安装了 cocoa 依赖项并设置了 Google API。

我正在寻找的是带有 Google 地图结果

的 Around Me 功能

对我来说,最好的解决方案是使用 AirBandB React Native Maps 组件。它提供了使用 google 地图(不仅是 google 地图)所需的所有功能。

这是一个关于它的精美视频教程系列,非常清晰,效果很好。

https://www.youtube.com/watch?v=eT8SssHz0nY