react-native-image-gallery
react-native-image-gallery copied to clipboard
how to add style for image ... high quality image does not rendered
@sathishjobs
` const imageComponent = (props) => {
return (
<Image {...props}
style={[props.style, {...YOUR_STYLE}]}
/>
)
}`
and
<Gallery
imageComponent={imageComponent}
style={{ flex: 1, backgroundColor: '#c3c3c3', }}
images={[
{ source: { uri: 'http://i.imgur.com/XP2BE7q.jpg' }, },
{ source: { uri: 'http://i.imgur.com/5nltiUd.jpg' } },
{ source: { uri: 'http://i.imgur.com/6vOahbP.jpg' } },
{ source: { uri: 'http://i.imgur.com/kj5VXtG.jpg' } }
]}
/>
@samipshah100 's Answer works fine! Should be closed @sathishjobs.