UNPKG

1.13 kBTypeScriptView Raw
1import type { BaseAnimationBuilder } from '../animationBuilder';
2import { ComplexAnimationBuilder } from '../animationBuilder';
3import type { ILayoutAnimationBuilder, LayoutAnimationFunction } from '../animationBuilder/commonTypes';
4/**
5 * Linearly transforms the layout from one position to another. You can modify
6 * the behavior by chaining methods like `.springify()` or `.duration(500)`.
7 *
8 * You pass it to the `layout` prop on [an Animated
9 * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component).
10 *
11 * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-transitions#linear-transition
12 */
13export declare class LinearTransition extends ComplexAnimationBuilder implements ILayoutAnimationBuilder {
14 static presetName: string;
15 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
16 build: () => LayoutAnimationFunction;
17}
18/** @deprecated Please use {@link LinearTransition} instead. */
19export declare const Layout: typeof LinearTransition;
20//# sourceMappingURL=LinearTransition.d.ts.map
\No newline at end of file