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

268
Visualizações
Trouble setting up react native (Expo) webview for my reactjs: Cannot connect to the metro server

I have a web app for which I want to build a play store deployable app, a TWA. I have been trying to get Expo to work but I keep stumbling into one error or the other. Firstly, connection over lan or local seemed to only bring error, but tunnel works. After all the installation is done, I get the following error.

Tunnel ready.
Android Bundling complete 54929ms
Android Running app on S9

Cannot connect to the Metro server.

Try the following to fix the issue:
- Ensure that the Metro server is running and available on the same network
- Ensure that your device/emulator is connected to your machine and has USB debugging enabled - run 'adb devices' to see a list of connected devices
- If your device is on the same Wi-Fi network, set 'Debug server host & port for device' in 'Dev settings' to your machine's IP address and the port of the local dev server - e.g. 10.0.1.1:8081

I suspect that I need an external connection source since my computer's internet connection is provided by my phone. I've ran the adb reverse command and its still nothing. Nothing seems to be wrong with the code, it just wouldn't movie past this stage. I am using a Gionee S9 for the simulation, and I have been unable to find the debugger server in the developer options. What could be the problems with it

Here is my app.js code

import React from 'react';
import { StyleSheet} from 'react-native';
import {WebView} from 'react-native-webview'

export default function App() {
  
  return(
    <WebView 
      source={{ url: "https://bootlegga.com"}}
      style={styles}
    />
  )
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});
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