UNPKG

@gorhom/bottom-sheet

Version:

A performant interactive bottom sheet with fully configurable options 🚀

21 lines (20 loc) • 647 B
import { RefObject } from 'react'; import { SCROLLABLE_STATE, SCROLLABLE_TYPE } from '../constants'; import type { ScrollableRef, Scrollable } from '../types'; export declare const useScrollable: () => { scrollableRef: RefObject<ScrollableRef>; animatedScrollableType: { value: SCROLLABLE_TYPE; }; animatedScrollableContentOffsetY: { value: number; }; animatedScrollableOverrideState: { value: SCROLLABLE_STATE; }; isScrollableRefreshable: { value: boolean; }; setScrollableRef: (ref: ScrollableRef) => void; removeScrollableRef: (ref: RefObject<Scrollable>) => void; };