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

Fix usage with react-native-service-location #623

Merged
merged 1 commit into from
Oct 5, 2020

Conversation

ErickMaeda
Copy link
Contributor

Fix usage of navigator.geolocation.getCurrentPosition is null

When use react-native-service-location like

navigator.geolocation = require('react-native-geolocation-service');

When use this library it comes in default property.
navigator.geolocation.getCurrentLocation is undefined but navigator.geolocation.default.getCurrentLocation is currently defined.

Fix usage of navigator.geolocation.getCurrentPosition is null

When use react-native-service-location like
```js
navigator.geolocation = require('react-native-geolocation-service');
```

When use this library it comes in `default` property. 
`navigator.geolocation.getCurrentLocation` is undefined but `navigator.geolocation.default.getCurrentLocation` is currently defined.
@bell-steven bell-steven self-requested a review September 30, 2020 14:45
@bell-steven
Copy link
Collaborator

Thanks for the PR! I will test and merge next week hopefully.

@bell-steven bell-steven merged commit 1fe0f18 into FaridSafi:master Oct 5, 2020
@bell-steven
Copy link
Collaborator

Published as v1.9.0

@ErickMaeda ErickMaeda deleted the patch-1 branch October 7, 2020 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants