This action creates a new screen on a new stack.
The structure of PushStack
is:
Attribute | Type | Required | Definition |
---|---|---|---|
route | Route | ✓ | Navigation route. |
controllerId | String | The navigation controller id to use during the navigation action. If empty, the default navigation controller will be used instead. | |
navigationContext | NavigationContext | Context to be saved on the target screen. |
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)
)
)
)
)
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.