Open skyliwq opened 4 years ago
"react-native": "^0.62.2", "rn-fetch-blob": "^0.12.0",
.then() cant callback when plateform IOS RNFetchBlob.fetch( 'POST', url + 'users/avatar', { Authorization: 'Bearer access-token', 'Content-Type': 'multipart/form-data', }, [ { name: 'file', filename: 'idcard.png', type: mime, data: RNFetchBlob.wrap(path), }, ], ) .then((resp) => { console.log(resp); // ... }) .catch((err) => { // ... });
"react-native": "^0.62.2", "rn-fetch-blob": "^0.12.0",
.then() cant callback when plateform IOS RNFetchBlob.fetch( 'POST', url + 'users/avatar', { Authorization: 'Bearer access-token', 'Content-Type': 'multipart/form-data', }, [ { name: 'file', filename: 'idcard.png', type: mime, data: RNFetchBlob.wrap(path), }, ], ) .then((resp) => { console.log(resp); // ... }) .catch((err) => { // ... });