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
@marktiderman/genesis-ui-nativeimport { NativeGlassSurface } from "@marktiderman/genesis-ui-native";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
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | 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. |
| fallbackClassName | string | rounded-xl border border-border bg-card | The solid look when glass can't be drawn, radius included. Default `"rounded-xl border border-border bg-card"`. |
| glassEffectStyle | enum | regular | Default `"regular"`. |
| interactive | boolean | false | Glass reacts to touch. Default false. |
| radius | number | 16 | The glass's corner radius in points. Default 16. |
| testID | string | — | |
| tintColor | string | — | Glass tint (a color string). |