Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RadioButton.Item does not take onLongPress #4214

Closed
ondrejnedoma opened this issue Dec 5, 2023 · 0 comments · Fixed by #4215
Closed

RadioButton.Item does not take onLongPress #4214

ondrejnedoma opened this issue Dec 5, 2023 · 0 comments · Fixed by #4215

Comments

@ondrejnedoma
Copy link
Contributor

Current behaviour

When an "onLongPress" prop is passed to RadioButton.Item, it is ignored and the function inside the prop does not run on a long press.

Expected behaviour

The onLongPress event would be passed to the TouchableRipple component under the hood.

How to reproduce?

Create a RadioButton.Item component and pass it the onLongPress prop and verify that the function does not fire.

What have you tried so far?

I tried wrapping the RadioButton.Item with a TouchableWithoutFeedback element, but that did not do anything.

Your Environment

software version
ios x
android 13
react-native 0.72.7
react-native-paper 5.11.1
node 18.17.1
npm or yarn npm 9.6.7
expo sdk x.x.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants