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?
Asked
Active
Viewed 1,913 times
2 Answers
0
Yes, only use the http instead https, and set the following line in your manifest
<application
...
android:usesCleartextTraffic="true"
...>

Edison Sanchez
- 94
- 6