简体   繁体   English

如何在 React Native 中从谷歌获取纬度和经度

[英]How to get Lat and Long from google in React Native

I am trying to get lat and long from google using react native.我正在尝试使用本机反应从谷歌获得lat and long I am new to React native and did not find any resource to resolve my issue.我是 React native 的新手,没有找到任何资源来解决我的问题。 Could someone please help me??有人可以帮我吗?

Thanks谢谢

Have to add to your proyect react-native-geolocation-service, here is the link https://github.com/Agontuk/react-native-geolocation-service必须添加到您的项目 react-native-geolocation-service,这里是链接https://github.com/Agontuk/react-native-geolocation-service

Geolocation.getCurrentPosition is the method i use to get location. Geolocation.getCurrentPosition 是我用来获取位置的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM