I have a question. I already implement Kotlin module in my React native project. But my need is this:
I have a activity which is written in Kotlin and I am opening it in my RN Project. I want to fire an event from this Kotlin page throught to JS side. I did same part in my MainApplication.java file. I created EventEmitter module also and I can trigger it. But from Kotlin Activity, I dont have an ReactApplicationContext in Kotlin Activity. Could you please give an idea about, how can I trigger event to JS from Kotlin Activity ? I am not good at Kotlin and I search couple days for event emitter topic but I always find an open Activity example.
I have some functionality written in kotlin and I want to call those into java.
both are in same React native Module.
call kotlin from java or vice versa either way would be enough.
I saw on docs and tutorials it easy there but that does not work in RN module.