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

widgetURL

Sets the URL to open in the containing app when the user clicks the widget. Widgets support one widgetURL modifier in their view hierarchy. If multiple views have widgetURL modifiers, the behavior is undefined.

widgetURL(url)

ParameterTypeDescription
urlstringThe URL to open in the containing app.

Sets the URL to open in the containing app when the user clicks the widget. Widgets support one widgetURL modifier in their view hierarchy. If multiple views have widgetURL modifiers, the behavior is undefined.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

Works only in some places

Works only in a widget. It has no effect in the app.

You can add it to any of these components, but it does something only in the place above.

Sources

The original Expo docs for this page:

On this page