Tengo un hola mundo trabajando con
react-native-webview sirviendo un html estático usando react-native-static-server
funciona bien con un html que usa js en línea
pero cuando trato de usar js desde un archivo, no funcionará
aquí mi muestra 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>entonces, la secuencia de comandos superior funciona, pero luego, al llamar a chusa.js, no funcionará en el lado nativo de reacción, pero si abro en un navegador, está llamando al js correctamente ...
¿Qué tengo que hacer para habilitar el archivo js externo, por favor?