saleel / react-native-super-grid

Responsive Grid View for React Native
MIT License
1.43k stars 153 forks source link

Use Animated components instead of default one? #190

Closed Ryanjso closed 2 years ago

Ryanjso commented 2 years ago

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!

saleel commented 2 years ago

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