UNPKG

1.66 kBTypeScriptView Raw
1import type { LayoutAnimationFunction, LayoutAnimationType } from './layoutReanimation';
2import type { ProgressAnimationCallback, SharedTransitionAnimationsFunction } from './layoutReanimation/animationBuilder/commonTypes';
3/**
4 * Lets you update the current configuration of the layout animation or shared
5 * element transition for a given component. Configurations are batched and
6 * applied at the end of the current execution block, right before sending the
7 * response back to native.
8 *
9 * @param viewTag - The tag of the component you'd like to configure.
10 * @param type - The type of the animation you'd like to configure -
11 * {@link LayoutAnimationType}.
12 * @param config - The animation configuration - {@link LayoutAnimationFunction},
13 * {@link SharedTransitionAnimationsFunction}, {@link ProgressAnimationCallback}
14 * or {@link Keyframe}. Passing `undefined` will remove the animation.
15 * @param sharedTransitionTag - The tag of the shared element transition you'd
16 * like to configure. Passing `undefined` will remove the transition.
17 * @param isUnmounting - Determines whether the configuration should be included
18 * at the end of the batch, after all the non-deferred configurations (even
19 * those that were updated later). This is used to retain the correct ordering
20 * of shared elements. Defaults to `false`.
21 */
22export declare let updateLayoutAnimations: (viewTag: number, type: LayoutAnimationType, config?: Keyframe | LayoutAnimationFunction | SharedTransitionAnimationsFunction | ProgressAnimationCallback, sharedTransitionTag?: string, isUnmounting?: boolean) => void;
23//# sourceMappingURL=UpdateLayoutAnimations.d.ts.map
\No newline at end of file