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

disabled

Disables or enables a view.

disabled(disabled)

ParameterTypeDescription
disabled(optional)booleanWhether the view should be disabled. Default: true

Disables or enables a view.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

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

No visible effect

These components accept it, but you see no change.

ComponentWhy nothing happens
SpacerIt turns off the controls in the view, and Spacer has none.
DividerIt turns off the controls in the view, and Divider has none.
TextIt turns off the controls in the view, and Text has none.
LabelIt turns off the controls in the view, and Label has none.
ImageIt turns off the controls in the view, and Image has none.
AccessoryWidgetBackgroundIt turns off the controls in the view, and AccessoryWidgetBackground has none.

Sources

The original Expo docs for this page:

On this page