UNPKG

3.08 kBTypeScriptView Raw
1import type { IEntryExitAnimationBuilder, EntryExitAnimationFunction } from '../animationBuilder/commonTypes';
2import type { BaseAnimationBuilder } from '../animationBuilder';
3import { ComplexAnimationBuilder } from '../animationBuilder';
4/**
5 * Stretch animation on the X axis. You can modify the behavior by chaining
6 * methods like `.springify()` or `.duration(500)`.
7 *
8 * You pass it to the `entering` 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/entering-exiting-animations/#stretch
12 */
13export declare class StretchInX extends ComplexAnimationBuilder implements IEntryExitAnimationBuilder {
14 static presetName: string;
15 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
16 build: () => EntryExitAnimationFunction;
17}
18/**
19 * Stretch animation on the Y axis. You can modify the behavior by chaining
20 * methods like `.springify()` or `.duration(500)`.
21 *
22 * You pass it to the `entering` prop on [an Animated
23 * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component).
24 *
25 * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#stretch
26 */
27export declare class StretchInY extends ComplexAnimationBuilder implements IEntryExitAnimationBuilder {
28 static presetName: string;
29 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
30 build: () => EntryExitAnimationFunction;
31}
32/**
33 * Stretch animation on the X axis. You can modify the behavior by chaining
34 * methods like `.springify()` or `.duration(500)`.
35 *
36 * You pass it to the `exiting` prop on [an Animated
37 * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component).
38 *
39 * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#stretch
40 */
41export declare class StretchOutX extends ComplexAnimationBuilder implements IEntryExitAnimationBuilder {
42 static presetName: string;
43 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
44 build: () => EntryExitAnimationFunction;
45}
46/**
47 * Stretch animation on the Y axis. You can modify the behavior by chaining
48 * methods like `.springify()` or `.duration(500)`.
49 *
50 * You pass it to the `exiting` prop on [an Animated
51 * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component).
52 *
53 * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations/#stretch
54 */
55export declare class StretchOutY extends ComplexAnimationBuilder implements IEntryExitAnimationBuilder {
56 static presetName: string;
57 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
58 build: () => EntryExitAnimationFunction;
59}
60//# sourceMappingURL=Stretch.d.ts.map
\No newline at end of file