LiquidGlassView
LiquidGlassView uses Apple’s UIGlassEffect API (iOS 26+) for true liquid glass rendering, with customizable tint color, opacity, and touch interactivity.
Platform fallback behavior
- iOS 26+: native
UIGlassEffect, hardware-accelerated, with optional touch interactivity viaisInteractive. - iOS below 26, and Android: automatically falls back to
BlurViewwithblurType="regular",blurAmount={70}, and a tintedoverlayColorcomputed fromglassTintColor/glassOpacity(capped at 35% alpha) — a deliberately engineered approximation of the glass look, not a generic blur. - When “Reduce Transparency” is enabled on iOS 26+, the glass effect is hidden and a solid
reducedTransparencyFallbackColorview is shown instead.
Note: the component’s actual runtime default for
ignoreSafeAreaistrue. (An earlier version of the inline type documentation statedfalse— the table below reflects the real behavior.)
Basic usage
import { LiquidGlassView } from '@sbaiahmed1/react-native-blur';
<LiquidGlassView
glassType="regular"
glassTintColor="#007AFF"
glassOpacity={0.8}
style={{ padding: 20, borderRadius: 20 }}
>
<Text>Beautiful liquid glass effect</Text>
</LiquidGlassView>
Interactive glass
<LiquidGlassView
glassType="regular"
glassTintColor="#007AFF"
glassOpacity={0.9}
isInteractive={true} // iOS 26+ only
ignoreSafeArea={false}
style={{ flex: 1, padding: 30 }}
>
<Text>Interactive liquid glass that responds to touch</Text>
</LiquidGlassView>
Glass types
| Value | Description |
|---|---|
| clear | Clear glass effect (default). |
| regular | Regular glass effect with a more pronounced appearance. |
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| glassType | GlassType ('clear' | 'regular') | 'clear' | iOS 26+The type of glass effect. |
| glassTintColor | string | 'clear' | iOS 26+The tint color for the glass effect. Accepts hex colors or color names. |
| glassOpacity | number | 1.0 | iOS 26+The opacity of the glass effect (0-1). |
| isInteractive | boolean | true | iOSControls whether the liquid glass effect is interactive and reacts to touch (iOS 26+ only). |
| ignoreSafeArea | boolean | true | iOSControls whether the glass effect should ignore all safe area edges. |
| reducedTransparencyFallbackColor | string | '#FFFFFF' | iOSFallback color shown when reduced transparency is enabled, or on iOS versions below 26. |
| style | StyleProp<ViewStyle> | undefined | Style object for the glass view. |
| children | React.ReactNode | undefined | Child components to render inside the glass view. |