I commented that when working with requests to the server using Fetch and also using Axios , when running on android it shows me the following error:
fetch(URL,{
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
email: userEmail,
password: userPassword
}),
})
.then((response) => response.json())
.then((responseJson)=>{
Alert.alert("bien");
console.warn(responseJson);
})
.catch((error)=>{
console.error(error);
console.warn(error);
});
It is not the server since the api is already used for other types of applications, and in iOS works perfectly