Home Diary Blog Photo Community Open Source
Build Settings for React Native for IOS

modify AppDelegate.m

 // jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];

  //add by jxva

#if DEBUG

#if TARGET_IPHONE_SIMULATOR

  jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];

#else

  jsCodeLocation = [NSURL URLWithString:@"http://10.206.80.183:8081/index.ios.bundle"];

#endif

#else

  jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];

#endif

  //---------