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
423 stars 176 forks source link

Add refresh() and fix not re-rendering when config props chang #35

Open flybayer opened 7 years ago

flybayer commented 7 years ago

I need refresh() because I sometimes have new assets added to the CameraRoll while this component is mounted. I need to periodically reload the assets.

Also, sometimes I need to change the configuration props on the fly. Before this PR, those prop changes had no effect.

Hope you like it :)

flybayer commented 7 years ago

I would love to also have pull to refresh built into this component. I may make a PR for that when I get to it.