UNPKG

react-native-smooth-scroll

Version:

react-native-smooth-scroll is a React Native library that enhances scrolling experiences by providing smooth, frictionless, and customizable scrolling for lists and views. It improves performance and usability, ensuring seamless gestures and animations fo

16 lines (15 loc) 521 B
import React from 'react'; import { FlatListProps, ListRenderItem, StyleProp, ViewStyle } from 'react-native'; export interface InfiniteScrollProps<T> extends FlatListProps<T> { data: T[]; renderItem: ListRenderItem<T>; keyExtractor: (item: T, index: number) => string; loadMore: () => Promise<void>; hasMore: boolean; loaderComponent?: React.ReactNode; listEmptyComponent?: React.ReactNode; onRefresh?: () => void; isRefreshing?: boolean; error?: string | null; errorComponent?: React.ReactNode; }