Enumeration VisibilityOffset

A hook that monitors the visibility of a native React component within the viewport. It tracks the dimensions of the target component and determines if it's visible based on a given offset. If no offset is provided, full visibility is required.

Callback that fires when the visibility status of the component changes.

Configuration options to determine when visibility is triggered.

Boolean to control whether visibility checks should continue.

A ref that should be attached to the component being observed.

const viewRef = useVisibilitySensor(isVisible => console.log(isVisible), { visibilityOffset: VisibilityOffset.PARTIAL });
<View ref={viewRef} />

Enumeration Members

Enumeration Members

FULL
MINIMAL
PARTIAL