Hi, Can i convert DrawableResource to Drawable? I'...
# compose
s
Hi, Can i convert DrawableResource to Drawable? I'm trying to access drawable resource passed from composeResources from common into android code
m
You can get
ByteArray
from common and convert it to bitmap in android or maybe 3rd party libraries offer something more reliable like moko
a
See the thread https://kotlinlang.slack.com/archives/C3PQML5NU/p1728635590907139?thread_ts=1728446264.532449&cid=C3PQML5NU where we discuss this exact thing and I’m very happy to say it got solved for me by the community. Summary: 1. using resources
res.drawable.blah
works but 2. you need to be on compose 1.7.0-alpha01 (or later)