【发布时间】:2021-02-19 13:48:34
【问题描述】:
尝试使用 react-native-geolocation-service 并按照提供的设置进行操作,但仍然出现错误。 我正在使用:
- react-native": "0.63.4,
- react-native-geolocation-service": "^5.2.0
import Geolocation from 'react-native-geolocation-service';
Geolocation.getCurrentPosition(
(position) => {
console.log(position);
},
(error) => {
console.log(error.code, error.message);
},
{enableHighAccuracy: false, timeout: 10000, maximumAge: 100000},
);
【问题讨论】:
标签: reactjs react-native geolocation