I have experience with React.js, so ReactNative id...
# kotlin-native
a
I have experience with React.js, so ReactNative ideally shouldn’t be a mountainous effort. I know a bit of Dart too, so Fluttr should also eventually become easier. But, I like the way Kotlin works, and was wondering if learning Kotlin will be a valuable time investment
j
You are able to reuse code between platforms, say if you target not only iOS but also Android. With #multiplatform you are able to share code, even with JS parts, if you decide to use Flutter or ReactNative. Thanks to Swift and Obj-C interop it is possible to write the app ui with Kotlin/Native too. Also, Kotlin is statically typed language, it may help to have less bugs
a
so we can create iOS UI using Kotlin/Native?
That’s news to me, because from my understanding, Kotlin/Native expects iOS specific code and XCode to build the UI on iOS
j
You will still need XCode for resource, signing and so on. What you can do - you may replace Switf/Obj-C build with Kotlin/Native produced binary
a
that’s awesome!
I don’t mind learning XCode for iOS device specific stuff. What I do mind is Kotlin/Native requiring me to spend time with Android, iOS, Kotlin/Native
The example URL you gave is really helpful
j
And you may import Frameworks or C libraries with
cinterop
tool to make the whole thing easier
a
so it looks a lot more mature and serious than what I had earlier found it to be
from that, it looks like I can create widgets and views in Kotlin/Native which are rendered through things like OpenGL layer, on iOS and Android both. Is that a correct understanding?
j
From my point of view - one need to implement iOS and Android apps together. That means code-reuse is hard and Kotlin/Native is here to help to share common logic/code between platforms. Event to share code with the server-side or client-side
a
interesting. I’ll play with Kotlin Native first and see it’s capabilities once I am comfortable with the language (first impression is really great so far), and then take a decision
But the resources you shared really help a lot. Thanks so much!