Fix dark mode flashing

This commit is contained in:
Zhiyuan Zheng 2022-01-02 22:28:06 +01:00
parent a0dcbd050f
commit 22af0bf828
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ static void InitializeFlipper(UIApplication *application) {
RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions:launchOptions];
RCTRootView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"main" initialProperties:nil];
rootView.backgroundColor = [UIColor whiteColor];
rootView.backgroundColor = [UIColor colorNamed:@"SplashScreenBackgroundColor"];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [self.reactDelegate createRootViewController];
rootViewController.view = rootView;