• Empleos
  • Sobre nosotros
  • Empleos
    • Inicio
    • Empleos
    • Cursos y retos
  • Empresas
    • Inicio
    • Publicar vacante
    • Nuestro proceso
    • Precios
    • Evaluaciones
    • Contrata talento tech
    • Blog
    • Comercial
    • Calculadora de salario

0

281
Vistas
La solicitud de red falló en la recuperación nativa de reacción

Estaba trabajando en este proyecto ayer y lo cerré y estaba funcionando bien, llegué hoy y lo ejecuté, me da un error de red, no sé por qué intento solucionarlo de alguna manera, pero no funciona. si alguien puede ayudar, eso será muy útil. por cierto, la aplicación está funcionando para hacer clic en el inicio de sesión.

Traté de eliminar node_moudle. Probé desde otro teléfono. Intenté eliminar la aplicación del dispositivo y reiniciarla. La pantalla de inicio de sesión de clase extiende el componente {

 // Setting up Login Activity title. static navigationOptions = { title: 'Loginscreen', }; constructor(props) { super(props) this.getData(); this.state = { UserEmail: '', UserPassword: '' } } UserLoginFunction = () =>{ const { UserEmail } = this.state ; const { UserPassword } = this.state ; //the api is working i test it fetch('https://hub.0000.com/users/User_Login.php', { method: 'POST', headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', }, body: JSON.stringify({ email: UserEmail, password: UserPassword }) }).then((response) => response.json()) .then((responseJson) => { const {message, userData} = responseJson; if (typeof message === "string" && message.toLowerCase().trim() === "data matched") { this.props.navigation.navigate("Homescreen", { userData }); AsyncStorage.setItem('userName', JSON.stringify(responseJson.userData)); this.onSumbit(); console.log(responseJson.userData); } else { Alert.alert("Error:", responseJson.message); } }).catch((error) => { console.error(error); }); } onSumbit = async () => { try{ await AsyncStorage.setItem('UserEmail',this.state.UserEmail) }catch (err){ console.log(err) } } getData = async () => { try { const UserEmail = await AsyncStorage.getItem('UserEmail') if(UserEmail !== null) { this.setState({ UserEmail }) console.log(UserEmail); } } catch(e) { // error reading value } } render() {

ingrese la descripción de la imagen aquí

almost 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Nuestro proceso Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda