Writing react native android module in Kotlin?

断了今生、忘了曾经 提交于 2020-03-22 03:47:47

问题


React native documentation provides a Toast Module example written in java.

What does the same example look like in Kotin?
Is there any special steps to configure the android project?


回答1:


Writing plugin in java or kotlin doesn't have a big difference as both compile to bytecode.

Mentioning the Github Sample that has created the same sample Taost moduel in kotlin.

https://github.com/ios122/kotlin-module-sample-for-reactnative




回答2:


Here is a sample with instructions of a react-native application written with Kotlin. Follow the README. https://github.com/ScottPierce/kotlin-react-native



来源:https://stackoverflow.com/questions/46216452/writing-react-native-android-module-in-kotlin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!