react-native-camera-roll-picker icon indicating copy to clipboard operation
react-native-camera-roll-picker copied to clipboard

suggestions

Open FaridSafi opened this issue 8 years ago • 20 comments

Hello, great component! I am using it in a project and I suggest the following features:

  • loading indicator
  • custom circle-check image

I will try to prepare a pull request

FaridSafi avatar Jun 14 '16 11:06 FaridSafi

What about #4 for custom selected image marker?

superandrew213 avatar Jun 17 '16 04:06 superandrew213

@superandrew213 Thanks for the PR, will merge it after checking the functionality.

jeanpan avatar Jun 17 '16 13:06 jeanpan

#4 : Custom circle-check image has been merged.

jeanpan avatar Jun 17 '16 15:06 jeanpan

Great!

superandrew213 avatar Jun 18 '16 00:06 superandrew213

How about we use ListView to improve performance? Or even better this react-native-sglistview.

If you scroll past 500 photos memory is hitting +1.1gb

superandrew213 avatar Jun 28 '16 08:06 superandrew213

move it to ES6 syntax

st0ffern avatar Jun 29 '16 16:06 st0ffern

@superandrew213. Ok, I will try to use ListView instead in my free time. Thanks for the suggestion.

jeanpan avatar Jun 29 '16 20:06 jeanpan

I try to use ListView,but not easy.I don't know how to recall the renderRow method to show "selectedMarker" component,because when i call setState method the ListView only rerender by render().The renderRow props function not recall.

jiachaosun avatar Jul 14 '16 10:07 jiachaosun

@jiachaosun I have allready put together a SGListView here https://github.com/jeanpan/react-native-camera-roll-picker/pull/7

if you want to test it right away try this until its merged: npm i -S github:stoffern/react-native-camera-roll-picker

st0ffern avatar Jul 14 '16 11:07 st0ffern

@FaridSafi : loading indicator has been added in the latest version. please check it !

jeanpan avatar Jul 16 '16 06:07 jeanpan

Video support would be nice. Any ideas how to go about it? CameraRoll only returns photos.

superandrew213 avatar Jul 16 '16 06:07 superandrew213

@superandrew213 assetType : The asset type, one of 'Photos', 'Videos' or 'All'. (Default: Photos)

st0ffern avatar Jul 16 '16 06:07 st0ffern

Lol mixed it up with this react-native-image-crop-picker

superandrew213 avatar Jul 16 '16 06:07 superandrew213

ah :+1: then i would use this picker and my cropper :) https://github.com/stoffern/react-native-image-cropper

st0ffern avatar Jul 16 '16 07:07 st0ffern

yes I'm playing around with both options testing which one performs the best

superandrew213 avatar Jul 16 '16 07:07 superandrew213

@superandrew213 i know there is a bug with the pan to move in my cropper. I have fixed it just not commited the update yet :smiley:

st0ffern avatar Jul 16 '16 07:07 st0ffern

@jeanpan not to be a copycat or anything but after a view of the code i found out that selecting items would trigger a complete rerender of the SGListView. With that in mind, and the batchSize added from your side and my request of having loading spinners for all images i started to a total rewrite of the component.

https://github.com/stoffern/react-native-mediapicker Please try it and see if you would like to merge it? It has quite a performance boost as selecting items only trigger render of the item itself.

st0ffern avatar Jul 16 '16 17:07 st0ffern

@stoffern thanks for your suggestion. I will prepare a commit for fixing the problem of rerender SGListView.

jeanpan avatar Jul 17 '16 07:07 jeanpan

How do I use the newly added loading indicator?

shireen avatar May 11 '17 22:05 shireen

Dinamic ImageItem ReSize when the Layout Orientation change.

BonnieMilian avatar Dec 06 '17 17:12 BonnieMilian