[RFC][ReactNative] Integrate dev menu directly into RootView

This commit is contained in:
Alex Kotliarskyi
2015-03-25 17:33:54 -07:00
parent 7ffa7942aa
commit c5a6b44c76
7 changed files with 123 additions and 98 deletions

View File

@@ -9,7 +9,6 @@
#import "AppDelegate.h"
#import "RCTDevelopmentViewController.h"
#import "RCTRootView.h"
@implementation AppDelegate
@@ -42,7 +41,7 @@
rootView.moduleName = @"UIExplorerApp";
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [[RCTDevelopmentViewController alloc] init];
UIViewController *rootViewController = [[UIViewController alloc] init];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];