UNPKG

react-native-masonry-grid

Version:
27 lines (26 loc) 1.19 kB
import React, { ReactElement } from 'react'; import { RefreshControlProps, ScrollViewProps, StyleProp, ViewStyle } from 'react-native'; interface Props extends ScrollViewProps { numColumns?: number; columnWrapperStyle: StyleProp<ViewStyle>; ListHeaderComponent?: React.ReactNode | React.ReactElement | null; ListEmptyComponent?: typeof React.Fragment | React.ReactElement | null; ListFooterComponent?: React.ReactNode | React.ReactElement | null; ListHeaderComponentStyle?: StyleProp<ViewStyle>; contentContainerStyle?: StyleProp<ViewStyle>; containerStyle?: StyleProp<ViewStyle>; loading?: boolean; onRefresh?: RefreshControlProps['onRefresh']; onEndReached?: () => void; keyExtractor?: ((item: any, index: number) => string) | undefined; onEndReachedThreshold?: number; style?: StyleProp<ViewStyle>; data: any[]; renderItem: ({ item, index }: { item: any; index: number; }) => ReactElement; LoadingView?: React.ReactNode | React.ReactElement | null; } declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<Props & React.RefAttributes<unknown>>>; export default _default;