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

feat: add onLongPress event to List.Accordion #2479

Merged
merged 2 commits into from
Jan 5, 2021

Conversation

ja-ka
Copy link
Contributor

@ja-ka ja-ka commented Jan 3, 2021

Summary
As List.Accordion uses TouchableRipple for onPress handling amongst other things it would be great to offer onLongPress support, too. Since TouchableRipple already offers onLongPress support, the function can simply be forwarded.

No additional handling as for the onPress event (expandable) is required since the onLongPress functionality should not interfere with the default behaviour of List.Accordion, but simply add more press event capabilities.

@callstack-bot
Copy link

Hey @ja-ka, thank you for your pull request 🤗. The documentation from this branch can be viewed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants