Skip to content

Instantly share code, notes, and snippets.

@stan229
Created October 15, 2015 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stan229/b905216e0313b55b3270 to your computer and use it in GitHub Desktop.
Save stan229/b905216e0313b55b3270 to your computer and use it in GitHub Desktop.
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"MCDJ"
initialProperties:nil
launchOptions:launchOptions];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [[UIViewController alloc] init];
rootViewController.view = rootView;
self.window.rootViewController = rootViewController;
// Set reference to class property
self.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment