Releases: mrousavy/react-native-blurhash
Releases · mrousavy/react-native-blurhash
Release 1.1.4
1.1.4 (2021-03-05)
Release 1.1.3
1.1.3 (2021-02-25)
Release 1.1.2
1.1.2 (2021-02-25)
Release 1.1.1
1.1.1 (2021-02-25)
Release 1.1.0
1.1.0 (2021-02-25)
Class Component
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)
Cleanups
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
Better encoding!
1.0.27 comes with the following changes:
- Better
Blurhash.encode()
support, since now you can use all URIs the native React Native Image Loader (iOS:RCTImageLoader
, Android:Fresco
) supports! This includeshttp
,https
, base64 (data:image/
), and even local files! - Some repo maintainability changes
- Small bugfixes
Events!
This release contains:
onLoadStart
event: Emitted when the Blurhash received new parameters and started to decode the givenblurhash
string.onLoadEnd
event: Emitted when the Blurhash successfully decoded the givenblurhash
string and rendered the image to the<Blurhash>
viewonLoadError
event: Emitted when the Blurhash failed to load. Use themessage
parameter to get the error message.- Performance improvements for native code
iOS Performance Improvements
This release includes:
- 2-4x performance speedup by caching cos operations in the Swift decoder!
- Improved encoder speed by increasing it's service priority