I’m trying to display an image in React Native that comes from an url.
The network call returns status 200 and and the content-type is ‘image/png’.
Having googled it I came across snippets related to blob. If I’m trying to do:
const response = await fetch(url, ...)
const blob = await response.blob();
I’m getting:
caught error TypeError: response.blob is not a function at Function
I’m using RN 0.72.3
I’d expect response.blob() to exist. Especially that the intelliSense suggests that blob() exists on the response object. I’d expect to use the fetched image and display it using using RN’s Image component.