Files
react-native/packages/react-native
Zeya Peng f81f73e5a0 Add ViewTransitionModule for enter/exit/share transitions (#55752)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/55752

Adds `ViewTransitionModule` - the native implementation of `UIManagerViewTransitionDelegate` that tracks view transition state and orchestrates enter/exit/share transitions.

The module:
- Captures layout metrics from root for participating views via `captureLayoutMetricsFromRoot`
- Manages view-transition-name registration (`applyViewTransitionName`, `cancelViewTransitionName`, `restoreViewTransitionName`)
- Detects transition type (enter/exit/share) based on old/new layout snapshots
- Orchestrates transition lifecycle via `startViewTransition`

Scheduler initializes the module when `viewTransitionEnabled` feature flag is enabled.

## Changelog:

[General] [Added] - ViewTransitionModule for React Native View Transitions

Reviewed By: sammy-SC

Differential Revision: D92537219

fbshipit-source-id: c6772394efaf6aaedbf4991b951d2eb03eaf2fba
2026-03-03 06:49:29 -08:00
..
2025-08-13 20:53:12 -07:00
…
2026-03-02 10:35:06 -08:00
…

Where is the template?

The React Native Template has moved from being shipping inside the react-native package to it's own package: @react-native-community/template.

Why has it moved?

The React Native Frameworks RFC0759 provides background information.

When was it moved?

The 0.75 release.