react-native-fast-image
Version:
FastImage, performant React Native image component.
13 lines (12 loc) • 515 B
TypeScript
/**
* Makes a source's `blurDataUri` from a ThumbHash, e.g. on your server, so
* the page shows the preview without any JavaScript. Undefined for an invalid
* hash. Works in browsers, Node and React Native.
*
* @example
* ```js
* // e.g. on your server, so the page shows the preview without any JavaScript
* const source = { uri: photo.url, blurDataUri: thumbHashToBlurDataUri(photo.thumbhash) }
* ```
*/
export declare function thumbHashToBlurDataUri(thumbhash: string | undefined): string | undefined;