diff --git a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate+Protected.h b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate+Protected.h index e74c9c8b43207d..2321b43c4da971 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate+Protected.h +++ b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate+Protected.h @@ -5,8 +5,12 @@ * 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..64b9ccceca897a 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm +++ b/packages/react-native/Libraries/AppDelegate/RCTAppDelegate.mm @@ -7,13 +7,12 @@ #import "RCTAppDelegate.h" #import -#import #import #import #import #import +#import #import -#import #import "RCTAppDelegate+Protected.h" #import "RCTAppSetupUtils.h" @@ -22,26 +21,14 @@ #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; }