jeanpan / react-native-camera-roll-picker

📷 A React Native component providing images selection from camera roll
https://www.npmjs.com/package/react-native-camera-roll-picker
MIT License
422 stars 176 forks source link

Avoid rerender of all images when selecting one #98

Open akontaroudis opened 4 years ago

akontaroudis commented 4 years ago

When there is a long list of images rendered there is a noticeable lag when selecting an image. This is due to the fact that all ImageItem components are rerendered. This is simple change to make ImageItem a PureComponent.