Wire up startViewTransitionReadyFinished in Fabric (#36246)

## Summary
- Imports `startViewTransitionReadyFinished` from
`nativeFabricUIManager` in `ReactFiberConfigFabricWithViewTransition`
- Calls `fabricStartViewTransitionReadyFinished()` when the view
transition `ready` promise resolves

This is not a config function, but it's helpful to have it notify fabric
ViewTransition runtime when ready callback is done. Right now we're
testing animation kicked off from view transition event handlers, this
is signal to know when animations that belong to a transition have all
started.

## Test plan
- Existing Fabric renderer tests should continue to pass
- View transition ready callback now notifies the native module when
finished
This commit is contained in:
Zeya Peng
2026-04-16 16:41:05 -04:00
committed by GitHub
parent d7a36590e2
commit a63571a0fd
2 changed files with 3 additions and 0 deletions
@@ -19,6 +19,7 @@ import type {
const {
applyViewTransitionName: fabricApplyViewTransitionName,
startViewTransition: fabricStartViewTransition,
startViewTransitionReadyFinished: fabricStartViewTransitionReadyFinished,
} = nativeFabricUIManager;
export type InstanceMeasurement = {
@@ -251,6 +252,7 @@ export function startViewTransition(
transition.ready.then(() => {
spawnedWorkCallback();
fabricStartViewTransitionReadyFinished();
});
transition.finished.finally(() => {
+1
View File
@@ -217,5 +217,6 @@ declare const nativeFabricUIManager: {
finished: Promise<void>,
ready: Promise<void>,
},
startViewTransitionReadyFinished: () => void,
...
};