UNPKG

antd-mobile

Version:
26 lines (25 loc) 799 B
import type { FC, ReactNode } from 'react'; export declare type PullStatus = 'pulling' | 'canRelease' | 'refreshing' | 'complete'; export declare type PullToRefreshProps = { onRefresh?: () => Promise<any>; pullingText?: ReactNode; canReleaseText?: ReactNode; refreshingText?: ReactNode; completeText?: ReactNode; completeDelay?: number; headHeight?: number; threshold?: number; disabled?: boolean; renderText?: (status: PullStatus) => ReactNode; children?: ReactNode; }; export declare const defaultProps: { pullingText: string; canReleaseText: string; refreshingText: string; completeText: string; completeDelay: number; disabled: boolean; onRefresh: () => void; }; export declare const PullToRefresh: FC<PullToRefreshProps>;