import type { FlatListProps, StyleProp, ViewStyle } from 'react-native'; import { FlatList } from 'react-native'; import type { AnimatedStyle, ILayoutAnimationBuilder } from '../commonTypes'; import type { AnimatedProps } from '../helperTypes'; declare const AnimatedFlatList: import("../createAnimatedComponent").AnimatedComponentType>, FlatList>; interface ReanimatedFlatListPropsWithLayout extends AnimatedProps> { /** * Lets you pass layout animation directly to the FlatList item. Works only * with a single-column `Animated.FlatList`, `numColumns` property cannot be * greater than 1. */ itemLayoutAnimation?: ILayoutAnimationBuilder; /** * Lets you skip entering and exiting animations of FlatList items when on * FlatList mount or unmount. */ skipEnteringExitingAnimations?: boolean; /** Property `CellRendererComponent` is not supported in `Animated.FlatList`. */ CellRendererComponent?: never; /** * Either animated view styles or a function that receives the item to be * rendered and its index and returns animated view styles. */ CellRendererComponentStyle?: StyleProp>> | (({ item, index, }: { item: T; index: number; }) => StyleProp>>) | undefined; } export type FlatListPropsWithLayout = ReanimatedFlatListPropsWithLayout; interface AnimatedFlatListComplement extends FlatList { getNode(): FlatList; } export declare const ReanimatedFlatList: (props: ReanimatedFlatListPropsWithLayout & { ref?: React.Ref; }) => React.ReactElement; export type ReanimatedFlatList = typeof AnimatedFlatList & AnimatedFlatListComplement; export {}; //# sourceMappingURL=FlatList.d.ts.map