Describe the bug
Whenever I swipe to see the options, the touch triggers the tap and goes to a child's view. I would like to know if there is any way to differentiate between tap and swipe.
Not sure if this qualifies as the bug but I really need help.
To Reproduce
In render item return TouchableHighlight and give onPress event to it. When you try to swipe it will trigger the onPress function as well.
Environment (please complete the following information):
just control opacity different for tap and swipe....
can you give more details on how I can handle the opacity for tap and swipe?
Hi @mohitmishra22 can you confirm you have set up your Touchable exactly in this way:
I do not see the onPress triggered when I swipe the row
Also see this note please: https://github.com/jemise111/react-native-swipe-list-view#note
If you have any other info that would be very helpful
I'm having a similar problem. I'm not using TouchableOpacity, I'm using TouchableHighlight. When I swipe the onPress for the Touchable is firing.
I experienced this - it turned out I was importing TouchableHighlight/TouchableOpacity from react-native-gesture-handler. Importing from 'react-native' solved it.
Closing as inactive, and possibly solved
Most helpful comment
I experienced this - it turned out I was importing TouchableHighlight/TouchableOpacity from react-native-gesture-handler. Importing from 'react-native' solved it.