UNPKG

@sdcx/pull-to-refresh

Version:
24 lines (23 loc) 1.13 kB
import { Component, ReactNode } from 'react'; import { ViewProps } from 'react-native'; import { PullToRefreshOffsetChangedEvent, PullToRefreshStateChangedEvent } from '../types'; interface NativePullToRefreshFooterProps extends ViewProps { onRefresh?: () => void; onStateChanged?: (event: PullToRefreshStateChangedEvent) => void; onOffsetChanged?: (event: PullToRefreshOffsetChangedEvent) => void; refreshing: boolean; noMoreData?: boolean; manual?: boolean; } declare const NativePullToRefreshFooter: import("react-native").HostComponent<NativePullToRefreshFooterProps>; type NativePullToRefreshFooterInstance = InstanceType<typeof NativePullToRefreshFooter>; declare class PullToRefreshFooter extends Component<NativePullToRefreshFooterProps> { _nativeRef: NativePullToRefreshFooterInstance | null; _lastNativeRefreshing: boolean; _onRefresh: () => void; _setNativeRef: (ref: NativePullToRefreshFooterInstance) => void; componentDidMount(): void; componentDidUpdate(prevProps: NativePullToRefreshFooterProps): void; render(): ReactNode; } export { PullToRefreshFooter };