Skip to content

Native Blurhash Encoder!

Choose a tag to compare

@mrousavy mrousavy released this 04 Jul 15:45
· 273 commits to master since this release

This release includes:

  • An all new Image encoder! Asynchronously encode Images to Blurhashes straight out of your React Native app:
    const blurhash = await Blurhash.encode('https://blurha.sh/assets/images/img2.jpg', 4, 3);
    • Supports Android and iOS
    • Completely run async on background Thread
    • Easy JS API, only imageUri, componentsX, componentsY as parameters
  • Performance improvements for decoding
  • Cache improvements to not spawn new threads when not needed
  • Improved logging (and warning when props are misused)
  • Bugfixes
  • Refactoring
    • Remove unused imports/includes
    • Remap Objective-C module for correct name (BlurhashView, so it resolves to BlurhashViewManager and BlurhashViewModule)

1.0.15 is now on npm

npm i react-native-blurhash