Hi, is Kotlin Multiplatform comparable to React Na...
# multiplatform
a
Hi, is Kotlin Multiplatform comparable to React Native? In terms of features, libraries and other things. Maybe is a dumb question, sorry I’m starting with mobile development!
a
KMP
is just a way to write cross-platform, as well as platform specific Kotlin code, and compile it for various targets.
Compose Multiplatform
(formerly Compose Desktop) is a UI library that uses KMP to compile and run on various targets, such as Android, iOS, and Desktop.
👍 2
Compose is indeed some what similar to react native in the over all programming style and architectural ideas
👍 2
however React Native uses the actual native UI widgets on each platform, where as Compose does not. It simple gets a rendering surface and draws everything on it's own.
👍 2
KMP however provides a path for you to be able to implement platform native UI on each platform if you want. But unlike React Native, you would not be sharing UI code at all in that case.
👍 1
You would be sharing the business logic layers below the UI layer, but you would implement your UI on each platform, fully duplicating that work.
👍 1
m
I'd say if You already have a react native app kotlin can be a nice way to abstract the business logic but when You start from scratch it is far less complicated to stick with just one language/framework