@@ -54,7 +54,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
54
54
if (self.newArchEnabled || self.fabricEnabled ) {
55
55
[RCTComponentViewFactory currentComponentViewFactory ].thirdPartyFabricComponentsProvider = self;
56
56
}
57
- [self _logWarnIfCreateRootViewWithBridgeIsOverridden ];
58
57
[self customizeRootView: (RCTRootView *)rootView];
59
58
60
59
self.window = [[UIWindow alloc ] initWithFrame: [UIScreen mainScreen ].bounds];
@@ -96,21 +95,6 @@ - (UIView *)createRootViewWithBridge:(RCTBridge *)bridge
96
95
return rootView;
97
96
}
98
97
99
- // TODO T173939093 - Remove _logWarnIfCreateRootViewWithBridgeIsOverridden after 0.74 is cut
100
- - (void )_logWarnIfCreateRootViewWithBridgeIsOverridden
101
- {
102
- SEL selector = @selector (createRootViewWithBridge:moduleName:initProps: );
103
- IMP baseClassImp = method_getImplementation (class_getInstanceMethod ([RCTAppDelegate class ], selector));
104
- IMP currentClassImp = method_getImplementation (class_getInstanceMethod ([self class ], selector));
105
- if (currentClassImp != baseClassImp) {
106
- NSString *warnMessage =
107
- @" If you are using the `createRootViewWithBridge` to customize the root view appearence,"
108
- " for example to set the backgroundColor, please migrate to `customizeRootView` method.\n "
109
- " The `createRootViewWithBridge` method is not invoked in bridgeless." ;
110
- RCTLogWarn (@" %@ " , warnMessage);
111
- }
112
- }
113
-
114
98
- (UIViewController *)createRootViewController
115
99
{
116
100
return [UIViewController new ];
0 commit comments