UNPKG

861 BTypeScriptView Raw
1import type { AnimationCallback } from '../../commonTypes';
2import type { DecayConfig } from './utils';
3export type WithDecayConfig = DecayConfig;
4type withDecayType = (userConfig: DecayConfig, callback?: AnimationCallback) => number;
5/**
6 * Lets you create animations that mimic objects in motion with friction.
7 *
8 * @param config - The decay animation configuration - {@link DecayConfig}.
9 * @param callback - A function called upon animation completion -
10 * {@link AnimationCallback}.
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/withDecay
15 */
16export declare const withDecay: withDecayType;
17export {};
18//# sourceMappingURL=decay.d.ts.map
\No newline at end of file