You are currently viewing Your opinions on the current state of the Kotlin Multiplatform and Kotlin/JS

Your opinions on the current state of the Kotlin Multiplatform and Kotlin/JS

Hello

First, a little about my use case – our company develops a relatively large Java desktop app. For now, we want to port its functionality to other platforms (Android/iOS, Web). There are multiple solutions for cross-platform development, such as React Native, Flutter, and the Kotlin Multiplatform project, which I am interested in the most.

The KMM seems like an interesting pick as it will allow us to easily port our business logic. After looking through the docs and demos, I have a mixed feeling.

I am more or less sure KMM will help us with the development for Android and iOS. However, I tried to create a simple web app with Kotlin/react wrapper and along the way encountered some problems, which can be only be explained by the immaturity of this technology. Here is what bothers me:

  • Different versions of Kotlin/react wrapper have differences in react component philosophy. An older version favors the creation of class-based components, while the newest one only allows functional components.
  • Most of the official examples on Github are outdated. There is also contradiction on the JetBrains website – some examples use an older version of wrappers, others – newer versions, and they are incompatible.
  • Continuing on the examples and docs – there is no single source of truth. It appears to me that the examples you see are the only docs pieces available.

The tech looks very promising to me, so I was wondering maybe I missed/misunderstood something? Maybe there is a place with some well-written docs? Do you think Kotlin Multiplatform is ready for prod, especially Kotlin/React wrappers?

Edit:

Also, what are your thoughts on Compose Multiplatform/for Web? Do you think it is aimed to be the main UI framework, replacing React wrappers?

submitted by /u/PicoloPotatoDish
[link] [comments]