Libraries Found: We have kotlin-react, kotlinx.htm...
# react
g
Libraries Found: We have kotlin-react, kotlinx.html libraries to build front end app using kotlin. Problem: We have react for web and react native for mobile app, we are writing 2 code for building UIs. Thoughts: When kotlin can emit JS code and provide dsl for html tags to create react component, Is it possible to make them emit the react native code/components. Any thoughts on this ? Worth exploring ? Do you guys know any other information about such similar problems ?
t
AFAIK 2 things required for native: 1. Wrappers of
react-dom
analog for native 2. Multiplatform version of
kotlin-react
g
Are there any good reference/article which can explain how these dependencies work together to create the html ?
t
It is classic multiplatform. Which target do you need for
native
?
g
react-native for mobile app react for web app
a
I think
kotlin-react
for native doesn't have to be
multiplatform
as it works in the
js
platform
t
kotlin-react
can be
multiplatform
&
js
at the same moment. In
1.4
it will be more transparent
a
meaning you would be able to compile
kotlin-react
to
jvm
and native desktop apps with
kotlin-native
?
am I missing something?
t
js
and
native
have common classes, which can be located in
kotlin-react