Is there a way to move a view from a commonMain to...
# compose-ios
s
Is there a way to move a view from a commonMain to another module?
java.lang.NoSuchMethodError: No static method MainView(Landroidx/compose/runtime/Composer;I)V in class Lcom/kraker/pokemon/Main_androidKt;
Main_android.kt
can be found in shared/main/commonMain
👍 1
d
Yes, commonMain sourceSet may exist in another module. But, I think your question is related to sourceSet names. There are some sourceSets: commonMain, androidMain, iosMain. The easiest way to have reusable part of code in commonMain. In sourceSets iosMain and androidMain you can specify platform dependent code. For example, you can have some Composable code spefically for Android.