[Bug]: Using <Images>
with native views on iOS causes touch interation to stop working for part of map
#3634
Labels
bug 🪲
Something isn't working
Mapbox Implementation
Mapbox
Mapbox Version
11.0.0
React Native Version
0.74.5
Platform
iOS
@rnmapbox/maps
version10.1.31
Standalone component to reproduce
Observed behavior and steps to reproduce
When using larger amounts of react native views in an Image set rendered via
<Image>
, touch interaction stops working. The region where this occurs on the top of the map is approximately equal to the sum of all the images.Using the example component, all touches within the top ~260 pixels of the map do not work.
I have observed on iOS, have not tested on android. See below for a workaround I have found.
Expected behavior
Map touch interaction should work regardless of use of
<Image>
for rendering native views as pinsNotes / preliminary analysis
I have found the following workaround:
We can wrap the
<Images>
in a zero-height view, to resolve the issue. It appears these native views are being rendered invisible on top of map, with a width of 100% and height approximately equal to the sum of the heights of the images.Additional links and references
No response
The text was updated successfully, but these errors were encountered: