Skip to content

Commit

Permalink
Merge pull request #1 from react-community/master
Browse files Browse the repository at this point in the history
Fix initialRegion when using RN 0.54 (react-native-maps#2131)
  • Loading branch information
MichielDeMey authored Mar 29, 2018
2 parents 7f66cf2 + d0cbac6 commit 786fe9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ios/AirGoogleMaps/AIRGoogleMap.m
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ - (void)didMoveToWindow {
- (void)setInitialRegion:(MKCoordinateRegion)initialRegion {
if (_initialRegionSetOnLoad) return;
_initialRegion = initialRegion;
_initialRegionSetOnLoad = true;
_initialRegionSetOnLoad = _didMoveToWindow;
self.camera = [AIRGoogleMap makeGMSCameraPositionFromMap:self andMKCoordinateRegion:initialRegion];
}

Expand Down

0 comments on commit 786fe9f

Please sign in to comment.