You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix Pressable's onPress being called on cancellation (#3678)
## Description
This PR fixes the `Pressable`'s `onPress` callback being called despite
the press being cancelled.
Credit for finding and fixing this issue goes to @gigobyte.
Fixes#3609
## Test plan
- Run the following example:
https://gist.github.com/gigobyte/5d1d0bf9e5f188f6590210a21fc6eb3a
- Swipe the pink `Pressable` to the right.
- Before this PR, the `onPress` callback would be called without the
finger being lifted.
- Since this PR, the `onPress` is no longer called when the finger isn't
lifted.
0 commit comments