I'd like to use <https://rive.app/> this one with ...
# android
c
I'd like to use https://rive.app/ this one with Composable functions. But I don't want to use old way like AndroidView.
c
you can wrap the android view into a
AndroidView
Composable. https://developer.android.com/jetpack/compose/interop/interop-apis#views-in-compose
other than that you have to wait until the library supports Composables.
or you use a very popular animation framework that already supports composables. https://github.com/airbnb/lottie
c
I am using Lottie compose but it uses a lot of memory. And it causes OutOfMemory issue. So, I want to make rive compose. Is that difficult?
I guess the hardest thing is to retain the state of the animation if the composable is re-rendered.
c
I see, Thank you. I think I should try with AndroidView first and then, look into the fundamental. 🙂
199 Views