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

foregroundColor

Sets the foreground color/tint of a view.

foregroundColor(color)

Deprecated: Use foregroundStyle instead.

ParameterTypeDescription
colorColorThe foreground color (hex string).

Sets the foreground color/tint of a view.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

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

No visible effect

These components accept it, but you see no change.

ComponentWhy nothing happens
SpacerIt changes how the view is drawn, and Spacer draws nothing that you can see.
DividerDivider ignores this. Use overlay with a colour to change the colour of the line.

Sources

The original Expo docs for this page:

On this page