react-blurhash icon indicating copy to clipboard operation
react-blurhash copied to clipboard

Alternative for React-Native

Open mrousavy opened this issue 4 years ago • 1 comments

Have you found an alternative approach for this, by instead of using a canvas to use something that works on React Native?

I haven't found a single Image library or documentation on how to create a raw pixel array (UInt8ClampedArray) into an Image (or anything that's somewhat helpful, like a base64 representation)

mrousavy avatar Apr 12 '20 17:04 mrousavy

I have created a lightweight and fast native module for React Native which can decode and encode blurhashes straight out of react native. It can decode asynchronously and is pretty performance optimized, as it decodes and renders everything natively for iOS and Android. Check it out at mrousavy/react-native-blurhash!

mrousavy avatar Aug 04 '20 10:08 mrousavy

Nice alternative! Lets close this then.

Thisen avatar Jan 09 '23 08:01 Thisen