Home / Function/ getViewTransitionClassName() — react Function Reference

getViewTransitionClassName() — react Function Reference

Architecture documentation for the getViewTransitionClassName() function in ReactFiberViewTransitionComponent.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  be70b440_45eb_ff76_0bc6_50898635623c["getViewTransitionClassName()"]
  d8bd6ba1_1cbe_86c2_6f2f_604c53e981b3["ReactFiberViewTransitionComponent.js"]
  be70b440_45eb_ff76_0bc6_50898635623c -->|defined in| d8bd6ba1_1cbe_86c2_6f2f_604c53e981b3
  a67e74d5_88de_0327_6aea_26a1818af45f["trackDeletedPairViewTransitions()"]
  a67e74d5_88de_0327_6aea_26a1818af45f -->|calls| be70b440_45eb_ff76_0bc6_50898635623c
  282c3969_f657_3d4a_7c17_9af393a5187a["trackEnterViewTransitions()"]
  282c3969_f657_3d4a_7c17_9af393a5187a -->|calls| be70b440_45eb_ff76_0bc6_50898635623c
  4d7237b6_d6aa_66af_1ea0_e984a1cd77c4["applyAppearingPairViewTransition()"]
  4d7237b6_d6aa_66af_1ea0_e984a1cd77c4 -->|calls| be70b440_45eb_ff76_0bc6_50898635623c
  e901b09e_6606_f374_768c_8c36e1bb4676["applyExitViewTransition()"]
  e901b09e_6606_f374_768c_8c36e1bb4676 -->|calls| be70b440_45eb_ff76_0bc6_50898635623c
  3d076554_3975_745b_8cf0_95fb957dfe27["applyNestedViewTransition()"]
  3d076554_3975_745b_8cf0_95fb957dfe27 -->|calls| be70b440_45eb_ff76_0bc6_50898635623c
  6e9b9423_2aa1_96c1_1185_f860250923b6["applyUpdateViewTransition()"]
  6e9b9423_2aa1_96c1_1185_f860250923b6 -->|calls| be70b440_45eb_ff76_0bc6_50898635623c
  ec4f9a6c_1d22_5fc6_c1b9_fba1f26b3cd8["getClassNameByType()"]
  be70b440_45eb_ff76_0bc6_50898635623c -->|calls| ec4f9a6c_1d22_5fc6_c1b9_fba1f26b3cd8
  style be70b440_45eb_ff76_0bc6_50898635623c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-reconciler/src/ReactFiberViewTransitionComponent.js lines 79–92

export function getViewTransitionClassName(
  defaultClass: ?ViewTransitionClass,
  eventClass: ?ViewTransitionClass,
): ?string {
  const className: ?string = getClassNameByType(defaultClass);
  const eventClassName: ?string = getClassNameByType(eventClass);
  if (eventClassName == null) {
    return className === 'auto' ? null : className;
  }
  if (eventClassName === 'auto') {
    return null;
  }
  return eventClassName;
}

Domain

Subdomains

Frequently Asked Questions

What does getViewTransitionClassName() do?
getViewTransitionClassName() is a function in the react codebase, defined in packages/react-reconciler/src/ReactFiberViewTransitionComponent.js.
Where is getViewTransitionClassName() defined?
getViewTransitionClassName() is defined in packages/react-reconciler/src/ReactFiberViewTransitionComponent.js at line 79.
What does getViewTransitionClassName() call?
getViewTransitionClassName() calls 1 function(s): getClassNameByType.
What calls getViewTransitionClassName()?
getViewTransitionClassName() is called by 6 function(s): applyAppearingPairViewTransition, applyExitViewTransition, applyNestedViewTransition, applyUpdateViewTransition, trackDeletedPairViewTransitions, trackEnterViewTransitions.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free