UNPKG

react-pull-to-refresh

Version:
15 lines (12 loc) 478 B
import { HTMLAttributes, ReactNode } from 'react'; interface ReactPullToRefreshProps extends HTMLAttributes<HTMLDivElement> { onRefresh: () => Promise<void>; icon?: ReactNode; loading?: ReactNode; disabled?: boolean; distanceToRefresh?: number; resistance?: number; hammerOptions?: HammerOptions; } declare function ReactPullToRefresh(props: ReactPullToRefreshProps): JSX.Element; export { ReactPullToRefreshProps, ReactPullToRefresh as default };