import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; import type { DirectEventHandler, Double, Int32, WithDefault } from 'react-native/Libraries/Types/CodegenTypes'; import type { ViewProps } from 'react-native'; type OnLoadErrorEvent = { message?: string }; interface NativeProps extends ViewProps { blurhash: string; decodeWidth?: WithDefault; decodeHeight?: WithDefault; decodePunch?: WithDefault; decodeAsync?: WithDefault; resizeMode?: WithDefault<'cover' | 'contain' | 'stretch' | 'center', 'cover'>; onLoadStart?: DirectEventHandler; onLoadEnd?: DirectEventHandler; onLoadError?: DirectEventHandler; } export default codegenNativeComponent('BlurhashView');