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

textCase

Sets a transform for the case of the text contained in this view when displayed.

textCase(value)

ParameterType
value'lowercase' | 'uppercase'

Sets a transform for the case of the text contained in this view when displayed.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

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

Needs care

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

ComponentWhat to know
TextA nested Text ignores this modifier. In debug builds, the nested text shows a red warning.

No visible effect

These components accept it, but you see no change.

ComponentWhy nothing happens
SpacerIt changes only text, and Spacer shows no text.
DividerIt changes only text, and Divider shows no text.
SliderIt changes only text, and Slider shows no text.
ImageIt changes only text, and Image shows no text.
AccessoryWidgetBackgroundIt changes only text, and AccessoryWidgetBackground shows no text.

Sources

The original Expo docs for this page:

On this page