Expo UI and Router for iOS
Modifiers

containerBackground

Sets the container background of the enclosing container using a view.

containerBackground(color, container)

ParameterTypeDescription
colorColorThe color to set as the background of the container.
containerContainerBackgroundPlacementThe type of container to apply the background to.

Sets the container background of the enclosing container using 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