Hey! While trying to consume my shared code in a ...
# javascript
n
Hey! While trying to consume my shared code in a React app I can see that the
@JsExport
annotation works only for a subset of Kotlin features. For example, I can’t export a
sealed class
nested inside an interface or some classes that come from a 3rd party library if they are not marked with
JsExport
. Is this expected? What are the strategies to mitigate this without messing a lot with code that is already used for mobile platforms? Thanks!
a
Hey. Yes, for now it's expected. We are working on increasing number of Kotlin declarations that can be exported into JS-world. Could I ask you to create a ticket in YouTrack with your use case.
👍 1
gratitude thank you 1