Amin Roosta
Amin Roosta

Reputation: 1080

Writing react native android module in Kotlin?

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?

Upvotes: 6

Views: 4060

Answers (3)

Dharmendra Pratap Singh
Dharmendra Pratap Singh

Reputation: 1342

Writing plugins in Java or Kotlin doesn't have a big difference as both them compile to bytecode.

Mentioning the Github Sample that has created the same sample Toast module in kotlin.

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

Upvotes: 1

MJ Studio
MJ Studio

Reputation: 4611

I created a simple Kotlin, Swift native module example. Check Github.

Questions or feedbacks are welcome.

Upvotes: 0

spierce7
spierce7

Reputation: 15746

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

Upvotes: 1

Related Questions