1.

How do you call a Web API in React Native?

Answer»

Here’s an example to call a web service to REACT Native.

fetch('http://**someurl**', {
method: 'POST',
HEADERS: {
   'Accept': 'application/json',
   'Content-Type': 'application/json',
},
BODY: JSON.stringify({
   username : "admin1",
   PASSWORD: "admin13",
})
})



Discussion

No Comment Found