Skip to content

[General] Change Touchable callback order#4126

Merged
j-piasecki merged 2 commits intomainfrom
@jpiasecki/touchable-event-order
Apr 28, 2026
Merged

[General] Change Touchable callback order#4126
j-piasecki merged 2 commits intomainfrom
@jpiasecki/touchable-event-order

Conversation

@j-piasecki
Copy link
Copy Markdown
Member

Description

Since #4116 is closed, this backports the part that changed the callback ordering.

Test plan

Verify that the order is onPressIn -> onPressOut -> onPress.

Co-authored-by: Copilot <copilot@github.com>
Copilot AI review requested due to automatic review settings April 28, 2026 08:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Backports the Touchable callback ordering change so that onPress is fired after onPressOut by moving onPress invocation into onFinalize.

Changes:

  • Removed onDeactivate handler and the onDeactivate prop wiring.
  • Invoked onPress from onFinalize after onPressOut when appropriate.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/react-native-gesture-handler/src/v3/components/Touchable/Touchable.tsx Outdated
Comment thread packages/react-native-gesture-handler/src/v3/components/Touchable/Touchable.tsx Outdated
@j-piasecki j-piasecki requested a review from m-bert April 28, 2026 08:09
@j-piasecki j-piasecki merged commit 5a847d1 into main Apr 28, 2026
3 checks passed
@j-piasecki j-piasecki deleted the @jpiasecki/touchable-event-order branch April 28, 2026 08:47
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.

3 participants