PushStack

PushStack action details and its attributes

What is it?

This action creates a new screen on a new stack.

The structure of PushStack is:

AttributeTypeRequiredDefinition
routeRouteNavigation route.
controllerIdStringThe navigation controller id to use during the navigation action. If empty, the default navigation controller will be used instead.
navigationContextNavigationContextContext to be saved on the target screen.

How to use?

This is an example of a simple screen with a button that performs the PushStack action when clicked. To test it, request the URL of the screen you want to create (in the URL property on the PushStack action ) and click on the button. The new screen will be created in a new stack.

Screen(
    child = Button(
        text = "Click me!",
        onPress = listOf(
            Navigate.PushStack(
                Route.Remote(NEW_SCREEN_ENDPOINT)
            )
        )
    )
)

Last modified March 7, 2022: fix: Update docs 2.0 (#858) (4368557d)