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",
})
})

BY Best Interview Question ON 27 May 2021