2

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();
});

Here is the response : enter image description here

And here are the headers from the response in Chrome Developers tools enter image description here

1 Answer 1

1

The response headers are on the response info object

res.info().headers

from: https://github.com/wkh237/react-native-fetch-blob/wiki/Classes#user-content-rnfetchblobresponseinfo

Sign up to request clarification or add additional context in comments.

1 Comment

thanks for the reply, i already tried this but it shows undefined

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.