Native Blurhash Encoder!
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, componentsYas 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 toBlurhashViewManagerandBlurhashViewModule)
npm i react-native-blurhash