React-native-fast-image: Support Base64 images on Android.

Created on 8 Jul 2017  路  8Comments  路  Source: DylanVann/react-native-fast-image

I do display base64 image with FastImage, work well on iOS, show blank view on Android.

feature

Most helpful comment

Is this issue resolved yet? I still got this bug on Jan 2018

All 8 comments

Is this issue resolved yet? I still got this bug on Jan 2018

At the very least it should show a warning if you try to do this to avoid potential issues.

Same Issue !!

Any update ?

Here is a workaround.
You can set base64 string this way:

const image = `data:${mimeType};base64,${base64String}`
<FastImage
      source={{ uri: image }} <---- put base64 with mimetype here
/>

Where mimeType depends on content.
I use this code to resolve type from a file extension.

@badver Does it work on Android? iOS still working well.

@anhtuank7c Yes.

Was this page helpful?
0 / 5 - 0 ratings