Skip to content
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

Closed
wants to merge 4 commits into from
Closed

[CameraRoll] support fetching videos from the camera roll #774

wants to merge 4 commits into from

Conversation

jsierles
Copy link
Contributor

@jsierles jsierles commented Apr 9, 2015

This adds a parameter for fetching videos from the camera roll. It also changes the default to fetch both videos and photos.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 9, 2015
@vjeux
Copy link
Contributor

vjeux commented Apr 9, 2015

cc @sahrens

/**
* Specifies filter on asset type, like 'all', 'photos' or 'videos'
*/
assetType: ReactPropTypes.string,
Copy link
Contributor

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

@vjeux
Copy link
Contributor

vjeux commented Apr 9, 2015

<vjeux> what happens when you display a video element in ? Does it fatal? or shows the thumbnail?
<corp> shows a thumbnail

…ing PropTypes.oneOf. Add support for asset types to CameraRollView.
@jsierles
Copy link
Contributor Author

jsierles commented Apr 9, 2015

The latest commit makes Photos the default, fixes the propTypes, and adds support for this property to CameraRollView.

@brentvatne brentvatne changed the title support fetching videos from the camera roll [CameraRoll] support fetching videos from the camera roll Jun 1, 2015
@sahrens
Copy link
Contributor

sahrens commented Jun 1, 2015

Can you squash your commits?

@@ -85,7 +87,7 @@ - (void)callCallback:(RCTResponseSenderBlock)callback withAssets:(NSArray *)asse
} else {
groupTypes = ALAssetsGroupSavedPhotos;
}

Copy link
Contributor

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.

@sahrens
Copy link
Contributor

sahrens commented Jun 1, 2015

Can you add another selector thingy for assetType to CameraRollViewExample in a followup PR?

bartolkaruza pushed a commit to bartolkaruza/react-native-cameraroll that referenced this pull request Feb 23, 2019
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.
ayushjainrksh referenced this pull request in MLH-Fellowship/react-native Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants