GitHub
Discussions
Change Log
License
Search…
Overview
Setup
Navigation
ScreenModel
Android ViewModel
Stack API
State restoration
Transitions
Lifecycle
Back press
Deep links
Powered By
GitBook
Deep links
You can initialize the
Navigator
with multiple screens, that way, the first visible screen will be the last one and will be possible to return (
pop()
) to the previous screens.
1
val
postId
=
getPostIdFromIntent
()
2
3
setContent
{
4
Navigator
(
5
HomeScreen
,
6
PostListScreen
(),
7
PostDetailsScreen
(
postId
)
8
)
9
}
Copied!
Previous
Back press
Last modified
9mo ago
Copy link