Animated.View passes touch events to sibling when child is absolute positioned #35612
Labels
API: Animated
Needs: Triage 🔍
Platform: Linux
Building on Linux.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Description
I have two sibling components a
<MapContainer/>
and a<Card/>
, the card is positioned usingabsolute
so it overlays the map.The setup works as expected until I decided to animate the card. wrapping the card with
<Animated.View>
makes the touch event reach the<MapContainer/>
.What I've tried:
onResponderStart={() => true}
on the card component to stop touch events -> did nothing.<TouchableWithoutFeedback onPress={() => console.log('press')}>
the touch still finds its way to the sibling through the card.pointerEvents
it would make the card not touchable but the touch still finds its way to sibling.Version
0.70.6
Output of
npx react-native info
Steps to reproduce
Create two components and overlay one over the other using absolute positioning. Then wrap the overlayed component in
Animated.View
. You should find that touching the overlaying component activates the touch on the sibling.Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: