UNPKG

react-native-reanimated

Version:

More powerful alternative to Animated library for React Native.

52 lines (51 loc) 2.98 kB
import type { BaseAnimationBuilder } from '../animationBuilder'; import { ComplexAnimationBuilder } from '../animationBuilder'; import type { EntryExitAnimationFunction, IEntryExitAnimationBuilder } from '../animationBuilder/commonTypes'; /** * Roll 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#roll */ export declare class RollInLeft extends ComplexAnimationBuilder implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => EntryExitAnimationFunction; } /** * Roll 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#roll */ export declare class RollInRight extends ComplexAnimationBuilder implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => EntryExitAnimationFunction; } /** * Roll 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#roll */ export declare class RollOutLeft extends ComplexAnimationBuilder implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => EntryExitAnimationFunction; } /** * Roll 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#roll */ export declare class RollOutRight extends ComplexAnimationBuilder implements IEntryExitAnimationBuilder { static presetName: string; static createInstance<T extends typeof BaseAnimationBuilder>(this: T): InstanceType<T>; build: () => EntryExitAnimationFunction; }