UNPKG

1.23 kBTypeScriptView Raw
1import React, { Component } from 'react';
2import type { ReactNode } from 'react';
3export declare const SkipEnteringContext: React.Context<React.MutableRefObject<boolean> | null>;
4interface LayoutAnimationConfigProps {
5 skipEntering?: boolean;
6 skipExiting?: boolean;
7 children: ReactNode;
8}
9/**
10 * A component that lets you skip entering and exiting animations.
11 *
12 * @param skipEntering - A boolean indicating whether children's entering
13 * animations should be skipped when `LayoutAnimationConfig` is mounted.
14 * @param skipExiting - A boolean indicating whether children's exiting
15 * animations should be skipped when LayoutAnimationConfig is unmounted.
16 * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-animation-config/
17 */
18export declare class LayoutAnimationConfig extends Component<LayoutAnimationConfigProps> {
19 getMaybeWrappedChildren(): string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.JSX.Element[] | null | undefined;
20 setShouldAnimateExiting(): void;
21 componentWillUnmount(): void;
22 render(): ReactNode;
23}
24export {};
25//# sourceMappingURL=LayoutAnimationConfig.d.ts.map
\No newline at end of file