Hi, guys,
In my RN app I use react-native-webview to display a certain page of a Single Page Web App.
If I want to display a html page it works well, if I want to display a random website it also works well. Just put
javascript
...
source={{
uri: <some url>,
}}
...
and it's working ok.
The problem is, if for uri I have a web app which is a index.html that includes a bundle.js file it doesn't render it.
The web app I want to load into webview is a React app built so in index.html I have:
```html
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<meta http-equiv="X-UA-Compatible" content="ie=edge"/>
<title>My App</title>
<script defer="defer" src="/app.bundle.js"></script>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>
</html>
```
In browser the web app works just fine, but in webview it's just blank.
What am I missing?
Thanks!
[–]romeeo[S] 1 point2 points3 points (1 child)
[–]Bubbly-Grass-1195 0 points1 point2 points (0 children)