Jay Meistrich @jayz.us · Jan 3

I'm trying to make a Reanimated component for Legend List, but I'm not very experienced with Reanimated so I'm not 100% sure how to do it... It doesn't seem to like being given a function component. So is this the right way to do it? It seems to work?

1 likes 1 replies

?

Replies

Krzysztof Magiera · Jan 3

depends what you want to do with it. I imagine this is for animating underlying scroll view properties. In that case you could just swap out the ScrollView with one exported by reanimated (Reanimated.ScrollView). This way you wouldn't need that intermediate class component there at all.