Closed birurana closed 2 years ago
const updateData = ( ) => { fetch ('http://192.168.1.13:8000/api/articles/${data.id}/' , { method: "PUT", headers: {
'Content-Type':'application/json' }, body:JSON.stringify({title:title, description}) }) .then(resp => resp.json()) .then(data => { props.navigation.navigate("Home", {data:data}) }) .catch(error => Alert.alert("Error:", error.message))
Hi This module is unmentionable ⚠️! please use fork: https://github.com/RonRadtke/react-native-blob-util
Thanks
const updateData = ( ) => { fetch ('http://192.168.1.13:8000/api/articles/${data.id}/' , { method: "PUT", headers: {