Quantcast
Channel: Active questions tagged touchablewithoutfeedback - Stack Overflow
Viewing all articles
Browse latest Browse all 46

Nested touchables in react native event propagation not working

$
0
0

I have a TouchableWithoutFeedback (child) with an onLongPress method inside a TouchableOpacity (parent) with an onPress method.

What I want is that a regular press (not long press) on the child component should trigger the onPress method of the parent. My long press works correctly at the moment but a regular press does not propagate up to the parent TouchableOpacity.

Is there any workaround for this? Thanks in advance.


Viewing all articles
Browse latest Browse all 46

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>