https://kotlinlang.org logo
Title
z

zhuinden

03/22/2021, 7:49 AM
Does anyone directly reuse Compose code between Android and Desktop, or do most people write this code separately (one platform only)?
j

jim

03/22/2021, 7:58 AM
I would hope they write the code to be shared via Kotlin MPP as demonstrated here: https://github.com/JetBrains/compose-jb/tree/master/examples/imageviewer
i

Igor Demin

03/22/2021, 8:17 AM
Probably in terms of sharing code between Android/Desktop todoapp or issues will be a better example
d

Danish Ansari

03/22/2021, 10:55 AM
Yeah it's reusable, I'm sharing 98% of the code in one my open source library which is in very early stage, that's why it's private for now But as shared above those are some really great example of shared code between Desktop and Android