diff --git a/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.h b/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.h index 1926dd81747565..10e4e086271ff1 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.h +++ b/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.h @@ -152,6 +152,8 @@ typedef BOOL (^RCTBridgeDidNotFindModuleBlock)(RCTBridge *bridge, NSString *modu - (instancetype)initWithConfiguration:(RCTRootViewFactoryConfiguration *)configuration andTurboModuleManagerDelegate:(id)turboModuleManagerDelegate; +- (instancetype)initWithConfiguration:(RCTRootViewFactoryConfiguration *)configuration; + /** * This method can be used to create new RCTRootViews on demand. * diff --git a/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm b/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm index 6e93e4835f30d6..f76877a519a8c8 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm +++ b/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm @@ -113,6 +113,11 @@ - (instancetype)initWithConfiguration:(RCTRootViewFactoryConfiguration *)configu return self; } +- (instancetype)initWithConfiguration:(RCTRootViewFactoryConfiguration *)configuration +{ + return [self initWithConfiguration:configuration andTurboModuleManagerDelegate:nil]; +} + - (UIView *)viewWithModuleName:(NSString *)moduleName initialProperties:(NSDictionary *)initialProperties { return [self viewWithModuleName:moduleName initialProperties:initialProperties launchOptions:nil];