اطلاعات بصورت json هستند و دقیقا مشابه دستور fetch هستند
|
RNFetchBlob.fetch('POST', this.props.url , { Authorization: "Bearer access-token", otherHeader: "foo", 'RNFB-Response': 'base64', 'Content-Type': 'multipart/form-data;', }, [ { name: 'image', filename: 'image.png', type: 'image/png', data: this.state.data }, { name: 'image_tag', data: this.state.Image_TAG } ]) .then(Response => Response.json()) .then((ResponseJson) => { console.log(ResponseJson.message); } |