UNPKG

6 kBTypeScriptView Raw
1import type { EntryAnimationsValues, ExitAnimationsValues, AnimationConfigFunction, IEntryAnimationBuilder, IExitAnimationBuilder } from '../animationBuilder/commonTypes';
2import type { BaseAnimationBuilder } from '../animationBuilder';
3import { ComplexAnimationBuilder } from '../animationBuilder';
4/**
5 * Slide from right animation. You can modify the behavior by chaining methods
6 * 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#slide
12 */
13export declare class SlideInRight extends ComplexAnimationBuilder implements IEntryAnimationBuilder {
14 static presetName: string;
15 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
16 build: () => AnimationConfigFunction<EntryAnimationsValues>;
17}
18/**
19 * Slide from left animation. You can modify the behavior by chaining methods
20 * 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#slide
26 */
27export declare class SlideInLeft extends ComplexAnimationBuilder implements IEntryAnimationBuilder {
28 static presetName: string;
29 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
30 build: () => AnimationConfigFunction<EntryAnimationsValues>;
31}
32/**
33 * Slide to right animation. You can modify the behavior by chaining methods
34 * 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#slide
40 */
41export declare class SlideOutRight extends ComplexAnimationBuilder implements IExitAnimationBuilder {
42 static presetName: string;
43 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
44 build: () => AnimationConfigFunction<ExitAnimationsValues>;
45}
46/**
47 * Slide to left animation. You can modify the behavior by chaining methods like
48 * `.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#slide
54 */
55export declare class SlideOutLeft extends ComplexAnimationBuilder implements IExitAnimationBuilder {
56 static presetName: string;
57 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
58 build: () => AnimationConfigFunction<ExitAnimationsValues>;
59}
60/**
61 * Slide from top animation. You can modify the behavior by chaining methods
62 * like `.springify()` or `.duration(500)`.
63 *
64 * You pass it to the `entering` prop on [an Animated
65 * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component).
66 *
67 * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#slide
68 */
69export declare class SlideInUp extends ComplexAnimationBuilder implements IEntryAnimationBuilder {
70 static presetName: string;
71 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
72 build: () => AnimationConfigFunction<EntryAnimationsValues>;
73}
74/**
75 * Slide from bottom animation. You can modify the behavior by chaining methods
76 * like `.springify()` or `.duration(500)`.
77 *
78 * You pass it to the `entering` prop on [an Animated
79 * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component).
80 *
81 * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#slide
82 */
83export declare class SlideInDown extends ComplexAnimationBuilder implements IEntryAnimationBuilder {
84 static presetName: string;
85 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
86 build: () => AnimationConfigFunction<EntryAnimationsValues>;
87}
88/**
89 * Slide to top animation. You can modify the behavior by chaining methods like
90 * `.springify()` or `.duration(500)`.
91 *
92 * You pass it to the `exiting` prop on [an Animated
93 * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component).
94 *
95 * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#slide
96 */
97export declare class SlideOutUp extends ComplexAnimationBuilder implements IExitAnimationBuilder {
98 static presetName: string;
99 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
100 build: () => AnimationConfigFunction<ExitAnimationsValues>;
101}
102/**
103 * Slide to bottom animation. You can modify the behavior by chaining methods
104 * like `.springify()` or `.duration(500)`.
105 *
106 * You pass it to the `exiting` prop on [an Animated
107 * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component).
108 *
109 * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#slide
110 */
111export declare class SlideOutDown extends ComplexAnimationBuilder implements IExitAnimationBuilder {
112 static presetName: string;
113 static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>;
114 build: () => AnimationConfigFunction<ExitAnimationsValues>;
115}
116//# sourceMappingURL=Slide.d.ts.map
\No newline at end of file