-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Use Activity to initialize Google Map #449
Conversation
/cc @felipecsl |
This should resolve that problem of using multiple mapviews |
@@ -57,7 +58,7 @@ protected AirMapView createViewInstance(ThemedReactContext context) { | |||
reactContext = context; | |||
|
|||
try { | |||
MapsInitializer.initialize(this.appContext); | |||
MapsInitializer.initialize(new AirMapModule(this.appContext).getActivity()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice hack
lgtm. needs to be rebased though |
hey @spikebrehm appreciate for your push on 0.8 :) Mind looking into publishing this change It's a case where there is more than one mapview and one of the devs tested out a fix. Thank you |
Great, we're happy to merge this, it just needs a rebase. Ping @alvinthen |
5187d4f
to
bf6260e
Compare
Updated with rebased branch, if I did it correctly. |
Thanks! |
Thanks @spikebrehm Thats awesome |
I think this change is conflicting with e77765d , as |
@rops you're right! I'll fix it. |
Use Activity to initialize Google Map
Just published 0.8.1 that includes this change. |
It turns out 0.8.1 was faulty, because my working directory had an additional example app containing the |
Update AirMapManager to use Activity obtained from ReactContextBaseJavaModule (part of update from RN v0.29.0)
This might address issues like #165
Note: Not tested for backward compatibility