mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
0c392bc405
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