I have a hello world working with
react-native-webview serving a static html using react-native-static-server
it works fine with an html that uses inline js
but when I try to use js from a file, it won't work
here my sample html
<body>
<div id="hello">hoola from <span id="location"></span></div>
<script>
var loc = document.getElementById('location');
loc.innerHTML = window.location.href;
</script>
<button type="button" onclick="alabama();">Play music</button>
<script src="./chusa.js"></script>
</body>
so, the top script works, but then when calling chusa.js it won't work on the react native side, but if I open on a browser it is using calling the js correctly...
What do I have to do to enable the external js file please?