App delegate navigation controller
This commit is contained in:
parent
74fbc4e9c0
commit
1d4d5ef29d
|
@ -12,14 +12,6 @@
|
||||||
|
|
||||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||||
{
|
{
|
||||||
|
|
||||||
// self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
|
|
||||||
// UIViewController *rootViewController = [UIViewController new];
|
|
||||||
// UINavigationController *navigationController = [[UINavigationController alloc]initWithRootViewController:rootViewController];
|
|
||||||
// navigationController.navigationBarHidden = YES;
|
|
||||||
// rootViewController.view = rootView;
|
|
||||||
// self.window.rootViewController = navigationController;
|
|
||||||
|
|
||||||
if(![FIRApp defaultApp]){
|
if(![FIRApp defaultApp]){
|
||||||
[FIRApp configure];
|
[FIRApp configure];
|
||||||
}
|
}
|
||||||
|
@ -35,6 +27,12 @@
|
||||||
self.initialProps = @{};
|
self.initialProps = @{};
|
||||||
[super application:application didFinishLaunchingWithOptions:launchOptions];
|
[super application:application didFinishLaunchingWithOptions:launchOptions];
|
||||||
|
|
||||||
|
UIViewController *rootViewController = self.window.rootViewController;
|
||||||
|
[self.window removeReactSubview:(RCTRootView *)self.window.rootViewController.view];
|
||||||
|
UINavigationController *navigationController = [[UINavigationController alloc]initWithRootViewController:rootViewController];
|
||||||
|
navigationController.navigationBarHidden = YES;
|
||||||
|
self.window.rootViewController = navigationController;
|
||||||
|
|
||||||
[RNBootSplash initWithStoryboard:@"LaunchScreen" rootView:self.window.rootViewController.view];
|
[RNBootSplash initWithStoryboard:@"LaunchScreen" rootView:self.window.rootViewController.view];
|
||||||
|
|
||||||
return YES;
|
return YES;
|
||||||
|
|
Loading…
Reference in New Issue