Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

760
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!