saleel/react-native-super-grid

Use Animated components instead of default one?

Ryanjso opened this issue · 1 comments

This is more of a question than an issue, but wondering if it's possible to tell this package to use an <Animated.Flatlist/> instead of a <Flatlist/>

https://reactnative.dev/docs/animated#animatable-components

I can create a custom animated component using the createAnimatedComponent() component, but swapping in Flatlist would be quicker and easier if possible.

Thanks for any info!

Hi @Ryanjso

It is not possible currently, but I think it should be a simple change is an additional prop. I can merge it quickly if you can do a PR.

Ref: https://github.com/saleel/react-native-super-grid/blob/master/FlatGrid.js#L162