1
0
mirror of https://github.com/tooot-app/app synced 2025-01-13 18:07:48 +01:00

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

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"];