Hello, I'm going to start new project with KMP for...
# multiplatform
j
Hello, I'm going to start new project with KMP for Android, iOS and Windows. What you will going to suggest for navigation into app. Default
androidx.navigation3
or any other third party library like
voyager
or any other.
m
I can only speak for Android and my recent implementation of iOS, and the current stable jetbrains compose navigation works fine. I was surprised, because I was expecting to have to go with an alpha release of nav3. I expect to migrate to that when it goes stable though.
👍 1
s
We've had great success with Decompose We only have the UI layer in pure native code (SwiftUI and Jetpack Compose for Android), but Decompose (navigation) is shared.
👍 1
decompose intensifies 3
r
If you have experience with Androidx navigation stable, use that. If you think that by the time you work on your app, navigation3 will already be stable (CMP 1.10), use it because it is simpler and more predictable in my opinion, but it still has bugs and there are breaking changes between versions. But importantly, if your project will use deep links, it is preferable to use anything other than nav3, as it is still a bit complicated to adapt certain features outside of composables.
👍 1
j
Thank You so much guys for give suggestions
j
Does Navigation3 work for CMP (alpha or beta)? I thought the library was ready but lacked platform target support.
👍 1
r
Is in alpha for CMP. You need jetbrains androidx navigation3 UI. Support desktop, iOS, JS and wasmjs. I don't know if have problems in platform specific. VM nav3 is in alpha too, but need CMP 1.10 alpha to works. In my project I use CMP 1.09 with nav3 alpha03 works fine in android and JVM desktop (Windows*)
👍 1
j
@Jonathan I think yes, coz currently I have one project in that I'm using Navigation3. I was ask this question coz I just want to know the review and suggestion from the other developer what will be the best.