Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

126
Visualizações
react native web view with static server and js

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?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda