Genesis
@beta

NativeGlassSurface

NativeGlassSurface — a floating surface (toast, banner, floating bar) drawn as iOS 26 Liquid Glass when it can be, and as the solid surface it always was otherwise. Glass needs all of: iOS; expo-glass-effect passed as `modules.glass`; `isLiquidGlassAvailable()` (the app was built with the iOS 26 SDK and the device runs it) and `isGlassEffectAPIAvailable()` (the API exists at run time; some iOS 26 betas lack it) both true; and Reduce Transparency off. Otherwise `fallbackClassName` paints the surface.

packages/ui-native/src/components/glass-surface.tsx

Import
Subpath export: @marktiderman/genesis-ui-native
import { NativeGlassSurface } from "@marktiderman/genesis-ui-native";
Components
Auto-generated from TypeScript source via react-docgen-typescript.

__resetReduceTransparency

Tests only: forget the last answer. Not exported from the package.

No declared props.

useReduceTransparency

True while the user has Reduce Transparency on (iOS), `null` until the first answer. Always false elsewhere, and on a runtime that can't say.

No declared props.

useLiquidGlass

expo-glass-effect's `GlassView` when Liquid Glass can be drawn here, else `null`.

No declared props.

NativeGlassSurface

PropTypeDefaultDescription
classNamestring—Layout classes (padding, gap, width). Without glass they merge with `fallbackClassName` on one view, so they can override it (`rounded-*`, `bg-*`). On glass they go on the view inside the glass: the glass's shape comes from `radius` alone, and a `bg-*` here paints over the glass.
fallbackClassNamestringrounded-xl border border-border bg-cardThe solid look when glass can't be drawn, radius included. Default `"rounded-xl border border-border bg-card"`.
glassEffectStyleenumregularDefault `"regular"`.
interactivebooleanfalseGlass reacts to touch. Default false.
radiusnumber16The glass's corner radius in points. Default 16.
testIDstring—
tintColorstring—Glass tint (a color string).