swipeable-component
Version:
Swipeable FlatList for React Native
16 lines (12 loc) • 490 B
text/typescript
import { ReactNode } from 'react';
import { FlatList, FlatListProps } from 'react-native';
import { SwipeableProps } from 'react-native-gesture-handler';
export interface SwipeableFlatListProps<T> extends FlatListProps<T> {
renderLeftActions?: (item: T) => ReactNode;
renderRightActions?: (item: T) => ReactNode;
swipeableProps?: SwipeableProps;
enableOpenMultipleRows?: boolean;
}
export interface SwipeableFlatListRef<T> extends FlatList<T> {
closeAnyOpenRows: () => void;
}