🖼️ A library to show colorful blurry placeholders while your content loads.
MIT License
Bot releases are hidden (Show)
Published by mrousavy about 4 years ago
This release includes:
const color = Blurhash.getAverageColor('LGFFaXYk^6#M@-5c,1J5@[or[Q6.')
This function decodes the characters 3 to 6 ('FFaX'
) using the Typescript decode83
function.Published by mrousavy about 4 years ago
This release includes:
ImageView
instead of ReactImageView
to remove unnecessary overhead from Fresco/ReactCHAR_MAP
onHostDestroy
)Published by mrousavy over 4 years ago
encode()
performance on iOS by using qos: .utility
quality of service for background taskget 1.0.17 from npm
npm i react-native-blurhash
Published by mrousavy over 4 years ago
This release includes:
data:image/
) in addition to URLs (starts with http
) for Image encoding. (Blurhash.encode
)Published by mrousavy over 4 years ago
This release includes:
const blurhash = await Blurhash.encode('https://blurha.sh/assets/images/img2.jpg', 4, 3);
imageUri, componentsX, componentsY
as parametersBlurhashView
, so it resolves to BlurhashViewManager
and BlurhashViewModule
)npm i react-native-blurhash
Published by mrousavy over 4 years ago
This release includes:
const blurhash = await Blurhash.encode('https://blurha.sh/assets/images/img2.jpg', 4, 3);
Published by mrousavy over 4 years ago
Version 1.0.11 includes:
decodeAsync={true}
, you can decode the Blurhash asynchronously on a background Thread. This is especially useful for large Lists, since this removes any stutters that may have been caused by the Blurhash decode
function running on the UI-Thread (Main). Be aware: Only use this if you are experiencing those stutters, otherwise it will be slower than the decodeAsync={false}
, since the Thread-start overhead is very high.resizeMode
on iOS.npm i react-native-blurhash
Published by mrousavy over 4 years ago
This release includes:
cover
check it out on npm!
Published by mrousavy over 4 years ago
Second release includes:
Published by mrousavy over 4 years ago
First release