Sharing logic, not UI
Possibly the greatest differentiating factor between Kotlin multiplatform and other existing cross-platform approaches is the fact that Kotlin multiplatform aims to share logic, not UI elements. With Kotlin multiplatform, you can share things such as model objects, important business logic, and tests. However, it is likely that you wouldn't be sharing any UI elements across your build targets. This is in stark contrast to solutions such as React Native or Flutter, which tightly integrate the logic and UI for an application.
In a typical Kotlin multiplatform project, models, business logic, high-level architecture, tests, and more would be defined in common Kotlin code. That code would then be consumed by each individual ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access