Code Monkey home page Code Monkey logo

Comments (9)

andreechristian avatar andreechristian commented on May 24, 2024 5

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

from react-native-fast-image.

badver avatar badver commented on May 24, 2024 3

@anhtuank7c Yes.

from react-native-fast-image.

badver avatar badver commented on May 24, 2024 1

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.

from react-native-fast-image.

matt-oakes avatar matt-oakes commented on May 24, 2024

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

from react-native-fast-image.

victorileaf avatar victorileaf commented on May 24, 2024

Same Issue !!

from react-native-fast-image.

anhtuank7c avatar anhtuank7c commented on May 24, 2024

Something like: https://stackoverflow.com/questions/34588905/how-to-load-image-through-byte-array-using-glide?answertab=votes#tab-top

https://github.com/DylanVann/react-native-fast-image/blob/master/android/src/main/java/com/dylanvann/fastimage/FastImageViewModule.java#L37

from react-native-fast-image.

newaz avatar newaz commented on May 24, 2024

Any update ?

from react-native-fast-image.

anhtuank7c avatar anhtuank7c commented on May 24, 2024

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

from react-native-fast-image.

DylanVann avatar DylanVann commented on May 24, 2024

There's an example of base64 usage in the example application:

from react-native-fast-image.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.