Expo UI and Router for iOSExpo SDK 57 and later, iOS only
Modifiers

glassEffect

Applies a glass effect to a view.

glassEffect(params)

ParameterTypeDescription
params(optional){ cornerRadius: number, glass: { interactive: boolean, tint: Color, variant: 'regular' | 'clear' | 'identity' }, shape: 'circle' | 'ellipse' | 'roundedRectangle' | 'capsule' | 'rectangle' | 'containerRelativeShape' }The glass effect parameters. Variant, interactive, tint and shape.

Applies a glass effect to a view.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

You can add glassEffect to any view. It changes what you see on 38 of the 39 components.

No visible effect

These components accept it, but you see no change.

ComponentWhy nothing happens
SpacerIt paints in the area of the view, and Spacer draws nothing that you can see.

Sources

The original Expo docs for this page:

On this page