Can anyone confirm if React Native Geolocation is actually working on Android?I am stuck with location request timed out while using getCurrentPosition()
method and no error message while using watchPosition()
method.
I have added the required permission (FINE LOCATION) on AndroidManifest.xml and location permission is allowed for the app.
Here is my implementation:
componentWillMount() { navigator.geolocation.getCurrentPosition((position) => { console.log('+++++++'); console.log(position.coords.longitude); this.setState({ longitude: position.coords.longitude, error: null, }); }, (error) => { console.log(error); }, );}
React Native Version : 0.42