UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

165 lines • 7.8 kB
import type { AnimationConfigFunction, EntryExitAnimationFunction, ExitAnimationsValues, IEntryExitAnimationBuilder } from '../../commonTypes'; import type { BaseAnimationBuilder } from '../animationBuilder'; import { ComplexAnimationBuilder } from '../animationBuilder'; import type { TransformsConfig, TranslateX, TranslateY } from './types'; /** * Fade in animation. You can modify the behavior by chaining methods like * `.springify()` or `.duration(500)`. * * You pass it to the `entering` prop on [an Animated * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). * * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade */ export declare class FadeIn extends ComplexAnimationBuilder<{ opacity: number; }> implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => EntryExitAnimationFunction; } /** * Fade from right animation. You can modify the behavior by chaining methods * like `.springify()` or `.duration(500)`. * * You pass it to the `entering` prop on [an Animated * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). * * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade */ export declare class FadeInRight extends ComplexAnimationBuilder<{ opacity: number; } & TransformsConfig<[TranslateX]>> implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => EntryExitAnimationFunction; } /** * Fade from left animation. You can modify the behavior by chaining methods * like `.springify()` or `.duration(500)`. * * You pass it to the `entering` prop on [an Animated * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). * * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade */ export declare class FadeInLeft extends ComplexAnimationBuilder<{ opacity: number; } & TransformsConfig<[TranslateX]>> implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => EntryExitAnimationFunction; } /** * Fade from top animation. You can modify the behavior by chaining methods like * `.springify()` or `.duration(500)`. * * You pass it to the `entering` prop on [an Animated * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). * * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade */ export declare class FadeInUp extends ComplexAnimationBuilder<{ opacity: number; } & TransformsConfig<[TranslateY]>> implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => EntryExitAnimationFunction; } /** * Fade from bottom animation. You can modify the behavior by chaining methods * like `.springify()` or `.duration(500)`. * * You pass it to the `entering` prop on [an Animated * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). * * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade */ export declare class FadeInDown extends ComplexAnimationBuilder<{ opacity: number; } & TransformsConfig<[TranslateY]>> implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => EntryExitAnimationFunction; } /** * Fade out animation. You can modify the behavior by chaining methods like * `.springify()` or `.duration(500)`. * * You pass it to the `exiting` prop on [an Animated * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). * * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade */ export declare class FadeOut extends ComplexAnimationBuilder<{ opacity: number; }> implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => EntryExitAnimationFunction; } /** * Fade to right animation. You can modify the behavior by chaining methods like * `.springify()` or `.duration(500)`. * * You pass it to the `exiting` prop on [an Animated * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). * * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade */ export declare class FadeOutRight extends ComplexAnimationBuilder<{ opacity: number; } & TransformsConfig<[TranslateX]>> implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => EntryExitAnimationFunction; } /** * Fade to left animation. You can modify the behavior by chaining methods like * `.springify()` or `.duration(500)`. * * You pass it to the `exiting` prop on [an Animated * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). * * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade */ export declare class FadeOutLeft extends ComplexAnimationBuilder<{ opacity: number; } & TransformsConfig<[TranslateX]>> implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => EntryExitAnimationFunction; } /** * Fade to top animation. You can modify the behavior by chaining methods like * `.springify()` or `.duration(500)`. * * You pass it to the `exiting` prop on [an Animated * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). * * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade */ export declare class FadeOutUp extends ComplexAnimationBuilder<{ opacity: number; } & TransformsConfig<[TranslateY]>> implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => EntryExitAnimationFunction; } /** * Fade to bottom animation. You can modify the behavior by chaining methods * like `.springify()` or `.duration(500)`. * * You pass it to the `exiting` prop on [an Animated * component](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animated-component). * * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/entering-exiting-animations#fade */ export declare class FadeOutDown extends ComplexAnimationBuilder<{ opacity: number; } & TransformsConfig<[TranslateY]>> implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => AnimationConfigFunction<ExitAnimationsValues>; } //# sourceMappingURL=Fade.d.ts.map