|
|
|
|
|
by cel1ne
3659 days ago
|
|
I'm working on an Android app. I use react-native solely for the UI which I update, redux-style, with a state-tree. The state and all it's transition and event-handling is done in Kotlin/Java.
I've written a small helper that generates kotlin-Interfaces from the react/jsx-files and automatically connects everything. This way I have react's HotReload and the other benefits for UI-design and a proper typed language and IDE for networking and everything else. Including compile-time checking of events and properties of the UI. Plus: Kotlin can compile to JavaScript, so if I ever want to port the whole thing to iOS, i just have to switch out a few APIs. |
|
http://anvil.site/
https://github.com/brianegan/bansa