react-native-amap-geolocation icon indicating copy to clipboard operation
react-native-amap-geolocation copied to clipboard

start()后,仅可定位一次

Open Symous opened this issue 5 years ago • 1 comments

当调用start()方法开始进行定位后,仅能获取到1次定位,后续再走动(经纬度发生变化后),没有再得到回调结果。在Android和iOS都存在此问题。

版本:1.0.4

Symous avatar Aug 15 '19 09:08 Symous

我也发现这个好像不是很好用。其实你完全可以自己写一个计时器,很简单。 比如: setInterval(() => { aGeolocation.getCurrentPosition(/**Your code here */); }, 1000)

esdotzed avatar Sep 17 '19 06:09 esdotzed