meliorence / react-native-image-gallery

Pure JavaScript image gallery component for iOS and Android with high-performance and native feeling in mind
715 stars 298 forks source link

More information about the ImageComponent prop #110

Open MarkDaleman opened 6 years ago

MarkDaleman commented 6 years ago

How exactly do I use this prop? I want to use as an example my own cachedimage component, but I've got no idea how to implement this with the gallery.

gauravbhtngr commented 6 years ago

Try imageComponent={(image, imageDimensions) => { return (<YourImageComponent source={{uri: image.image.uri}}/>) }}