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

Maps issue 915: Stop/start Location manager based on listeners registered. #11

Merged

Conversation

soumyashisPR
Copy link

@soumyashisPR soumyashisPR commented Aug 20, 2020

Issue: https://github.com/react-native-mapbox-gl/maps/issues/915

Fix:
'UserLocation' should only add/remove its listener on 'locationManager' service and never start or stop it. It the responsibility of the locationManager to start or stop itself depending on the number of listeners registered.

javascript/components/UserLocation.js Outdated Show resolved Hide resolved
@ntantri
Copy link

ntantri commented Aug 22, 2020

@soumyashisPR I have approved the PR. You may want to raise this PR against a non-master branch of this repo. You have the permission to do so on this repo. Reason being, there is a master pull bot which will change/revert your changes to the lastest master of the main source repo (forked repo).

@soumyashisPR soumyashisPR changed the base branch from master to maps-issue-915 August 23, 2020 09:40
@soumyashisPR soumyashisPR merged commit b61268b into miqdigital:maps-issue-915 Aug 23, 2020
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