UNPKG

1.53 kBTypeScriptView Raw
1import React from 'react';
2import type { FlatListProps } from 'react-native';
3import { FlatList } from 'react-native';
4import type { ILayoutAnimationBuilder } from '../layoutReanimation/animationBuilder/commonTypes';
5import type { AnimatedProps } from '../helperTypes';
6declare const AnimatedFlatList: React.ComponentClass<import("../helperTypes").AnimateProps<FlatListProps<unknown>>, any>;
7interface ReanimatedFlatListPropsWithLayout<T> extends AnimatedProps<FlatListProps<T>> {
8 /**
9 * Lets you pass layout animation directly to the FlatList item. Works only
10 * with a single-column `Animated.FlatList`, `numColumns` property cannot be
11 * greater than 1.
12 */
13 itemLayoutAnimation?: ILayoutAnimationBuilder;
14 /**
15 * Lets you skip entering and exiting animations of FlatList items when on
16 * FlatList mount or unmount.
17 */
18 skipEnteringExitingAnimations?: boolean;
19 /** Property `CellRendererComponent` is not supported in `Animated.FlatList`. */
20 CellRendererComponent?: never;
21}
22export type FlatListPropsWithLayout<T> = ReanimatedFlatListPropsWithLayout<T>;
23interface AnimatedFlatListComplement<T> extends FlatList<T> {
24 getNode(): FlatList<T>;
25}
26export declare const ReanimatedFlatList: <ItemT = any>(props: ReanimatedFlatListPropsWithLayout<ItemT> & {
27 ref?: React.ForwardedRef<FlatList<any>> | undefined;
28}) => React.ReactElement;
29export type ReanimatedFlatList<T> = typeof AnimatedFlatList & AnimatedFlatListComplement<T>;
30export {};
31//# sourceMappingURL=FlatList.d.ts.map
\No newline at end of file