1

I just started using react-native and am trying to build an android app with it.. I used create-react-native-app and used the expo template. But I'm not able to fetch data from my server kepp getting "Network Error". My server doesn't have a valid certificate currently. Is there any way to ignore ssl certificate errors in my fetch calls?

JiN
  • 818
  • 1
  • 7
  • 14

2 Answers2

0

Yes, only use the http instead https, and set the following line in your manifest

<application
...
android:usesCleartextTraffic="true"
...>
0

Only way that I found to resolve is downgrade the version.

"axios": "0.24.0"

Emre
  • 31
  • 2