Custom ref handle returned by VirtualList that exposes imperative methods

Use React.useRef<VirtualListProxy>(null) to create a ref.

interface VirtualListProxy {
    get offset(): number;
    scrollTo(offset: number): void;
    scrollToItem(index: number, option?: ScrollToOption): void;
}

Accessors

Methods

Accessors

Methods