import type { ComponentClass, ComponentType, FunctionComponent } from 'react'; import '../layoutReanimation/animationsManager'; import type { AnimateProps } from '../helperTypes'; import type { AnimatedComponentRef } from './commonTypes'; import type { FlatList, FlatListProps } from 'react-native'; type Options
= { setNativeProps: (ref: AnimatedComponentRef, props: P) => void; }; /** * Lets you create an Animated version of any React Native component. * * @param component - The component you want to make animatable. * @returns A component that Reanimated is capable of animating. * @see https://docs.swmansion.com/react-native-reanimated/docs/core/createAnimatedComponent */ export declare function createAnimatedComponent
(component: FunctionComponent
, options?: Options
): FunctionComponent (component: ComponentClass , options?: Options ): ComponentClass (component: ComponentType , options?: Options ): FunctionComponent