UNPKG

1.42 kBTypeScriptView Raw
1import type { ILayoutAnimationBuilder, LayoutAnimationFunction } from '../animationBuilder/commonTypes';
2import { BaseAnimationBuilder } from '../animationBuilder';
3export declare class EntryExitTransition extends BaseAnimationBuilder implements ILayoutAnimationBuilder {
4 static presetName: string;
5 enteringV: BaseAnimationBuilder | typeof BaseAnimationBuilder;
6 exitingV: BaseAnimationBuilder | typeof BaseAnimationBuilder;
7 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
8 static entering(animation: BaseAnimationBuilder | typeof BaseAnimationBuilder): EntryExitTransition;
9 entering(animation: BaseAnimationBuilder | typeof BaseAnimationBuilder): EntryExitTransition;
10 static exiting(animation: BaseAnimationBuilder | typeof BaseAnimationBuilder): EntryExitTransition;
11 exiting(animation: BaseAnimationBuilder | typeof BaseAnimationBuilder): EntryExitTransition;
12 build: () => LayoutAnimationFunction;
13}
14/**
15 * @deprecated Please use
16 * `EntryExitTransition.entering(entering).exiting(exiting)` instead.
17 * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-transitions
18 */
19export declare function combineTransition(exiting: BaseAnimationBuilder | typeof BaseAnimationBuilder, entering: BaseAnimationBuilder | typeof BaseAnimationBuilder): EntryExitTransition;
20//# sourceMappingURL=EntryExitTransition.d.ts.map
\No newline at end of file