https://kotlinlang.org logo
#javascript
Title
# javascript
n

Nacho Ruiz Martin

12/09/2023, 11:29 AM
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

Artem Kobzar

12/11/2023, 9:50 AM
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
2 Views