Hello <@UC44UESH4>! Is there any way to read a Byt...
# moko
m
Hello @alex009! Is there any way to read a ByteArray from one of the generated resources? I'm trying to implement Compottie, and it needs a ByteArray to load the animations that I have added to the assets folder.
Copy code
val composition by rememberLottieComposition {
        LottieCompositionSpec.DotLottie(
            archive = CoreRes.assets.armRaise_lottie.readBytes(), // readBytes() would be great <-----
            animationId = animationId
        )
}
a
hi. please create expect/actual extension function for AssetResource. check readText extension to do simmilar logic for your case