Git Product home page Git Product logo

Comments (20)

superandrew213 avatar superandrew213 commented on May 30, 2024 4

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

from react-native-camera-roll-picker.

st0ffern avatar st0ffern commented on May 30, 2024 3

move it to ES6 syntax

from react-native-camera-roll-picker.

jeanpan avatar jeanpan commented on May 30, 2024 3

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

from react-native-camera-roll-picker.

jeanpan avatar jeanpan commented on May 30, 2024 1

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

from react-native-camera-roll-picker.

st0ffern avatar st0ffern commented on May 30, 2024 1

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

from react-native-camera-roll-picker.

st0ffern avatar st0ffern commented on May 30, 2024 1

@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 😃

from react-native-camera-roll-picker.

superandrew213 avatar superandrew213 commented on May 30, 2024

What about #4 for custom selected image marker?

from react-native-camera-roll-picker.

jeanpan avatar jeanpan commented on May 30, 2024

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

from react-native-camera-roll-picker.

jeanpan avatar jeanpan commented on May 30, 2024

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

from react-native-camera-roll-picker.

superandrew213 avatar superandrew213 commented on May 30, 2024

Great!

from react-native-camera-roll-picker.

jiachaosun avatar jiachaosun commented on May 30, 2024

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.

from react-native-camera-roll-picker.

st0ffern avatar st0ffern commented on May 30, 2024

@jiachaosun I have allready put together a SGListView here #7

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

from react-native-camera-roll-picker.

superandrew213 avatar superandrew213 commented on May 30, 2024

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

from react-native-camera-roll-picker.

st0ffern avatar st0ffern commented on May 30, 2024

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

from react-native-camera-roll-picker.

superandrew213 avatar superandrew213 commented on May 30, 2024

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

from react-native-camera-roll-picker.

superandrew213 avatar superandrew213 commented on May 30, 2024

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

from react-native-camera-roll-picker.

st0ffern avatar st0ffern commented on May 30, 2024

@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.

from react-native-camera-roll-picker.

jeanpan avatar jeanpan commented on May 30, 2024

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

from react-native-camera-roll-picker.

shireen avatar shireen commented on May 30, 2024

How do I use the newly added loading indicator?

from react-native-camera-roll-picker.

BonnieMilian avatar BonnieMilian commented on May 30, 2024

Dinamic ImageItem ReSize when the Layout Orientation change.

from react-native-camera-roll-picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.