Join Slack
Powered by
Is it possible to use compose multiplatform withou...
# getting-started
q
Quazi Irfan
03/25/2022, 7:06 PM
Is it possible to use compose multiplatform without Kotlin? I am a Java programmers interested in this library.
m
mkrussel
03/25/2022, 7:08 PM
Compose works by using a plugin to Kotlin compiler, so all compose code must be written in Kotlin.
mkrussel
03/25/2022, 7:09 PM
Now you could still keep everything but the UI in Java.
j
Joffrey
03/25/2022, 7:17 PM
And then realize how much more comfortable it is to write in Kotlin, and migrate your java code :D
plus1
1
q
Quazi Irfan
03/25/2022, 8:05 PM
@mkrussel
Keeping most code in Java and having the UI code in Kotlin sounds interesting. Is there any resource to get started?
m
mkrussel
03/25/2022, 8:26 PM
Not much to learn other than to start learning Kotlin. It was designed to interop with Java, so things in general just work.
https://kotlinlang.org/docs/java-to-kotlin-interop.html
q
Quazi Irfan
03/25/2022, 8:30 PM
Ok. Thanks.
12
Views
Open in Slack
Previous
Next