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 (7 loc) • 402 B
text/typescript
import { type TurboModule, TurboModuleRegistry } from 'react-native';
import type { Double } from 'react-native/Libraries/Types/CodegenTypes';
export interface Spec extends TurboModule {
createBlurhashFromImage: (imageUri: string, componentsX: Double, componentsY: Double) => Promise<string>;
clearCosineCache: () => void;
}
export default TurboModuleRegistry.getEnforcing<Spec>('BlurhashModule');