UNPKG

950 BTypeScriptView Raw
1import type { AnimatableValue, ReduceMotion } from '../commonTypes';
2type withDelayType = <T extends AnimatableValue>(delayMs: number, delayedAnimation: T, reduceMotion?: ReduceMotion) => T;
3/**
4 * An animation modifier that lets you start an animation with a delay.
5 *
6 * @param delayMs - Duration (in milliseconds) before the animation starts.
7 * @param nextAnimation - The animation to delay.
8 * @param reduceMotion - Determines how the animation responds to the device's
9 * reduced motion accessibility setting. Default to `ReduceMotion.System` -
10 * {@link ReduceMotion}.
11 * @returns An [animation
12 * object](https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/glossary#animation-object)
13 * which holds the current state of the animation.
14 * @see https://docs.swmansion.com/react-native-reanimated/docs/animations/withDelay
15 */
16export declare const withDelay: withDelayType;
17export {};
18//# sourceMappingURL=delay.d.ts.map
\No newline at end of file