snrostov
10/10/2017, 2:08 PMbabedev
10/10/2017, 2:10 PMsnrostov
10/10/2017, 2:13 PMbabedev
10/10/2017, 2:14 PMbountin
10/10/2017, 2:28 PMts2tk
(https://github.com/Kotlin/ts2kt) is intended to do the job on a general level: Use TypeScript definitions for any library to generate Kotlin headers for it. So you shouldn’t have to write the headers for each and every library by hand.
Sadly, it is currently failing for some advanced TypeScript features, and therefore also for React.
The kotlin-fullstack-sample
goes a different way: Not only are they writing the headers by hand (respective generating them inside the project) but they reimplement parts of React in Kotlin.