mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
d61a8b7bb8
Summary: In Fabric if you use a Pressable or PressableBackground and only provide an `onPress` but don't provide background color or anything else, the View might be flattened away and with it the event handlers. We assume that if the product engineer is using a Pressable, they want it to do something in the View hierarchy, so force it to never be flattened. Changelog: [Internal] Reviewed By: shergin Differential Revision: D22557026 fbshipit-source-id: 171c5b51e8d828fbb2816685d188286179a10af9