I am trying to send data to a POST api but I can't figure out what's the correct syntax, I am using this:
RNFetchBlob.fetch(
'POST',
'htttp://www.myserver.com/api/login',
{ 'Content-Type': 'application/json'}
)
.then(response => {
console.log(response.json());
})
Any help please?