Expo UI and Router for iOS
Modifiers

onAppear

Adds an onAppear modifier that calls a function when the view appears.

onAppear(handler)

ParameterTypeDescription
handler() => voidFunction to call when the view appears.

Adds an onAppear modifier that calls a function when the view appears.

Returns: ModifierConfig

See: Official SwiftUI documentation.

Works with

This modifier works with any view. These components accept it:

Sources

The original Expo docs for this page:

On this page