react-native-image-gallery icon indicating copy to clipboard operation
react-native-image-gallery copied to clipboard

how to add style for image ... high quality image does not rendered

Open sathishjobs opened this issue 6 years ago • 2 comments

sathishjobs avatar Mar 24 '18 08:03 sathishjobs

@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 avatar Apr 07 '20 02:04 samipshah100

@samipshah100 's Answer works fine! Should be closed @sathishjobs.

krunalp1993 avatar Apr 17 '20 03:04 krunalp1993