From 27614afdeaff1391d6345d3d5ea14d71c1b9c7c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20Fazekas?= Date: Sun, 21 Jun 2026 14:31:14 +0200 Subject: [PATCH 1/3] fix(MarkerView): forward pointerEvents prop to native view MarkerView accepted pointerEvents via ViewProps but never destructured or passed it to the native RNMBXMarkerView, so pointerEvents="none" had no effect. Also skip stopPropagation in onTouchEnd when pointerEvents is "none" or "box-none" so JS-level event handling stays consistent. Fixes #4219 --- .../src/examples/Annotations/MarkerView.tsx | 25 ++++++++++++++++--- src/components/MarkerView.tsx | 13 +++++++--- 2 files changed, 32 insertions(+), 6 deletions(-) diff --git a/example/src/examples/Annotations/MarkerView.tsx b/example/src/examples/Annotations/MarkerView.tsx index 1ea6380b14..3ac99b6a2f 100644 --- a/example/src/examples/Annotations/MarkerView.tsx +++ b/example/src/examples/Annotations/MarkerView.tsx @@ -274,12 +274,20 @@ const ShowMarkerView = () => { React.useState(INITIAL_COORDINATES); const [allowOverlapWithPuck, setAllowOverlapWithPuck] = React.useState(false); + const [pointerEventsNone, setPointerEventsNone] = + React.useState(false); + + const [mapMoveCount, setMapMoveCount] = React.useState(0); const onPressMap = (e: GeoJSON.Feature) => { const geometry = e.geometry as GeoJSON.Point; setPointList((pl) => [...pl, geometry.coordinates]); }; + const onRegionDidChange = React.useCallback(() => { + setMapMoveCount((c) => c + 1); + }, []); + return ( <>