React Native + Expo + Axios, why need to use 10.0.2.2 instead locahost?

16 Views Asked by At

I was working on a React Native app using Axios to make API requests until before making this change to 10.0.2.2, I kept getting a direct Axios Network Error. Why doesn't it work to use localhost?

I fixed that problem ok?

0

There are 0 best solutions below