From 67183ffc6468dd1abeab163923e1b14e51b7497e Mon Sep 17 00:00:00 2001 From: Naftali Beder Date: Fri, 13 Sep 2024 15:21:59 -0500 Subject: [PATCH] Get mapView directly --- ios/RNMBX/RNMBXCamera.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ios/RNMBX/RNMBXCamera.swift b/ios/RNMBX/RNMBXCamera.swift index 14d02e129..cdd38a96a 100644 --- a/ios/RNMBX/RNMBXCamera.swift +++ b/ios/RNMBX/RNMBXCamera.swift @@ -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) } }