Skip to content

Commit

Permalink
Get mapView directly
Browse files Browse the repository at this point in the history
  • Loading branch information
naftalibeder committed Sep 18, 2024
1 parent 715adf7 commit 67183ff
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ios/RNMBX/RNMBXCamera.swift
Original file line number Diff line number Diff line change
Expand Up @@ -548,10 +548,7 @@ open class RNMBXCamera : RNMBXMapComponentBase {
return false
}

withMapView { mapView in
mapView.viewport.removeStatusObserver(self)
}

map._mapView.viewport.removeStatusObserver(self)
return super.removeFromMap(map, reason: reason)
}
}
Expand Down

0 comments on commit 67183ff

Please sign in to comment.