Hi guys i'm working with compose multiplatform, i ...
# compose
t
Hi guys i'm working with compose multiplatform, i wanna ask how to load image resource i tried
moko-resource
but it only can build for desktop. So have any library or way to load image resource in CMP?
q
👋 I'm using moko-resources without any issue on KMM (android/iOS) with compose. Moko-resources is specifically built for this as their github repo states:
Resources access for mobile (android & ios) Kotlin Multiplatform development
t
I'm using moko-resources without any issue on KMM (android/iOS) with compose. Moko-resources is specifically built for this as their github repo states:
i see config for mobile but u can build it on web?
q
and I haven't used it but usage should look like this:
MR.images.getImageByFileName("image.png")
t
now i'm use library in compose 1.5.0 and kotlin 1.9, i think it not work in these version https://github.com/icerockdev/moko-resources/issues/590
i can not build for mobile now b/c error not references