@applicaster/blur
Version:
React Native Blur component
21 lines (18 loc) • 666 B
text/typescript
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
import type { ViewProps, HostComponent, ColorValue } from 'react-native';
import type {
WithDefault,
Int32,
} from 'react-native/Libraries/Types/CodegenTypes';
interface NativeProps extends ViewProps {
blurAmount?: WithDefault<Int32, 10>;
blurType?: WithDefault<'dark' | 'light' | 'xlight', 'dark'>;
blurRadius?: Int32;
downsampleFactor?: Int32;
overlayColor?: ColorValue;
enabled?: boolean;
autoUpdate?: boolean;
}
export default codegenNativeComponent<NativeProps>('AndroidBlurView', {
excludedPlatforms: ['iOS'],
}) as HostComponent<NativeProps>;