# Glass — React Native component for Expo

> A Liquid Glass surface: native on iOS 26, emulated with blur and a rim elsewhere.

Liquid Glass for every device: real iOS 26 Liquid Glass (interactive, mergeable with GlassGroup), system material blur on older iOS, real blur on Android 12+ inside GlassProvider / GlassBackdrop (a frosted surface otherwise) and backdrop blur on web — with a specular rim, hairline edge and soft shadow wherever the glass is emulated. The base every glass component is built on.

- Docs: https://expokit.in/docs/components/glass
- Tier: Pro (ExpoKit Pro plan)
- Also called: liquid glass view, glassmorphism, blur view
- Category: Glass
- Platforms: iOS, Android, web
- Expo Go: yes, no development build needed
- npm dependencies: expo-glass-effect, expo-blur, react-native-svg
- Uses ExpoKit items: kit
- Variants: Surfaces, Group, Over Content

## Installation

This component is part of ExpoKit Pro. With a Pro plan, log the CLI in once and add it like any other item:

```bash
npx @expokit/cli@latest login
```

Plans: https://expokit.in/pricing

## Props

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `variant` | `'regular' \| 'clear'` | `'regular'` | Frosted, or more see-through for media behind. |
| `tint` | `string` | — | Colour washed into the glass, e.g. your accent for a selected state. |
| `interactive` | `boolean` | `false` | iOS 26: the glass shimmers and bounces under touch. |
| `radius` | `number \| 'full'` | `kit lg radius` | Corner radius, or 'full' for pills and circles. |
| `intensity` | `number` | `60` | Blur strength 1–100 where blur is emulated. |
| `edge / shadow` | `boolean` | `true / true` | Specular rim + hairline edge, and the soft drop shadow (emulated glass). |
| `scheme` | `'light' \| 'dark'` | `kit theme` | Force light or dark glass, e.g. over a photo. |
| `GlassGroup` | `{ spacing }` | `12` | Shapes inside melt together on iOS 26 when closer than spacing. |
| `GlassProvider / GlassBackdrop / GlassIsolate` | `wrappers` | — | Android real blur: put the content behind the glass in GlassBackdrop, glass UI as its siblings. GlassIsolate opts a subtree (e.g. a Modal) out. |
| `liquidGlass / useGlassInk()` | `boolean / hook` | — | Whether native Liquid Glass is on; text colours that read on glass. |
| `style` | `StyleProp<ViewStyle>` | — | Size, padding and layout. |
| `className` | `string` | — | Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. |

## Behaviour & accessibility

- **Touch**: With interactive, iOS 26 glass shimmers and bounces under the finger. Elsewhere the prop is ignored.
- **Platforms**: iOS 26 renders real Liquid Glass that GlassGroup can merge; older iOS uses a system material blur. Android blurs inside GlassProvider + GlassBackdrop and falls back to a frosted fill.
- **Web**: Blurs what is behind it with a CSS backdrop blur. Wherever glass is emulated it adds a specular rim, a hairline edge and a soft shadow.

## FAQ

### How do I make a liquid glass view in React Native?

Use ExpoKit's Glass, a Pro component: with ExpoKit Pro, the ExpoKit CLI copies a ready-made liquid glass view into your Expo or React Native app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.

### Does Glass work in Expo Go?

Yes. Glass runs in Expo Go on iOS and Android with no development build — its packages (expo-glass-effect, expo-blur, react-native-svg) are all included in Expo Go.

### How do I add Glass to my Expo app?

With ExpoKit Pro, add it with the ExpoKit CLI: it copies the component's source into your app and installs expo-glass-effect, expo-blur, react-native-svg, so the code is yours to change. The install command is on this page for Pro members.

### Is Glass free?

Glass is part of ExpoKit Pro. With a Pro plan, log the CLI in once and it installs the full source into your app.

## More

- Live preview, variants and code: https://expokit.in/docs/components/glass
- Every ExpoKit component, screen, template and chart: https://expokit.in/llms.txt
- Install commands and props for every free component: https://expokit.in/llms-full.txt
- Pricing: https://expokit.in/pricing
