does anyone have a code example of a recycler view...
# compose-android
m
does anyone have a code example of a recycler view being rendered inside a composable?
I'm interested in knowing how to update its state, from jetpack compose ones
s
Haven’t done this myself really, but wouldn’t a
AndroidView
composable be what you want, where in the
update
function you submit the items to it so that it happens on each recomposition?
m
yep, I've managed to do it, by having a reference of the view outside AndroidView, and calling
submit
inside of the update block it's just a weird way of thinking, but it works