useHover
Track hover state and spread handlers that satisfy both React Native's hover props and the DOM's mouse events.
useHover returns [hovered, handlers]. Handlers cover both RN's onHoverIn / onHoverOut and DOM's onMouseEnter / onMouseLeave, so they spread cleanly onto a <Pressable> or <View> regardless of platform. <ListGroup.Item> uses this hook for its hover background.</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources