Network error with axios and react native

前端 未结 7 2348
暗喜
暗喜 2021-01-19 13:35

I have created an API endpoint using the Django python framework that I host externally. I can access my endpoint from a browser (mydomain.com/endpoint/) and ve

7条回答
  •  我在风中等你
    2021-01-19 14:00

    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.

提交回复
热议问题