Verified Commit 9c043a6c authored by Sébastiaan Versteeg's avatar Sébastiaan Versteeg
Browse files

Add lines to AppDelegate to ease iOS development

parent 7c5a1468
......@@ -26,8 +26,25 @@
[[UNUserNotificationCenter currentNotificationCenter] setDelegate:self];
NSURL *jsCodeLocation;
// For Debug build load from development server. Start the server from the repository root:
// $ npm start
// Run from locally running dev server
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.bundle?platform=ios"];
// Run on device with code coming from dev server on PC (change the IP to your PCs IP)
jsCodeLocation = [NSURL URLWithString:@""];
// For production load from pre-bundled file on disk. To re-generate the static bundle, run
// $ curl http://localhost:8081/index.ios.bundle -o main.jsbundle
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index" fallbackResource:nil];
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment