Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

759
Vistas
How to solve the Network request failed error in react-native with expo?

I'm trying to fetch information from my local API with React-native and expo using the fetch method.

export function getBoardGamesFromApiWithSearchedText (text) {
    const url = 'http://localhost:2021/boardgame/list'

    return fetch(url)
        .then((response) => response.json())
        .catch((error) => console.error(error))
}

I have this error :

Network request failed at node_modules/whatwg-fetch/dist/fetch.umd.js:535:17 in setTimeout$argument_0

I saw that many people had this problem, apparently solved with the following solution: https://jsshowcase.com/question/react-native-fetch-https-localhost-network-request-failed

But I can't find the info.plist file maybe in the app.json but what should I configure?

I'm new to react native. Can someone help me on this ?

about 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 Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda