https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
k

khalid64927

10/30/2023, 4:03 AM
I am considering building a Compose Multiplatform library intended for apps developed with React Native. I was wondering if anyone has attempted this. My plan is to publish a CocoaPod dependency for iOS and an AAR dependency for Android from the KMP shared module. Then, I will create a React Native library module that incorporates them and publish it as an npm module that apps can easily use.
p

Pablichjenkov

10/30/2023, 4:11 AM
I haven't tried but keep in mind that the size this library will add to a consumer project won't be small. If you are ok with that then go for it 😃
k

khalid64927

10/31/2023, 4:17 AM
Yeah besides that, I am wondering if it is even possible to show compose BottomSheet over React Native view. The feature that am considering is Payment Bottom Sheet exactly like this
p

Pablichjenkov

10/31/2023, 4:28 AM
I see, I really can't tell because I've never done that, not even tried. Technically it seems to be possible, react-native bridges into the native View system so what is in the background is a native view after all. I know now there is react skia which is a bit different but shouldn't be a problem. You can try it and see what happens