Today, we released Navigation Compose 2.4.0-alpha01: https://developer.android.com/jetpack/androidx/releases/navigation#2.4.0-alpha01 - Navigation Compose joins the rest of the Navigation artifacts with just a single version code, no more 1.0.0 alphas. This also means that concepts like routes (which used to be extension methods you needed to import) are now APIs on the classes themselves and there's no more
arguments?.getString(KEY_ROUTE)
- it is just
destination.route
. It also means that Navigation Compose gained support for new functionality added to Navigation including multiple back stacks
👏🏽 1
🎉 6
👏🏼 2
🦜 9
👏 36
Ian Lake
05/19/2021, 12:45 AM
We've updated the bottom nav guide to show how to use the new
I'll also note that while there's no transition APIs in this release, the merging of Navigation Compose with the rest of Navigation is key to making that happen for an upcoming release
K 1
❤️ 3
💪🏽 1
r
Ryan Simon
05/19/2021, 3:13 AM
Thanks for the hard work, Ian! This looks great. Just in time for my Compose app 😄
t
Tepes Lucian Victor
06/22/2021, 11:20 AM
@Ian Lake played around with the multiple backstack support for fragments and looks good! Thank for all your work! Wanted to ask if this will be the standard for fragments / compose going forward. Asking because our app has its own multiple back stack implementation which works exactly like the youtube app (pops all stacks in each tab in the order the user visited them when tapping back) vs
NavigationAdvancedSample
which only pops the current tab stack then switches to main tab and exiting the app when its stack is cleared.