HoverObserver đ
Last updated
Was this helpful?
Last updated
Was this helpful?
A React component that notifies its children of hover interactions.
Initial code taken from: .
prop
type
required
default
description
hoverDelayInMs
number
no
0
Milliseconds to delay hover trigger.
hoverOffDelayInMs
number
no
0
Milliseconds to delay hover-off trigger.
onHoverChanged
(HoverObserverState) => void
no
-
Called with named argument isHovering when isHovering is set or unset.
onMouseEnter
Function
no
-
Defaults to set isHovering.
onMouseLeave
Function
no
-
Defaults to unsetting isHovering.
onMouseOver
Function
no
-
onMouseOut
Function
no
-
children
ReactNode | (HoverObserverState) => ReactNode
no
-
testID
string
no
-
Used to locate this view in end-to-end tests.