From f97354368ccdb5e72e5c233e90cd2a9755ffcf7f Mon Sep 17 00:00:00 2001 From: Emily Brown Date: Wed, 26 Nov 2025 13:11:26 -0800 Subject: [PATCH] Fix RCTDevLoadingView banner window sizing and interaction (#54702) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54702 Changelog: [iOS][Fixed] - Make rest of app responsive whilst dev loading banner present The dev loading banner window was previously full-screen height, making the entire screen unresponsive to touches even though only a small banner was visible. The window frame is now calculated after Auto Layout completes, ensuring it matches the actual content height (label + padding + safe area). This allows the rest of the screen below the banner to remain interactive. The banner now only blocks interactions within its actual bounds Reviewed By: vzaidman Differential Revision: D87922708 fbshipit-source-id: d46d05915b5d91e269f1a53bca2a8bbdffb3267a --- packages/react-native/React/CoreModules/RCTDevLoadingView.mm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/react-native/React/CoreModules/RCTDevLoadingView.mm b/packages/react-native/React/CoreModules/RCTDevLoadingView.mm index a0e67038028..db939adab8f 100644 --- a/packages/react-native/React/CoreModules/RCTDevLoadingView.mm +++ b/packages/react-native/React/CoreModules/RCTDevLoadingView.mm @@ -220,6 +220,9 @@ RCT_EXPORT_MODULE() } [NSLayoutConstraint activateConstraints:constraints]; + + [self->_window layoutIfNeeded]; + self->_window.frame = CGRectMake(0, 0, mainWindow.frame.size.width, self->_container.frame.size.height); }); }