This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
RNFetchBlob.config().fetch('GET', uri) always returns valid result #492
Open
Description
RNFetchBlob.config({}).fetch('GET', uri) function always returns valid result even though I am using invalid image url.(e.g. https://lol.com/lol.png)
React Version : "react": "16.0.0-alpha.6"
React Native Version : "react-native": "0.44.0"
Library Version : "react-native-fetch-blob": "0.10.2"
return RNFetchBlob.config({
path: getPath(uri),
}).fetch('GET', uri);
fetchImageUri('https://lol.com/lol.png')
.then(result => {
console.log('result = ', result);
})
.catch((error) => { console.log(error); });
This always returns valid local image url. So I can get the result of fetching image.
It never goes to catch.
How can I get the result of fetching image?
Thank you,