React Native Blurhash Versions Save

šŸ–¼ļø A library to show colorful blurry placeholders while your content loads.

v1.1.3

3 years ago

1.1.3 (2021-02-25)

v1.1.2

3 years ago

1.1.2 (2021-02-25)

v1.1.1

3 years ago

1.1.1 (2021-02-25)

v1.1.0

3 years ago

1.1.0 (2021-02-25)

1.0.29

3 years ago

This release fixes a regression in which the <Blurhash> component has been converted to a FunctionComponent (FC<P,S,SS>).

  • Converts <Blurhash> component back to Class Component (PureComponent<P,S,SS>)
    • Matches the types
    • Allows to use createAnimatedComponent(Blurhash)

1.0.28

3 years ago

This release includes a few minor code improvements:

  • Remove debug logging
  • Add a new isBlurhashValid(...) function that checks if a given string is a valid encoded blurhash. (Non-native method)
  • Cleanups for the native codebase
  • Cleanups for the example app

1.0.27

3 years ago

1.0.27 comes with the following changes:

  1. Better Blurhash.encode() support, since now you can use all URIs the native React Native Image Loader (iOS: RCTImageLoader, Android: Fresco) supports! This includes http, https, base64 (data:image/), and even local files!
  2. Some repo maintainability changes
  3. Small bugfixes

1.0.23

3 years ago

This release contains:

  • onLoadStart event: Emitted when the Blurhash received new parameters and started to decode the given blurhash string.
  • onLoadEnd event: Emitted when the Blurhash successfully decoded the given blurhash string and rendered the image to the <Blurhash> view
  • onLoadError event: Emitted when the Blurhash failed to load. UseĀ the message parameterĀ to get the error message.
  • Performance improvements for native code

1.0.21

3 years ago

This release includes:

  • 2-4x performance speedup by caching cos operations in the Swift decoder!
  • Improved encoder speed by increasing it's service priority

1.0.20

3 years ago

This release includes:

  • Average Color extracter. Spice up your app's UI with contextual colors depending on the Blurhash's average/dominant color. Get the Blurhash's average color with:
    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.
  • Update dependencies

react-native-blurhash