UNPKG

react-native-blurhash

Version:

🖼 Blurhash is a compact representation of a placeholder for an image. This is a Native UI Module for React Native to asynchronously wrap the Blurhash implementations and make them usable in React Native. Also supports encoding!

10 lines (9 loc) • 425 B
/// <reference types="react-native/types/modules/codegen" /> import { type TurboModule } from 'react-native'; import type { Int32 } from 'react-native/Libraries/Types/CodegenTypes'; export interface Spec extends TurboModule { createBlurhashFromImage: (imageUri: string, componentsX: Int32, componentsY: Int32) => Promise<string>; clearCosineCache: () => void; } declare const _default: Spec; export default _default;