Pilates
    Preparing search index...

    Interface ScrollViewProps

    interface ScrollViewProps {
        children?: ReactNode;
        defaultScrollOffset?: number;
        height?: number | "auto";
        horizontal?: boolean;
        onScroll?: (offset: number, meta: ScrollMeta) => void;
        scrollEnabled?: boolean;
        scrollOffset?: number;
        scrollOnFocus?: boolean;
        stickToBottom?: boolean;
        stickToTop?: boolean;
        width?: number | "auto";
    }
    Index

    Properties

    children?: ReactNode
    defaultScrollOffset?: number

    Uncontrolled initial offset. Ignored when scrollOffset is set.

    height?: number | "auto"
    horizontal?: boolean
    onScroll?: (offset: number, meta: ScrollMeta) => void

    Fires whenever the offset changes.

    scrollEnabled?: boolean

    When false, disables built-in keyboard navigation (arrow keys, PgUp/PgDn, Home/End). Also removes this ScrollView from the Tab focus cycle. Default true.

    scrollOffset?: number

    Controlled scroll offset. If set, parent owns the value.

    scrollOnFocus?: boolean

    Default true; auto-scroll to keep focused descendants visible.

    stickToBottom?: boolean

    When content grows, auto-scroll to end. Pauses if user has scrolled away from bottom.

    stickToTop?: boolean

    When content grows, auto-scroll to start. Pauses if user has scrolled away from top.

    width?: number | "auto"