-
Notifications
You must be signed in to change notification settings - Fork 432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added imageSize and playableDuration to include
param, deletes isStored
#187
Added imageSize and playableDuration to include
param, deletes isStored
#187
Conversation
@hsource the other PR is merged, happy to help merging this |
Thanks! I rebased the change and retested it, and updated the GIFs in the original post! Take a look. It should be ready for review and submission @bartolkaruza |
include
paraminclude
param, deletes isStored
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I only have one question regarding that success boolean returned value.
android/src/main/java/com/reactnativecommunity/cameraroll/CameraRollModule.java
Show resolved
Hide resolved
Thank you for contributing @hsource ! |
# [3.0.0](v2.0.0...v3.0.0) (2020-06-23) ### Features * Added imageSize and playableDuration to `include` param, deletes isStored ([#187](#187)) ([ec33d32](ec33d32)) ### BREAKING CHANGES * imageSize and playableDuration are no longer included by default to improve performance
🎉 This PR is included in version 3.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Summary
This is another change that is not backwards compatible
I realized that the Android implementation still had poor performance since it looped through individual images to populate
image.width/height
(some of the time) andimage.playableDuration
(for every video).Excluding
playableDuration
in particular improves performance significantly when the user has videos.This change:
include
params forimage.width
,image.height
, andimage.playableDuration
Side change:
isStored
output that's just a boolean always set to true on iOSTest Plan
Added toggles to GetPhotosPerformanceExample.
What's required for testing (prerequisites)?
Just the standard
yarn start:ios
andyarn start:android
What are the steps to reproduce (after prerequisites)?
Compatibility
Checklist
README.md
example/App.js
)