Tengo una aplicación web para la que quiero crear una aplicación desplegable de Play Store, una TWA. He estado tratando de hacer que Expo funcione, pero sigo tropezando con un error u otro. En primer lugar, la conexión a través de LAN o local parecía solo generar errores, pero el túnel funciona. Una vez finalizada toda la instalación, aparece el siguiente 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 - eg 10.0.1.1:8081Sospecho que necesito una fuente de conexión externa ya que mi teléfono proporciona la conexión a Internet de mi computadora. Ejecuté el comando adb reverse y todavía no hay nada. Nada parece estar mal con el código, simplemente no pasaría de esta etapa. Estoy usando un Gionee S9 para la simulación y no he podido encontrar el servidor del depurador en las opciones de desarrollador. ¿Cuáles podrían ser los problemas con eso?
Aquí está mi código app.js
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', }, });