Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

按照别人的DEMO运行提示_reactNativeAmapGeolocation.Geolocation.start is not a function #97

Open
jiangmin-code opened this issue Sep 16, 2019 · 1 comment
Labels
android Only for android bug Something isn't working

Comments

@jiangmin-code
Copy link

import { Geolocation } from "react-native-amap-geolocation";
const geolocationInit = async () => {
await Geolocation.init({
android: "key"
});

Geolocation.setOptions({
    interval: 3000,
    distanceFilter: 20
});

Geolocation.addLocationListener(location => {
    console.log("aaaaaaaaaaaaaaaaaaaaaaaa>" + location);
});

}

componentDidMount() {
Geolocation.start();
}

@jiangmin-code jiangmin-code added android Only for android bug Something isn't working labels Sep 16, 2019
@xif3681
Copy link

xif3681 commented Sep 29, 2019

import {Location, init, addLocationListener, stop, start, setDistanceFilter , setInterval} from "react-native-amap-geolocation"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Only for android bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants