Files
react-native/packages/react-native/scripts
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
..