Comments (20)
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.
move it to ES6 syntax
from react-native-camera-roll-picker.
@FaridSafi : loading indicator has been added in the latest version. please check it !
from react-native-camera-roll-picker.
@superandrew213. Ok, I will try to use ListView instead in my free time. Thanks for the suggestion.
from react-native-camera-roll-picker.
ah 👍
then i would use this picker and my cropper :)
https://github.com/stoffern/react-native-image-cropper
from react-native-camera-roll-picker.
@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.
What about #4 for custom selected image marker?
from react-native-camera-roll-picker.
@superandrew213 Thanks for the PR, will merge it after checking the functionality.
from react-native-camera-roll-picker.
#4 : Custom circle-check image has been merged.
from react-native-camera-roll-picker.
Great!
from react-native-camera-roll-picker.
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.
@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.
Video support would be nice. Any ideas how to go about it? CameraRoll
only returns photos.
from react-native-camera-roll-picker.
@superandrew213
assetType : The asset type, one of 'Photos', 'Videos' or 'All'. (Default: Photos)
from react-native-camera-roll-picker.
Lol mixed it up with this react-native-image-crop-picker
from react-native-camera-roll-picker.
yes I'm playing around with both options testing which one performs the best
from react-native-camera-roll-picker.
@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.
@Stoffern thanks for your suggestion. I will prepare a commit for fixing the problem of rerender SGListView.
from react-native-camera-roll-picker.
How do I use the newly added loading indicator?
from react-native-camera-roll-picker.
Dinamic ImageItem ReSize when the Layout Orientation change.
from react-native-camera-roll-picker.
Related Issues (20)
- How to restrict image picker to show images from specific gallery folder (DCIM/Camera)
- Need a changelog for v2 HOT 2
- Cannot read property of 'getPhotos' of underfined HOT 2
- Doesn't work for vidoes assetType
- Can we open camera from photo list page?
- Still get CameraRoll error even after reinstalling the package to newer version
- Callback function no longer returns the same data HOT 1
- Absolute Path not found HOT 1
- Null is not an object evaluating _nativeInterface.default.getPhotos
- Add support for groupTypes and groupName
- Images not rendering on Huawei phones
- Infinite loop on pixel phone
- Sealed this.state.selected array
- Update ListView to Flatlist HOT 3
- Need to show Image folders
- prop remove selectedMarker HOT 1
- Is it work now? HOT 2
- render() method in imageItem.js is calling N number of times
- Upgrade to latest react native HOT 1
- TypeError: Cannot read property 'getPhotos' of undefined HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-camera-roll-picker.