Skip to main content
.onDisappear(action: () => void): Component;

Parameters

action
() => void
A callback function that executes when the view disappears from screen.

Support

Usage

Basic usage

Text("Goodbye World")
    .onDisappear(() => {
        console.log("Text disappeared!")
    })