Expo UI and Router for iOS
Modifiers

clipShape

Clips the view to a specific shape.

clipShape(shape, cornerRadius)

ParameterTypeDescription
shape'circle' | 'ellipse' | 'roundedRectangle' | 'capsule' | 'rectangle' | 'containerRelativeShape'The clipping shape.
cornerRadius(optional)numberCorner radius for rounded rectangle (default: 8)

Clips the view to a specific shape.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

This modifier works with any view. These components accept it:

Sources

The original Expo docs for this page:

On this page