UNPKG

react-native-fast-image

Version:
13 lines (12 loc) • 515 B
/** * 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;