Pressable does not have onHoverIn/onHoverOut props, while Pressability does #32406
Labels
Needs: Triage 🔍
p: Microsoft
Partner: Microsoft
Partner
Resolution: Locked
This issue was locked by the bot.
Several desktop forks (
react-native-macos
,react-native-windows
,react-native-web
) support mouse events, and while the stock Pressable component has the ability to support mouse events, it seems we aren't forwarding some props properly from Pressable -> Pressability.Pressability will calculate onMouseEnter / onMouseLeave event handlers based on the
onHoverIn/onHoverOut
callbacks passed into PressabilityConfig.react-native/Libraries/Pressability/Pressability.js
Line 552 in ad0d453
However, Pressable does not pass take in onHoverIn/onHoverOut props to pass to PressabilityConfig, so we can't take advantage of this functionality.
I made PR #32405 to address the issue. I created this bug meanwhile to track this issue
The text was updated successfully, but these errors were encountered: