a very simple question about compose I’m sure anyo...
# compose
j
a very simple question about compose I’m sure anyone here could answer hehe. Thank you in advance! If I were starting to develop an Android app using Jetpack Compose and then a few months in with project I decided to move to KMM and provide support for the iOS target, could I re-use most of the Jetpack compose stuff or would it be hard to migrate to Compose multiplatform? if it was somehow hard, what would be the challenges I’d face? (assume the android project used Jetpack navigation with Compose library)
s
Your lucky day https://github.com/JetBrains/compose-multiplatform/issues/85 Also for the question in general, it's not exactly 1:1 possible for everything, but you can almost get there. That's what they're going for anyway and are working towards in general. You can also watch this https://www.droidcon.com/2023/07/31/shared-mobile-uis-with-compose-multiplatform/ it includes a live demo of porting an app to KMP from being android only. The more KMP compatible libraries you already use the easiest it's gonna get of course
🎉 1
j
My lucky day, huh? haha awesome! thank you @Stylianos Gakis you are a legend, mate!
c
No way! i didn't htink compose nav would be on ios anytime soon. AHHH. Now I have to decide whether I should use @Tlaster’s precompose lib or what. lol
s
Multiplatform, and soon https://issuetracker.google.com/issues/188693139 typesafe too 😉
1
m
Outstanding!