UNPKG

@react-native-oh-tpl/blur

Version:
39 lines (36 loc) 936 B
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; import type { ViewProps, HostComponent } from 'react-native'; import type { WithDefault, Int32, } from 'react-native/Libraries/Types/CodegenTypes'; interface NativeProps extends ViewProps { blurType?: WithDefault< | 'dark' | 'light' | 'xlight' | 'prominent' | 'regular' | 'extraDark' | 'chromeMaterial' | 'material' | 'thickMaterial' | 'thinMaterial' | 'ultraThinMaterial' | 'chromeMaterialDark' | 'materialDark' | 'thickMaterialDark' | 'thinMaterialDark' | 'ultraThinMaterialDark' | 'chromeMaterialLight' | 'materialLight' | 'thickMaterialLight' | 'thinMaterialLight' | 'ultraThinMaterialLight', 'dark' >; blurAmount?: WithDefault<Int32, 10>; } export default codegenNativeComponent<NativeProps>('BlurView', { excludedPlatforms: ['android', 'iOS'], }) as HostComponent<NativeProps>;