react-native-paper icon indicating copy to clipboard operation
react-native-paper copied to clipboard

TouchableRipple onLongPress doesn't work

Open hbriese opened this issue 3 years ago • 4 comments

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

hbriese avatar Aug 09 '22 02:08 hbriese

Couldn't find version numbers for the following packages in the issue:

  • react-native-vector-icons
  • npm
  • yarn
  • expo

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?

github-actions[bot] avatar Aug 09 '22 02:08 github-actions[bot]

As far as I know, there is a need to pass also onPress to make onLongPress work properly.

lukewalczak avatar Aug 09 '22 07:08 lukewalczak

@lukewalczak Thank you, I will use that in the meantime.

hbriese avatar Aug 09 '22 11:08 hbriese

I think that it shouldn't work in that way, so will investigate the problem.

lukewalczak avatar Aug 09 '22 11:08 lukewalczak