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 overlay removal bug #2197

Merged
merged 1 commit into from
May 1, 2018
Merged

Conversation

kabbi
Copy link
Contributor

@kabbi kabbi commented Apr 14, 2018

Does any other open PR do the same thing?

Nope

What issue is this PR fixing?

When <Overlay/> component is unmounted before the image had a chance to load (either a large image, or slow internet connection), after image finishes loading overlay is still rendered, and cannot be removed afterwards.

How did you test this PR?

There was a bug on Android which didn't cancel image rendering after removing from map. My change erases map reference, thus avoiding this bug.

Tested on several Android devices, does not seem to affect iOS.

@rborn
Copy link
Collaborator

rborn commented Apr 18, 2018

LGTM
@alvelig 🐽

@alvelig
Copy link
Contributor

alvelig commented Apr 18, 2018

Could #2027 relate to it?

@kabbi
Copy link
Contributor Author

kabbi commented Apr 20, 2018

@alvelig I don't really think so. This has a very specific and narrow use-case, and the issue you've linked does not even use any Overlays, so it should not be related.

@rborn rborn merged commit 25776e7 into react-native-maps:master May 1, 2018
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.

3 participants