GlassBackground
const GlassBackground: NitroUI view component
A Liquid Glass backdrop on iOS 26 and later; elsewhere, including Android, it fills with fallbackColor. It takes no children: place it behind content, for example absolutely filling a container, and give it the container's style.cornerRadius.
<GlassBackground
glassStyle="clear"
tint="#007aff33"
fallbackColor={0xf7f7f8f2}
style={{ cornerRadius: 20 }}
layout={{ position: 'absolute', left: 0, right: 0, top: 0, bottom: 0 }}
/>
Props
| Prop | Type | Default | Description |
|---|---|---|---|
glassStyle | GlassStyle | 'regular' | Glass variant. |
tint | ColorValue | Untinted | Tints the glass. |
fallbackColor | ColorValue | None | Fill shown instead of glass before iOS 26 and on Android. |
layout, style, other view props | NitroUI SharedViewProps | Everything a NitroUI view takes except children. |