Hi folks, I have some Kotlin code I’d like to bund...
# multiplatform
c
Hi folks, I have some Kotlin code I’d like to bundle into an SDK and consume in a React Native app. It seems, from searching this channel, that people may be doing this, but when I google the topic the results tend to be KMM vs RN type articles. Whereas I want to just produce a platform-agnostic SDK for handling messaging with some services. Is anyone using Kotlin code with React Native somehow? Thanks!
b
Hmm, export it as js module maybe?
c
Perhaps it’s as simple as that? I’m brand new to both RN and KMM so maybe that’s all it needs
k
I actually have this setup in my current project (KMM + RN). The thing is, you’ll have to setup two different things - one is KMM module, handling messaging with some services, and RN Native module consuming that (and exposing it to your app)
a
Yes, I am currently doing this. Providing a JS binary for another team to consume
b
Just so we're all clear, this is no longer KMM, but rather wider KMP as you need to export js module as opposed to ios framework or aar
a
indeed this is not KMM
c
Thanks for all your responses everyone