@samitouri / QOS-React / commits / 1ddff43c41

Add null check before calling fabricSuspendOnActiveViewTransition (#36310)

## Summary - Adds a null check before calling `fabricSuspendOnActiveViewTransition()` in the Fabric renderer's `suspendOnActiveViewTransition` export - Prevents crashes on hosts where `nativeFabricUIManager` does not yet implement `suspendOnActiveViewTransition` ## Test plan - Verified the change compiles correctly - Hosts with `suspendOnActiveViewTransition` implemented continue to work as before - Hosts without `suspendOnActiveViewTransition` no longer crash when view transitions are active

Zeya Peng committed Apr 17, 2026 at 13:21 UTC 1ddff43c41147b880c22eb363e07aade5a71c5d9
1 file changed +3 -1
packages/react-native-renderer/src/ReactFiberConfigFabric.js
+3 -1
@@ -657,7 +657,9 @@ export function suspendOnActiveViewTransition(
657 state: SuspendedState,
658 container: Container,
659 ): void {
660 - fabricSuspendOnActiveViewTransition();
660 + if (fabricSuspendOnActiveViewTransition != null) {
661 + fabricSuspendOnActiveViewTransition();
662 + }
663 }
664
665 export function waitForCommitToBeReady(