I am using the react-native fetch-blob library for fetching files into an application. Here is the implemented code:
RNFetchBlob.config(platformConfig).fetch('GET', url).then((res) => {
console.log('---->', res)
if (Platform.OS=='android') {
return `file://${res.path()}`;
} else {
return res.path();
});
And here are the headers from the response in Chrome Developers tools

