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

presentationBackground

Sets the background of a sheet presentation. Paints the entire sheet chrome including the drag-indicator zone and home-indicator safe-area inset, which a regular background() modifier cannot reach.

presentationBackground(color)

iOS 16.4+
ParameterTypeDescription
colorstringThe background color (hex string). For example, #FF0000.

Sets the background of a sheet presentation. Paints the entire sheet chrome including the drag-indicator zone and home-indicator safe-area inset, which a regular background() modifier cannot reach.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

presentationBackground is made for these components. On other components it has no effect.

Sources

The original Expo docs for this page:

On this page