-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[CameraRoll] support fetching videos from the camera roll #774
Conversation
…both videos and photos
cc @sahrens |
/** | ||
* Specifies filter on asset type, like 'all', 'photos' or 'videos' | ||
*/ | ||
assetType: ReactPropTypes.string, |
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.
can you make it ReactPropTypes.oneOf(['all', 'photos', 'videos']) instead of writing it in the comments. The comment can say that all
is the default
…ing PropTypes.oneOf. Add support for asset types to CameraRollView.
The latest commit makes Photos the default, fixes the propTypes, and adds support for this property to CameraRollView. |
Can you squash your commits? |
@@ -85,7 +87,7 @@ - (void)callCallback:(RCTResponseSenderBlock)callback withAssets:(NSArray *)asse | |||
} else { | |||
groupTypes = ALAssetsGroupSavedPhotos; | |||
} | |||
|
|||
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.
Make sure to remove the trailing whitespace.
Can you add another selector thingy for assetType to CameraRollViewExample in a followup PR? |
Summary: This adds a parameter for fetching videos from the camera roll. It also changes the default to fetch both videos and photos. Closes facebook/react-native#774 Github Author: Joshua Sierles <joshua@diluvia.net> Test Plan: Imported from GitHub, without a `Test Plan:` line.
This adds a parameter for fetching videos from the camera roll. It also changes the default to fetch both videos and photos.