UNPKG

@ant-design/react-native

Version:

基于蚂蚁金服移动设计规范的 React Native 组件库

66 lines (65 loc) 2.06 kB
import React from 'react'; type UltimateListViewProps = { initialNumToRender?: any; horizontal?: any; firstLoader?: any; scrollEnabled?: any; enableEmptySections?: any; header?: any; paginationFetchingView?: any; paginationAllLoadedView?: any; paginationWaitingView?: any; emptyView?: any; separator?: any; refreshable?: any; refreshableMode?: any; refreshableTitle?: any; refreshableColors?: any; refreshableProgressBackgroundColor?: any; refreshableSize?: any; refreshableTintColor?: any; customRefreshControl?: any; refreshableTitlePull?: any; refreshableTitleRefreshing?: any; refreshableTitleRelease?: any; customRefreshView?: any; displayDate?: any; dateFormat?: any; dateTitle?: any; arrowImageSource?: any; arrowImageStyle?: any; refreshViewStyle?: any; dateStyle?: any; refreshViewHeight?: any; pagination?: any; autoPagination?: any; allLoadedText?: any; spinnerColor?: any; fetchingSpinnerSize?: any; waitingSpinnerSize?: any; waitingSpinnerText?: any; paginationBtnText?: any; numColumns?: any; }; export interface ListViewProps<T> extends UltimateListViewProps { children?: React.ReactNode; onFetch: (currentPage: number, startFetch: (rows: T[], limit: number) => any, abortFetch: () => void) => void; renderItem: (item: T, index: number, separators: { highlight: () => void; unhighlight: () => void; updateProps: (select: 'leading' | 'trailing', newProps: any) => void; }) => React.ReactElement<any> | null; numColumns?: number; keyExtractor?: (item: T, index: number) => string; } export interface ListViewState { } declare class ListView<T> extends React.PureComponent<ListViewProps<T>, ListViewState> { static contextType: React.Context<import("../locale-provider").LocaleContextProps | undefined>; ulv: { refresh: () => void; }; refresh: () => void; render(): React.JSX.Element; } export default ListView;