From 36a69f0682fcf333ccf52314da4245244656638b Mon Sep 17 00:00:00 2001 From: Krzysztof Piaskowy Date: Mon, 24 Jun 2024 15:01:38 +0200 Subject: [PATCH] Deprecate combineTransition --- .../defaultTransitions/EntryExitTransition.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/react-native-reanimated/src/layoutReanimation/defaultTransitions/EntryExitTransition.ts b/packages/react-native-reanimated/src/layoutReanimation/defaultTransitions/EntryExitTransition.ts index fed432b3c97..403ecc68dd9 100644 --- a/packages/react-native-reanimated/src/layoutReanimation/defaultTransitions/EntryExitTransition.ts +++ b/packages/react-native-reanimated/src/layoutReanimation/defaultTransitions/EntryExitTransition.ts @@ -248,12 +248,8 @@ export class EntryExitTransition } /** - * Lets you combine two layout animations into a layout transition. You can modify the behavior by chaining methods like `.delay(500)`. - * - * @param exiting - Layout animation used when components are removed from layout (eg. `FadeOut`). - * @param entering - Layout animation used when components are added to layout (eg. `FadeIn`). - * @returns A custom layout transition. You pass it to the `layout` 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/layout-transitions#combine-transition + * @deprecated Please use `EntryExitTransition.entering(entering).exiting(exiting)` instead. + * @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-transitions */ export function combineTransition( exiting: BaseAnimationBuilder | typeof BaseAnimationBuilder,