https://kotlinlang.org logo
#compose
Title
# compose
j

Jan Lund

12/03/2019, 1:51 PM
How will navigation work in Jetpack compose (since Navigation Components currently seems to be based on Fragments)?
a

Adam Powell

12/03/2019, 2:30 PM
The navigation component is based on pluggable Navigators and the fragment navigator is just one implementation
Further API tuning on both compose and the navigation arch component will likely happen as well, or if you want to make minimal changes and have it work today you can make a compose fragment and use it from all of the existing fragment-based navigation stuff
😍 3
j

Jan Lund

12/03/2019, 5:27 PM
Awesome info, thanks Adam!
a

Ash

12/03/2019, 7:29 PM
a

Adam Powell

12/03/2019, 11:05 PM
navigateTo
is basically the shape of the navigation arch component API, or were you referring to something else?
a

Ash

12/03/2019, 11:13 PM
My entire app navigation is built with
navigateTo
. I use it the same way I use
NavigationLink
in SwiftUI. Wondering if it is going to change or go away ???
a

Adam Powell

12/04/2019, 12:24 AM
It's just a function provided by the JetNews sample app code in that link, it won't go away from app code unless you want it to 🙂
l

Leland Richardson [G]

12/05/2019, 5:00 PM
Note: if you want to swipe a scrappy version of a compose navigator for the AAC navigation, i put up a gist here: https://gist.github.com/lelandrichardson/5b70430ea383600eb0dba5a62172148c
👍 1
👀 1
🙏🏽 2
a

Ash

12/05/2019, 9:47 PM
The hope is ... as soon as Compose is in beta, our app is in the Google Play Store 🎉 We expect this to be hard 😂
k

Klaas Kabini

01/17/2020, 1:52 PM
I was unable to get this scrappy version to work on dev03. It gave me this warning message and failed to compile: Functions which invoke @Composable functions must be marked with the @Composable annotation.
a

Ali Zargar Shabestari

08/10/2020, 6:08 AM
I had to sign out to see the code 😄
5 Views