This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse the repository at this point in the history
Pressability: Consistently Fire
Summary: Currently any component using `Pressability` is quickly tapped and released (i.e. responder grant followed only by reponder release), we fire `onPressIn` and `onPressOut` immediately to ensure that any visual feedback for the interactive element is momentarily visible. Currently, we were mistakenly skipping this logic if `onPress` was null. This fixes it so that we fire `onPressIn` and `onPressOut` consistently, even if `onPress` is null. Changelog: [General][Fixed] - Pressability now consistently fires `onPressIn` and `onPressOut`, even without an `onPress`. Reviewed By: lunaleaps Differential Revision: D23613254 fbshipit-source-id: e316707cbb2a4814262dea4eb1ddf6e3780268d1
- Loading branch information
Showing 1 changed file with 5 additions and 5 deletions.