A callback that runs when the component appears on screen for the first time.
Support
Usage
Logging when a view appears
Loading data on appear
Triggering animations
Notes
- The action runs once when the component is first inserted into the view tree, not every time it becomes visible (e.g., after scrolling back into view).
See Also
- onDisappear — runs an action when the component is removed
- onChange — runs an action when a value changes