Open boovius opened 6 months ago
I have a similar issue on iOS, on android it seems to be working normally
Also the onPress on MapView, onTouchMove and onTouchEnd don't work, while onTouchStart does
On MarkerView, the onPressIn and onPressOut work, but onPress doesn't
Seems to be a general event propagation issue on iOS.
Also using rnmapbox/maps, version 10.1.11 with default mapbox version, react native version 0.72.6
This is only happening on iPhone XS for us. Same for you all?
A potential solution is to temporarily use onPressOut
.
I am also having this issue on rnmapbox/maps version 10.1.27
, react native version 0.71.0
and it's only happening on iOS, not Android. I'm currently using onPressIn
as a workaround but hoping this'll get fixed soon! 🤞
Simple code example:
<Mapbox.MarkerView
id={id}
coordinate={coordinate}
anchor={{ x: 0.5, y: 1 }}
allowOverlap
>
<Pressable onPress={onPress}> // this `onPress` never gets triggered
{...other content}
</Pressable>
</Mapbox.MarkerView>
Mapbox Implementation
Mapbox
Mapbox Version
10.16.4
React Native Version
0.73.1
Platform
iOS
@rnmapbox/maps
version10.1.19
Standalone component to reproduce
Observed behavior and steps to reproduce
Map shows the child of the MarkerView rendered nicely. However when clicking upon the marker, no event seems to be propagated. No logs come out for the onPress event of the Pressable component used as a child of the MarkerView.
Expected behavior
The console log of 'pressing the marker view' should be seen in the logs. It is not.
Notes / preliminary analysis
I've tried using a PointAnnotation but cannot get an component from ReactNative to render at all when using that as a child of the PointAnnotation.
Have tried all sorts of things. This is very frustrating. Any help would be greatly, greatly appreciated!
Additional links and references
No response