From 7d72addf3063813e5a896d7f7c6237bb19da73a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20Fazekas?= Date: Fri, 14 Jun 2024 06:52:33 +0200 Subject: [PATCH] fix(andorid,newarch): setHandledMapChangedEvents issue (#3527) --- .../rnmbx/components/mapview/NativeMapViewModule.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/NativeMapViewModule.kt b/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/NativeMapViewModule.kt index 41158020f..ef529ef14 100644 --- a/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/NativeMapViewModule.kt +++ b/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/NativeMapViewModule.kt @@ -152,6 +152,14 @@ class NativeMapViewModule(context: ReactApplicationContext, val viewTagResolver: } } + public fun setHandledMapChangedEvents( + viewRef: Double?, + events: ReadableArray, + promise: Promise + ) { + setHandledMapChangedEvents(viewRef?.toInt(), events, promise) + } + override fun clearData(viewRef: ViewRefTag?, promise: Promise) { withMapViewOnUIThread(viewRef, promise) { it.clearData(createCommandResponse(promise))