diff --git a/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.h b/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.h index 7473c01a8b25..de533570ea60 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.h +++ b/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.h @@ -148,7 +148,7 @@ typedef void (^RCTLoadSourceForBridgeBlock)(RCTBridge *bridge, RCTSourceLoadBloc @property (nonatomic, nullable) RCTExtraLazyModuleClassesForBridge extraLazyModuleClassesForBridge; /** - * The bridge will call this block when a module been called from JS + * The bridge will call this block when a module has been called from JS * cannot be found among registered modules. * It should return YES if the module with name 'moduleName' was registered * in the implementation, and the system must attempt to look for it again among registered. @@ -173,11 +173,11 @@ typedef void (^RCTLoadSourceForBridgeBlock)(RCTBridge *bridge, RCTSourceLoadBloc #pragma mark - RCTRootViewFactory /** - * The RCTRootViewFactory is an utility class that encapsulates the logic of creating a new RCTRootView based on the + * The RCTRootViewFactory is a utility class that encapsulates the logic of creating a new RCTRootView based on the * current state of the environment. It allows you to initialize your app root view for old architecture, new - * architecture and bridgless mode. + * architecture and bridgeless mode. * - * This class is used to initalize rootView in RCTAppDelegate, but you can also use it separately. + * This class is used to initialize rootView in RCTAppDelegate, but you can also use it separately. * * Create a new instance of this class (make sure to retain it) and call the * `viewWithModuleName:initialProperties:launchOptions` method to create new RCTRootView. @@ -194,7 +194,7 @@ typedef void (^RCTLoadSourceForBridgeBlock)(RCTBridge *bridge, RCTSourceLoadBloc - (instancetype)initWithConfiguration:(RCTRootViewFactoryConfiguration *)configuration; - (instancetype)initWithTurboModuleDelegate:(id)turboModuleManagerDelegate - hostDelegate:(id)hostdelegate + hostDelegate:(id)hostDelegate configuration:(RCTRootViewFactoryConfiguration *)configuration; /** diff --git a/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm b/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm index 55b0a269848e..4eaecb0b46ef 100644 --- a/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm +++ b/packages/react-native/Libraries/AppDelegate/RCTRootViewFactory.mm @@ -103,12 +103,12 @@ @implementation RCTRootViewFactory { } - (instancetype)initWithTurboModuleDelegate:(id)turboModuleManagerDelegate - hostDelegate:(id)hostdelegate + hostDelegate:(id)hostDelegate configuration:(RCTRootViewFactoryConfiguration *)configuration { if (self = [super init]) { _configuration = configuration; - _hostDelegate = hostdelegate; + _hostDelegate = hostDelegate; _contextContainer = std::make_shared(); _turboModuleManagerDelegate = turboModuleManagerDelegate; }