I\'m having issues when using FETCH.
I am trying to make a POST request using FETCH in react-native.
fetch(\"http://www.example.co.uk/login\", {
If you wanna do POST request using fetch, You can do like that
fetch('url?email=a@gmail.com&password=a@gmail.com', {
method: 'POST'
})
.then((response) => response.json())
.then((responseJson) => {
console.log(responseJson);
// this.setState({
// data: responseJson
// })
})
.catch((error) => {
console.error(error);
});