Include local web app into react native webview : <p>Within my react-native app I want to show a webview, that loads a local html5 web application (single page app, SPA).</p>

<p>I am able to load an html file, that is located within the relative folder <code>webapp</code> using</p>

<pre><code>var webapp = require('./webapp/index.html');
</code></pre>

<p>and</p>

<pre><code>&lt;WebView source={webapp}&gt;&lt;/WebView&gt;
</code></pre>

<p>as I have stated in this thread: <a href="https://stackoverflow.com/questions/33506908/react-native-webview-load-from-device-local-file-system">react native webview load from device local file system</a></p>

<p>Unfortunately, the assets of this local webapp like the .js and .css files, aren't loaded by the webapp.</p>

<p>During development of the react-native app, these files are available via the  development server. Though, when the app is packed and run on an iOS device, the assets aren't available (I get a 404 error in Safari developer tools).</p>

<p>How can I make sure, that all of the assets (JS, CSS, etc.) within the <code>webapp</code> folder are available in the packaged app local.</p>
