diff --git a/example/ios/ControllersExample/AppDelegate.m b/example/ios/ControllersExample/AppDelegate.m index e4029e3..0175c69 100644 --- a/example/ios/ControllersExample/AppDelegate.m +++ b/example/ios/ControllersExample/AppDelegate.m @@ -35,8 +35,10 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; self.window.backgroundColor = [UIColor whiteColor]; - [[RCCManager sharedInstance] initBridgeWithBundleURL:jsCodeLocation]; - + [[RCCManager sharedIntance] initBridgeWithBundleURL:jsCodeLocation + launchOptions:launchOptions]; + + return YES; } diff --git a/ios/RCCManager.h b/ios/RCCManager.h index 34a9c30..52fa89b 100755 --- a/ios/RCCManager.h +++ b/ios/RCCManager.h @@ -7,7 +7,7 @@ + (instancetype)sharedInstance; + (instancetype)sharedIntance; --(void)initBridgeWithBundleURL:(NSURL *)bundleURL; +-(void)initBridgeWithBundleURL:(NSURL *)bundleURL launchOptions:(NSDictionary *)launchOptions; -(RCTBridge*)getBridge; -(UIWindow*)getAppWindow; diff --git a/ios/RCCManager.m b/ios/RCCManager.m index 7b00cd2..f0cd689 100755 --- a/ios/RCCManager.m +++ b/ios/RCCManager.m @@ -116,13 +116,13 @@ -(id)getControllerWithId:(NSString*)componentId componentType:(NSString*)compone return component; } --(void)initBridgeWithBundleURL:(NSURL *)bundleURL +-(void)initBridgeWithBundleURL:(NSURL *)bundleURL launchOptions:(NSDictionary *)launchOptions { if (self.sharedBridge) return; self.bundleURL = bundleURL; - self.sharedBridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:nil]; - + self.sharedBridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions]; + [self showSplashScreen]; }