Try to fix iOS launch crash

This commit is contained in:
Zhiyuan Zheng 2022-05-10 22:04:59 +02:00
parent 56887fec85
commit 67f1513829
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@
bridge.surfacePresenter = _bridgeAdapter.surfacePresenter;
#endif
UIView *rootView = RCTAppSetupDefaultRootView(bridge, @"main", nil);
UIView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"main" initialProperties:nil];
if (@available(iOS 13.0, *)) {
rootView.backgroundColor = [UIColor colorNamed:@"SplashScreenBackgroundColor"];