react-native-paper
react-native-paper copied to clipboard
TouchableRipple onLongPress doesn't work
Current behaviour
onLongPress doesn't work when passed as a prop to TouchableRipple
Expected behaviour
onLongPress is executed, as specified by your documentation
Code sample
The snack is for RNP v4, but this issue also occurs on v5 https://snack.expo.dev/@haydenbriese/touchableripple---onlongpress
Screenshots (if applicable)
What have you tried
Your Environment
| software | version |
|---|---|
| ios or android | |
| react-native | 0.68.2 |
| react-native-paper | 4.12.4 |
| node | |
| npm or yarn | |
| expo sdk | 45.0.6 |
Couldn't find version numbers for the following packages in the issue:
react-native-vector-iconsnpmyarnexpo
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
react-native(found:0.68.2, latest:0.69.4)
Can you verify that the issue still exists after upgrading to the latest versions of these packages?
As far as I know, there is a need to pass also onPress to make onLongPress work properly.
@lukewalczak Thank you, I will use that in the meantime.
I think that it shouldn't work in that way, so will investigate the problem.