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

containerShape

Sets the container shape for the view.

containerShape(shape)

ParameterTypeDescription
shapeShapeA shape configuration from the shapes API

Sets the container shape for the view.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

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

No visible effect

These components accept it, but you see no change.

ComponentWhy nothing happens
SpacerIt sets the shape that the child views use for containerRelativeShape, and Spacer takes no child views.
DividerIt sets the shape that the child views use for containerRelativeShape, and Divider takes no child views.
ButtonIt sets the shape that the child views use for containerRelativeShape, and Button takes no child views.
ToggleIt sets the shape that the child views use for containerRelativeShape, and Toggle takes no child views.
CheckboxIt sets the shape that the child views use for containerRelativeShape, and Checkbox takes no child views.
SliderIt sets the shape that the child views use for containerRelativeShape, and Slider takes no child views.
PickerIt sets the shape that the child views use for containerRelativeShape, and Picker takes no child views.
DatePickerIt sets the shape that the child views use for containerRelativeShape, and DatePicker takes no child views.
ColorPickerIt sets the shape that the child views use for containerRelativeShape, and ColorPicker takes no child views.
LinkIt sets the shape that the child views use for containerRelativeShape, and Link takes no child views.
MenuIt sets the shape that the child views use for containerRelativeShape, and Menu takes no child views.
TextFieldIt sets the shape that the child views use for containerRelativeShape, and TextField takes no child views.
SecureFieldIt sets the shape that the child views use for containerRelativeShape, and SecureField takes no child views.
TextIt sets the shape that the child views use for containerRelativeShape, and Text takes no child views.
LabelIt sets the shape that the child views use for containerRelativeShape, and Label takes no child views.
ImageIt sets the shape that the child views use for containerRelativeShape, and Image takes no child views.
ProgressViewIt sets the shape that the child views use for containerRelativeShape, and ProgressView takes no child views.
GaugeIt sets the shape that the child views use for containerRelativeShape, and Gauge takes no child views.
AccessoryWidgetBackgroundIt sets the shape that the child views use for containerRelativeShape, and AccessoryWidgetBackground takes no child views.

Sources

The original Expo docs for this page:

On this page