TouchableWithoutFeedback with onPress={} Doesn't work when PanGestureHandler wraps it #2841
Unanswered
razamsalem
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Helllo,
I'm using PanGestureHandler for detecting swipe but I need a TouchableWithoutFeedback at the same level to detect on press (one tap behivor)
the problem is the PanGestureHandler cancels TouchableWithoutFeedback
this is the following code:
``
<PanGestureHandler onGestureEvent={handleGestureEvent}> <View style={[styles.pageContainer, { height: '100%', width: '100%' }]} ref={ref => (containerRef.current = ref)} > <Text>Some Text</Text> </View> </PanGestureHandler>
Beta Was this translation helpful? Give feedback.
All reactions