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
Zeya Peng committed
Apr 16, 2026 at 16:41 UTC
fe5160140d79ea023a9db6fbb914ed6c6b6ae0dd
2 files changed
+3
packages/react-native-renderer/src/ReactFiberConfigFabricWithViewTransition.js
+2
@@ -19,6 +19,7 @@ import type {
19
const {
20
applyViewTransitionName: fabricApplyViewTransitionName,
21
startViewTransition: fabricStartViewTransition,
22
+ startViewTransitionReadyFinished: fabricStartViewTransitionReadyFinished,
23
} = nativeFabricUIManager;
24
25
export type InstanceMeasurement = {
@@ -251,6 +252,7 @@ export function startViewTransition(
252
253
transition.ready.then(() => {
254
spawnedWorkCallback();
255
+ fabricStartViewTransitionReadyFinished();
256
});
257
258
transition.finished.finally(() => {
scripts/flow/react-native-host-hooks.js
+1
@@ -217,5 +217,6 @@ declare const nativeFabricUIManager: {
217
finished: Promise<void>,
218
ready: Promise<void>,
219
},
220
+ startViewTransitionReadyFinished: () => void,
221
...
222
};