fetch('http://localhost:3000/Update_Password', {
method: 'POST',
headers: {
'Accept': 'application/json',
'Content-Type': 'application/json',
},
body: JSON.stringify({
id: this.state.User_id,
password: this.state.confirm_password,
}),
})
.then(response => response.json())
.then((res) => {
if (res.success === true)
{
Alert.alert(res.message);
}
else
{
Alert.alert(res.message);
}
})
Вот мой API После вызова этого API я получаю эту ошибку
TypeError: response. json не является функцией. (В 'response. json ()', 'response. json' не определено)
введите описание изображения здесь