UNPKG

@sbaiahmed1/react-native-blur

Version:
35 lines (30 loc) 1.03 kB
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; import type { ViewProps } from 'react-native'; import type { WithDefault, Double, } from 'react-native/Libraries/Types/CodegenTypes'; export type BlurType = | 'xlight' | 'light' | 'dark' | 'extraDark' | 'regular' | 'prominent' | 'systemUltraThinMaterial' | 'systemThinMaterial' | 'systemMaterial' | 'systemThickMaterial' | 'systemChromeMaterial'; export type GlassType = 'clear' | 'regular'; interface NativeProps extends ViewProps { glassTintColor?: WithDefault<string, 'clear'>; glassOpacity?: WithDefault<Double, 1.0>; blurAmount?: WithDefault<Double, 10.0>; type?: WithDefault<'blur' | 'liquidGlass', 'blur'>; blurType?: WithDefault<BlurType, 'xlight'>; glassType?: WithDefault<GlassType, 'clear'>; reducedTransparencyFallbackColor?: WithDefault<string, '#FFFFFF'>; isInteractive?: WithDefault<boolean, true>; } export default codegenNativeComponent<NativeProps>('ReactNativeBlurView');