I'm looking at `navigation-compose` , is there an ...
# compose
t
I'm looking at
navigation-compose
, is there an example on how to have a main bottom-nav based navigation that also has some "full-screen" composables? Essentially the
Jetsnack
sample but ported to the Navigation library: a shared bottom-nav for some screen and some screens going over the bottom-nav.
I have a feeling that I'll need a main NavHost for the bottom-nav screen & the rest of the full-screens, and a child NavHost to manage the bottom-nav screen on its own.
(I'm currently using navigation-compose:2.4.0-SNAPSHOT and looking at the new multi back stack APIs that @Ian Lake commited 🥰)
i
No, that's not a good use case for a child NavHost and completely unnecessarily complex. Here's the last conversation about that pattern, which links to even more previous discussions: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1620346074115700?thread_ts=1620346074.115700&cid=CJLTWPH7S
tl/dr: use the NavController as your source of truth, hiding or showing the bottom nav as the current destination requires
t
@Ian Lake thank's so much for the info!
1