joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.81k stars 771 forks source link

In react native is this declaration ok #756

Closed birurana closed 2 years ago

birurana commented 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))
retyui commented 2 years ago

Hi This module is unmentionable ⚠️! please use fork: https://github.com/RonRadtke/react-native-blob-util

birurana commented 2 years ago

Thanks