Skip to content

Commit

Permalink
fix(iOS): properly warn about createRootViewWithBridge
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Feb 23, 2024
1 parent d2128d0 commit a18663c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
}
rootView = [self createRootViewWithBridge:self.bridge moduleName:self.moduleName initProps:initProps];
}
[self _logWarnIfCreateRootViewWithBridgeIsOverridden];
[self customizeRootView:(RCTRootView *)rootView];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [self createRootViewController];
Expand Down Expand Up @@ -158,7 +159,6 @@ - (UIView *)createRootViewWithBridge:(RCTBridge *)bridge
moduleName:(NSString *)moduleName
initProps:(NSDictionary *)initProps
{
[self _logWarnIfCreateRootViewWithBridgeIsOverridden];
BOOL enableFabric = self.fabricEnabled;
UIView *rootView = RCTAppSetupDefaultRootView(bridge, moduleName, initProps, enableFabric);

Expand Down

0 comments on commit a18663c

Please sign in to comment.