diff --git a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate+Protected.h b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate+Protected.h index e74c9c8b43207d..129504ff4c3e3d 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate+Protected.h +++ b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate+Protected.h @@ -4,9 +4,12 @@ * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ +#if defined(__cplusplus) #import #import "RCTAppDelegate.h" @interface RCTAppDelegate () @end + +#endif diff --git a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm index f4ea71c1c896b8..dfd4e5217207ee 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm +++ b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm @@ -7,41 +7,28 @@ #import "RCTAppDelegate.h" #import -#import #import #import #import #import #import -#import #import "RCTAppDelegate+Protected.h" #import "RCTAppSetupUtils.h" +#import #if RN_DISABLE_OSS_PLUGIN_HEADER #import #else #import #endif -#import #import #import -#import -#import -#import -#import #if USE_HERMES #import #else #import #endif -#import -#import -#import -#import #import -#import -#import -#import @interface RCTAppDelegate () @end diff --git a/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm b/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm index e8ebdefba1dc7e..c71ea624423433 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm +++ b/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm @@ -131,6 +131,7 @@ - (UIView *)viewWithModuleName:(NSString *)moduleName initWithSurface:surface sizeMeasureMode:RCTSurfaceSizeMeasureModeWidthExact | RCTSurfaceSizeMeasureModeHeightExact]; + surfaceHostingProxyRootView.backgroundColor = [UIColor systemBackgroundColor]; return surfaceHostingProxyRootView; }