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

tag

Sets a tag on a view.

tag(tag)

ParameterTypeDescription
tagstring | numberThe tag to set on the view.

Sets a tag on a view.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

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

Sources

The original Expo docs for this page:

  • tag (Modifiers) (source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)

On this page