i am new to react native and i am trying to submit a api using axios in react native but i am getiign [AxiosError: Network Error] i dont know what this is or how i can fix this
function getdata() {
const Data = {
babyname: babyname,
password: name,
email: email,
phone: nuber,
period: mydate,
};
console.log(Data);
axios({
method: 'POST',
url: 'http://127.0.0.1:8000/api/details/',
data: Data,
})
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.log(error);
});
i used the default inspect elemt in react native and have network tab opened