Skip to content

Commit

Permalink
Work-around: Avoid rn-splash-screen triggering bg crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
bengtan committed Jul 26, 2019
1 parent 7d287f8 commit e6a9f20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/TinyRobot/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ -(void)loadBundle:(NSDictionary *)launchOptions initialProps:(NSDictionary *)pro
self.window.rootViewController = rootViewController;
self.window.backgroundColor = [UIColor whiteColor];
[self.window makeKeyAndVisible];

[RNSplashScreen showSplash:@"LaunchScreen" inRootView:rootView];
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
Expand All @@ -99,7 +101,6 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

[[UITextField appearance] setTintColor:[UIColor lightGrayColor]];
[self loadBundle:launchOptions initialProps:env];
[RNSplashScreen show];
return YES;
}

Expand Down

0 comments on commit e6a9f20

Please sign in to comment.