The PopStack
is a navigation action that removes the stack of screens where the current screen is displayed on.
The PopStack
structure is:
Attribute | Type | Required | Definition |
---|---|---|---|
navigationContext | NavigationContext | Navigation Context sent from the previous screen. |
In this example, there is a screen with a button that, when clicked, “kills” the stack of screens where the current screen is on.
To test it you need to navigate to this screen example, in a stack already built, and click on the button. This will destroy the entire stack
Screen(
child = Button(
text = "Click me!",
onPress = listOf(
Navigate.PopStack()
)
)
)
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.