Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RN: Fix TouchableHighlight w/o
onLongPress
Summary: When `TouchableHighlight` was migrated to use `Pressability`, a bug was introduced due to `onLongPress` being unconditionally supplied as a callback. This bug leads to `onPress` not firing if the element is pressed for longer than 500ms, even when `onLongPress` is not supplied. Closes #29040. Changelog: [General][Fixed] - TouchableHighlight fires `onPress` when pressed for >500ms, when `onLongPress` is not supplied. Reviewed By: TheSavior Differential Revision: D23664365 fbshipit-source-id: 3a0e92e276871eedd303888346a13433be15ac47
- Loading branch information