saleel / react-native-super-grid

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

Image Caching / Rendering #175

Closed BlueDevil2k6 closed 3 years ago

BlueDevil2k6 commented 3 years ago

Hi - I'm trying to render using either expo-fast-image or react-native-expo-cached-image and whenever that's used, nothing gets rendered. Has anyone used a library for image caching that worked with the super-grid?

saleel commented 3 years ago

I have not used these libraries, but did you try setting the keyExtractor to assign a unique key to each rendered item?

Also, did you try using FlatList directly?

BlueDevil2k6 commented 3 years ago

Just to close the loop on this. I ended up finding and using react-native-expo-image-cache by @wcandillon for a couple of reasons 1) it worked very nicely in an Expo managed app, 2) it has progressive loading, and 3) he does a pretty good job with his tutorial videos and I think I found one where he covered this library.