From 67f1513829baabc9b3a07c38b28f0066faa6c987 Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Tue, 10 May 2022 22:04:59 +0200 Subject: [PATCH] Try to fix iOS launch crash --- ios/tooot/AppDelegate.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/tooot/AppDelegate.mm b/ios/tooot/AppDelegate.mm index 85019cd2..b099d8b1 100644 --- a/ios/tooot/AppDelegate.mm +++ b/ios/tooot/AppDelegate.mm @@ -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"];