Guide
Add Glassy UI to an Expo app
Install React Native glass components with shadcn, see how each platform draws them, and give Android a backdrop to blur.
Glass controls and native interactions
The Expo registry has 29 items. Shared controls keep the web names and use React Native props; app-only components add system pickers and touch gestures. They install as source you own. Shared controls need Expo SDK 55 or later; the picker, swipe row and card stack target SDK 57. See them on a phone.
iOS 26 and later draw the system’s own glass, which bends what lies behind it. Earlier iOS versions and the web blur what lies behind and light the rim. Android 12 and later blur the GlassBackdrop the glass sits over; earlier Android versions show a translucent tint. With Reduce Transparency on, every platform draws opaque surfaces.
Add native interactions
Picker uses SwiftUI on iOS and Compose on Android. Swipe Row and Card Stack follow touch gestures and settle with springs. Wrap the app in GestureHandlerRootView for the gesture components.
Set up the CLI
shadcn init does not set up Expo apps, so add a components.json at the root of your app. If you already have one, keep its aliases and settings. The CLI finds @glassyui-native in the shadcn registry directory, so it needs no registry mapping.
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "new-york",
"rsc": false,
"tsx": true,
"tailwind": { "config": "", "css": "", "baseColor": "neutral", "cssVariables": true },
"aliases": { "components": "@/components", "utils": "@/lib/utils" }
}Match the @/ import alias in tsconfig.json. Keep an existing mapping, or merge this one for files at the app root. Use ./src/* instead when your components live in src.
{
"compilerOptions": {
"paths": { "@/*": ["./*"] }
}
}Keep cssVariables on. With it off, the CLI rewrites every string in the files it installs as if it were a list of Tailwind classes, which breaks colour values such as rgba(255, 255, 255, 0.12).
Install the screen’s components
npx shadcn@4.14.1 add @glassyui-native/glass-button @glassyui-native/glass-panel && npx expo install --fixThis command installs the screen’s components and matches their packages to your Expo SDK.
Expo Go already includes these packages; rebuild your development build after adding them. The files land in components/glassyui, or in src/components/glassyui when your app keeps its code in src. Adjust the imports below to match.
Share Android blur work
For native builds with Expo SDK 57 and expo-blur 57.0.3, enable the included Android plugin. Surfaces over the same backdrop share their blur output at each strength, keeping the same frost, tint and rim with fewer graphics allocations.
{
"expo": {
"plugins": ["./components/glassyui/android/with-glassy-blur.cjs"]
}
}{
"expo": {
"autolinking": {
"android": { "buildFromSource": ["expo-blur"] }
}
}
}Keep your existing plugins and source-build entries. Adjust the plugin path if your components live under src. Run npx expo prebuild --platform android --no-clean, then npx expo run:android to rebuild, including when your Android project already exists. The plugin checks the native package version during prebuild. Expo Go uses its bundled renderer; it cannot load this optimization. iOS and the web keep their existing rendering.
Put glass over something
Glass needs something to bend. GlassBackdrop lays its children over the backdrop you give it: a wallpaper, a photo or the screen’s own content. iOS and the web blur whatever lies behind glass, but Android can only blur a view marked for it, so put the content behind your glass in a backdrop. Outside one, Android glass is a translucent tint.
import { Image } from 'react-native';
import { GlassBackdrop } from '@/components/glassyui/glass-backdrop';
import { GlassButton } from '@/components/glassyui/glass-button';
import { GlassPanel } from '@/components/glassyui/glass-panel';
import { GlassProvider } from '@/components/glassyui/glass-provider';
const wallpaper = require('@/assets/wallpaper.jpg');
export default function Welcome() {
return (
<GlassProvider>
<GlassBackdrop
backdrop={<Image source={wallpaper} style={{ width: '100%', height: '100%' }} />}
style={{ flex: 1, justifyContent: 'center', padding: 24 }}
>
<GlassPanel>
<GlassButton variant="prominent" onPress={() => {}}>
Continue
</GlassButton>
</GlassPanel>
</GlassBackdrop>
</GlassProvider>
);
}A required image takes its own pixel size unless you size it, so give a backdrop image a full width and height.
Follow the device’s settings
GlassProvider follows the device’s appearance, Reduce Motion and Reduce Transparency settings. Without a provider, each component reads them itself. Choices made with setPreferences last while the provider is mounted; save them in your app’s storage if they should survive a restart.
import { GlassSwitch } from '@/components/glassyui/glass-switch';
import { usePreferences } from '@/components/glassyui/glass-provider';
export function ReduceEffects() {
const { preferences, setPreferences } = usePreferences();
return (
<GlassSwitch
accessibilityLabel="Reduce glass effects"
checked={preferences.reduceTransparency}
onCheckedChange={(on) => setPreferences({ reduceMotion: on, reduceTransparency: on })}
/>
);
}Components
These components share the web library’s names and use React Native props. Each page opens on React Native with its install command, usage and API. Shared components also have a React design preview:
Provider, Surface, Button, Panel, Input, Textarea, Checkbox, Radio Group, Switch, Slider, Segmented Control, Tabs, Badge, Progress, Spinner, Skeleton, Alert, Avatar, Accordion, Dock, Dialog, Sheet, Toast, Menu, Select, Popover, Picker, Swipe Row, Card Stack.
Where it differs from the web
On Android, dialogs, sheets, menus, selects and popovers open in a window of their own, which the blur cannot see into, so they show their denser overlay tint instead. Toasts appear in a GlassToastViewport you mount once near the root of your app, inside GlassToastProvider.
Menus have no submenus. Checkbox and radio labels are plain text, which screen readers read as the control’s name. Dock items show their label on a long press. A sheet does not scroll by itself, so put long content in a ScrollView.
What stays on the web
Glass Scene and Glass Lens draw their own refraction with WebGL and SVG filters, which React Native does not have; on iOS 26 and later the system glass bends its backdrop instead. Header, tooltip, keyboard keys, breadcrumb, pagination, command menu and laptop mockup are web patterns and have no Expo version.