javascript - React-native - Populate image with Blob that has been converted to a URL -


i want populate image uri.
request image server , returns blob.

blob when displayed console:enter image description here

i convert blob url following line:

var bloburl = url.createobjecturl(blob);   

bloburl when displayed console enter image description here

i try , populate image url:

<image source={{uri: bloburl}} style={{width: 100, height: 50}} /> 

the image not display. should do?

i using android emulator connected localhost. possibly have seen blob url stored localhost?

or simple syntax error?

thanks.

may solved react-native-fetch-blob, it's issue #854


Comments