https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
g

galex

03/22/2019, 7:10 AM
Hi, can I depend on kotlin-js-wrappers to create React components in a multiplatform project? When I added the dependency to my JS/Node target I couldn’t import RComponent for instance
s

spand

03/22/2019, 7:21 AM
Works for me in the multiplatform-js plugin (or whatever its called).
g

galex

03/22/2019, 7:31 AM
Yup, indeed it works in the gradle project itself. I am trying to import those in the mp project so that I can create views as well, not only models, business logic and networking. We can build UI for Android and iOS, so I am trying to do the same for React
s

spand

03/22/2019, 7:38 AM
Oh, so you want react in the common module ?
g

galex

03/22/2019, 10:56 AM
Yes exactly
For the JS platform part
3 Views