-
-
Notifications
You must be signed in to change notification settings - Fork 99
Open
Description
When I tap on PointAnnotation it correctly reacts to a tap. However, the next tap (but only tap - pinch, for example, works) is not producing any events on any map components (MapView, ShapeSource). The next-next tap works as expected. Waiting does not help. Zooming in/out does not help.
2025-11-20-12-55-08.mp4
Steps to reproduce:
- run the below minimal example
- tap on map
- observe event logged in the console
- tap on the annotation
- tap on map
- observe event NOT logged in the console
- tap on map
- observe event logged in the console
Minimal reproduction setup:
import { MapView, PointAnnotation } from "@maplibre/maplibre-react-native";
import { Text, View, ToastAndroid } from "react-native";
export function BugReport() {
return (
<MapView
style={{ flex: 1 }}
onPress={e => {
ToastAndroid.show("tap", ToastAndroid.SHORT);
console.log(e)
}}
>
<PointAnnotation
id={"test"}
anchor={{ x: 0.5, y: 0 }}
key={"test"}
coordinate={[0,0]}>
<Text>HELLOOOOOO</Text>
</PointAnnotation >
</MapView>
);
}@maplibre/maplibre-react-native Version
11.0.0-alpha.14
Which platforms does this occur on?
Android Device
Which frameworks does this occur on?
React Native
Which architectures does this occur on?
New Architecture
Environment
expo-env-info 2.0.7 environment info:
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 20.19.4 - C:\Program Files\nodejs\node.EXE
npm: 11.5.2 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: AI-223.8836.35.2231.10671973
npmPackages:
react: 19.1.1 => 19.1.1
react-native: ^0.82.1 => 0.82.1
Expo Workflow: bare