Contentful Personalization & Analytics
    Preparing search index...

    Return value of the useViewportTracking hook.

    interface UseViewportTrackingReturn {
        isVisible: boolean;
        onLayout: (event: LayoutChangeEvent) => void;
    }
    Index

    Properties

    Properties

    isVisible: boolean

    Whether the tracked element is currently visible in the viewport.

    onLayout: (event: LayoutChangeEvent) => void

    Layout callback to attach to the tracked View's onLayout prop.