Hello Does anyone know h*ow to pass Custom NavType...
# multiplatform
k
Hello Does anyone know h*ow to pass Custom NavTypes in Compose MultiPlatform for Type-Safe Navigation on Android and IOS?*
a
Is the doc here not working https://developer.android.com/guide/navigation/design/kotlin-dsl#custom-types? This is for android it might work for KMM
k
Yeah, it's working for Android, but it's not working on IOS, do you know any workaround?
a
Then it must be an issue. You can report it in the JB issue tracker.
k
Well, let's see what can be done. And Please share solutions if you find any.
👌 1
a
@Kabindra Shrestha, this still hasnt worked for me. Did you find anything?
k
@Archie Yes, but i was using Nav 2 back then. Now, Nav 3 is available. It supports custom data and can be send while navigating. I haven’t had time to used it yet. My suggestion is use the latest Nav 3.
a
is Nav 3 now available for multiplatform?
k
Yeah, it should be compatible with Multiplatform as it was designed to be compatible for the Multiplatform. Please follow the latest documentation. If not then, we can revert back to Nav 2 for this.
a
do you have the dependencies? can you share them to me.. i would love to try it out.
are you saying I could just use these dependencies directly? https://developer.android.com/guide/navigation/navigation-3/get-started
k
Yeah sure, but I’m out right now. I’ll share it tomorrow, is it ok?
a
No worries man. I'm the one asking favors here 😄 take your time.
k
https://github.com/kabindra-shrestha/Clean-Architecture-Kotlin-Compose-Multiplatform Please check this repo, if this solves your issue or not. Let me know
@Archie did you check my repo?