Skip to content

Commit 1081ca1

Browse files
authored
Deprecate combineTransition (#6161)
## Summary The `combineTransition` method doesn't seem to be necessary. It doesn't add any additional logic, duplicates the public API, and misleadingly suggests that `combineTransition` and `EntryExitTransition` are distinct entities. In fact, it has even been removed from the documentation page [here](#6144).
1 parent 527d9ef commit 1081ca1

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

packages/react-native-reanimated/src/layoutReanimation/defaultTransitions/EntryExitTransition.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,8 @@ export class EntryExitTransition
248248
}
249249

250250
/**
251-
* Lets you combine two layout animations into a layout transition. You can modify the behavior by chaining methods like `.delay(500)`.
252-
*
253-
* @param exiting - Layout animation used when components are removed from layout (eg. `FadeOut`).
254-
* @param entering - Layout animation used when components are added to layout (eg. `FadeIn`).
255-
* @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).
256-
* @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-transitions#combine-transition
251+
* @deprecated Please use `EntryExitTransition.entering(entering).exiting(exiting)` instead.
252+
* @see https://docs.swmansion.com/react-native-reanimated/docs/layout-animations/layout-transitions
257253
*/
258254
export function combineTransition(
259255
exiting: BaseAnimationBuilder | typeof BaseAnimationBuilder,

0 commit comments

Comments
 (0)