diff --git a/ios/RNMBX/RNMBXMapViewComponentView.mm b/ios/RNMBX/RNMBXMapViewComponentView.mm index 88035f9de..1fae034a3 100644 --- a/ios/RNMBX/RNMBXMapViewComponentView.mm +++ b/ios/RNMBX/RNMBXMapViewComponentView.mm @@ -222,6 +222,12 @@ - (void)updateProps:(const Props::Shared &)props oldProps:(const Props::Shared & RNMBX_OPTIONAL_PROP_BOOL(deselectAnnotationOnTap); + // Has to be set before -didSetProps: below, which is where the MapView is created. + id mapViewImpl = RNMBXConvertFollyDynamicToId(newViewProps.mapViewImpl); + if (mapViewImpl != nil) { + _view.mapViewImpl = mapViewImpl; + } + id styleURL = RNMBXConvertFollyDynamicToId(newViewProps.styleURL); if (styleURL != nil) { if (_lastStyleURL == nil || ![_lastStyleURL isEqual:styleURL]) {