Expo UI and Router for iOS
Modifiers

background

Sets the background of a view.

background(color, shape)

ParameterTypeDescription
colorColorThe background color (hex string). For example, #FF0000.
shape(optional)ShapeOptional shape to clip the background. If not provided, the background will fill the entire view.

Sets the background of a view.

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