Skip to content

Commit

Permalink
add launchOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Kudo committed Apr 10, 2024
1 parent f4c2b1a commit b850ccd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ typedef BOOL (^RCTBridgeDidNotFindModuleBlock)(RCTBridge *bridge, NSString *modu

#pragma mark - RCTRootViewFactory Helpers

- (RCTHost *)createReactHost;
- (RCTHost *)createReactHost:(NSDictionary *)launchOptions;

@end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,10 @@ - (void)createReactHostIfNeeded:(NSDictionary *)launchOptions
if (self.reactHost) {
return;
}
self.reactHost = [self createReactHost];
self.reactHost = [self createReactHost:launchOptions];
}

- (RCTHost *)createReactHost
- (RCTHost *)createReactHost:(NSDictionary *)launchOptions
{
__weak __typeof(self) weakSelf = self;
RCTHost *reactHost = [[RCTHost alloc] initWithBundleURLProvider:self->_configuration.bundleURLBlock
Expand Down

0 comments on commit b850ccd

Please sign in to comment.