Running react-native app on iOS device using offline bundle
<p>The official <a href="https://facebook.github.io/react-native/docs/running-on-device-ios.html#using-the-offline-bundle" rel="noreferrer">React Native</a> documentation to run app on iOS device using offline bundle says</p>
<blockquote>
<p>Open ios/YourApp/AppDelegate.m</p>
<p>Uncomment the line, jsCodeLocation = [[NSBundle mainBundle] ...</p>
</blockquote>
<p>Using latest <code>react-native 0.30.0</code>, this line is no longer present in the default <code>AppDelegate.m</code> file. Excerpt from the default <code>AppDelegate.m</code> file</p>
<pre class="lang-c prettyprint-override"><code>NSURL *jsCodeLocation;
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@&quot;index.ios&quot; fallbackResource:nil];

RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
                                                    moduleName:@&quot;TestAppDelete&quot;
                                             initialProperties:nil
                                                 launchOptions:launchOptions];
</code></pre>
<p>If I try to use the <code>jsCodeLocation</code> as it used to be in previous versions, it is returned as null</p>
<pre class="lang-c prettyprint-override"><code>jsCodeLocation = [[NSBundle mainBundle] URLForResource:@&quot;main&quot; withExtension:@&quot;jsbundle&quot;];
</code></pre>
<p>I am not sure why is the URL for <code>main.jsbundle</code> returned as <code>null</code>. Is it not created by the packager anymore. If it should be created using the latest version also, how can I confirm it?</p>
<p>If you have run a <code>react-native 0.30.0</code> app on an iOS device using offline bundle, please share the instructions to do so.</p>