Shoul I go with Axios or an other library?
node.js - react native request with axios - Stack Overflow
reactjs - Understanding how axios works in react native - Stack Overflow
Network error with axios and react native - Stack Overflow
Videos
Hello dear colleagues,
Since I am starting a new project I am now evaluating which libraries I should include. The app will interact with a web-based backend that exposes a simple HTTPs REST API, no GraphQL or other similar things.
I used Axios in the past and it has worked really well! Anyway, about a year ago, I heard that development had stalled down quite a bit. So I have looked today and saw that there's recent activity on Github, so I don't know, maybe it has re-gained some traction lately?
So what would you use for HTTPs requests? Axios, React-Query, or other libraries?
Thank you
If you are trying to call localhost on android simulator created with AVD, replacing localhost with 10.0.2.2 solved the issue for me.
It seems that unencrypted network requests are blocked by default in iOS, i.e. https will work, http will not.
From the docs:
By default, iOS will block any request that's not encrypted using SSL. If you need to fetch from a cleartext URL (one that begins with http) you will first need to add an App Transport Security exception.