You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem seems to come from the setInitialRegion function which is never called.
I tried a workaround like this in the AIRMapManager.m
RCT_CUSTOM_VIEW_PROPERTY(initialRegion, MKCoordinateRegion, AIRMap)
{
if (json == nil) return;
// don't emit region change events when we are setting the region
BOOL originalIgnore = view.ignoreRegionChanges;
view.ignoreRegionChanges = YES;
[view setInitialRegion:[RCTConvert MKCoordinateRegion:json]];
view.ignoreRegionChanges = originalIgnore;
}
but it does not work, json variable is nil and I don't know why. I'm not an ObjC developer, so some help would be appreciated :)
Bug
onRegionChangeComplete
event resets back toinitialRegion
.It happens on
iOS
while usingGoogle Maps
(PROVIDER_GOOGLE
).Example (video):
Reproduction
First we'll need a copy of the
master
branch, lets call itblaster
:$ git checkout -b blaster master
Now to make it compile (
master
is broken) we'll have to "cherry pick" the followingPR
s:Apply it to the
blaster
branch with:Now simply:
And,
The text was updated successfully, but these errors were encountered: