Expo UI and Router for iOSExpo SDK 57 and later, iOS only
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

Works only in some places

Works only in a widget, or in a navigation container when you use a navigation placement.

You can add it to any of these components, but it does something only in the place above.

Sources

The original Expo docs for this page:

On this page