Skip to content

Instantly share code, notes, and snippets.

@hugomosh
Last active May 15, 2017 01:22
Show Gist options
  • Save hugomosh/6746892873dc22bcf8eb5a09376ba6c0 to your computer and use it in GitHub Desktop.
Save hugomosh/6746892873dc22bcf8eb5a09376ba6c0 to your computer and use it in GitHub Desktop.
Different port for react native bundler
...
#ifdef DEBUG
jsCodeLocation = [NSURL URLWithString:@"http://localhost:9988/index.ios.bundle?platform=ios&dev=true"];
#else
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
#endif
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment