Open
Description
We use the library to retrieve authenticated images like this:
import RNFetchBlob from 'react-native-fetch-blob'
RNFetchBlob
.config({ fileCache: true })
.fetch('GET', url, { Authorization: `Bearer ${token}` })
.then(res => {
console.log('path: ', res.path())
})
Usually this works fine but sometimes the path which is returned leads to a 0 byte file instead of the actual file (for the same URL). I have confirmed on the local filesystem with the simulator but this seems to be happening on physical devices as well.
Using version 0.10.8 on React/RN 16.2/0.53