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

strokeBorder

Strokes an inset border along the view's shape.

strokeBorder(params)

ParameterTypeDescription
params{ antialiased: boolean, color: Color, cornerRadius: number, shape: 'circle' | 'ellipse' | 'roundedRectangle' | 'capsule' | 'rectangle' | 'containerRelativeShape', style: StrokeStyle }The stroke parameters. Color (omit for the foreground style), style, antialiased, shape and cornerRadius.

Strokes an inset border along the view's shape.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

You can add strokeBorder 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 changes how the view is drawn, and Spacer draws nothing that you can see.

Sources

The original Expo docs for this page:

On this page