Open sonique6784 opened 2 years ago
My thoughts on Roman's answer here:
While we are waiting K2, why not to warn users of the useResource
function that it works only on desktop? Like it's done with expect/actual if you forget to implement all actuals.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
I'm not able to use
useResource
andloadImageBitmap
when targeting Android. I do use these functions on Desktop (Mac), and it works well.I believe it is because
useResource
doesn't exists in the Android API, instead we havepainterResource
,fontResource
...https://developer.android.com/reference/kotlin/androidx/compose/ui/res/package-summary