Beagle v1.6 is no longer actively maintained. The documented version you are viewing may contain deprecated functionality. For up-to-date documentation, see the latest version .
Returns to a specific screen and cleans the navigation that was generated from that screen.
Your structure is represented by the attribute below:
Attribute | Type | Required | Definition |
---|---|---|---|
route | String | ✓ | Route of a screen that it’s on the pile. |
On the example below, three screens were used: two first used PushView to add the screens to the piles, the last one use PopToView to return to the first.
To test, you will need three endpoints:
Screen(
child = Container(
children = listOf(
Text(
"First Screen on Stack"
),
Button(
text = "Click me!",
onPress = listOf(
Navigate.PushView(
Route.Remote(
url = "secondScreenNavigate.json"
)
)
)
)
)
)
)
Screen(
child = Container(
children = listOf(
Text(
"Second Screen on Stack"
),
Button(
text = "Click me!",
onPress = listOf(
Navigate.PushView(
Route.Remote(
url = "popToView.json"
)
)
)
)
)
)
)
Screen(
child = Container(
children = listOf(
Text(
"Third Screen on Stack"
),
Button(
text = "Click me to go to first screen",
onPress = listOf(
Navigate.PopToView(
route = "firstScreenNavigate.json"
)
)
)
)
)
)
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.