Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ios/RNMBX/RNMBXMapViewComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -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]) {
Expand Down