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

backgroundOverlay

Adds a background behind the view.

backgroundOverlay(params)

ParameterTypeDescription
params{ alignment: 'center' | 'top' | 'bottom' | 'leading' | 'trailing', color: Color }Background color and alignment.

Adds a background behind the view.

Returns: ModifierConfig

Works with

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

Needs care

It works on these components, but not in the way that you may expect.

ComponentWhat to know
ListList and Form draw their own background on top. Add scrollContentBackground('hidden') to see it.
FormList and Form draw their own background on top. Add scrollContentBackground('hidden') to see it.

No visible effect

These components accept it, but you see no change.

ComponentWhy nothing happens
SpacerIt paints in the area of the view, and Spacer draws nothing that you can see.

Sources

The original Expo docs for this page:

On this page