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 returns photos if assetType is equal to "Videos" #22341

Closed
indapublic opened this issue Nov 19, 2018 · 5 comments
Closed

CameraRoll returns photos if assetType is equal to "Videos" #22341

indapublic opened this issue Nov 19, 2018 · 5 comments
Labels
API: CameraRoll Bug Resolution: Locked This issue was locked by the bot.

Comments

@indapublic
Copy link

Environment

React Native Environment Info:
System:
OS: macOS High Sierra 10.13.6
CPU: (4) x64 Intel(R) Core(TM) i5-4288U CPU @ 2.60GHz
Memory: 29.58 MB / 8.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 8.12.0 - ~/.nvm/versions/node/v8.12.0/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 6.4.1 - ~/.nvm/versions/node/v8.12.0/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
Android SDK:
API Levels: 23, 25, 26, 27, 28
Build Tools: 27.0.3, 28.0.3
System Images: android-27 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.2 AI-181.5540.7.32.5056338
Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild
npmPackages:
react: 16.6.1 => 16.6.1
react-native: 0.57.5 => 0.57.5
npmGlobalPackages:
react-native-cli: 2.0.1

Description

I receive photos in iOS app, despite the fact that I set assetType: 'Videos'

Reproducible Demo

const defaultParams: GetPhotosParamType = {
    first: 6,
    groupTypes: 'All',
    after: undefined,
};
Promise.all([
    CameraRoll.getPhotos({
    ...defaultParams,
    assetType: 'Photos',
    }),
    CameraRoll.getPhotos({
    ...defaultParams,
    assetType: 'Videos',
    })
]).then(results => {
    console.warn(results[0]);
    console.warn(results[1]);
    console.warn(results[0].edges[0].node.image.uri === results[1].edges[0].node.image.uri);
});

screen shot 2018-11-19 at 16 36 08

@ZackLeonardo
Copy link

+1

@indapublic
Copy link
Author

@ZackLeonardo FYI I used https://github.com/pentarex/react-native-gallery-manager for those purposes

@linux08
Copy link

linux08 commented Feb 19, 2019

@indapublic have you been able to find a fix, currently experiencing same issue.

@indapublic
Copy link
Author

@linux08 As I said before, I moved to https://github.com/pentarex/react-native-gallery-manager

@cpojer
Copy link
Contributor

cpojer commented Mar 19, 2019

This issue has been moved to react-native-cameraroll/react-native-cameraroll#15.

@cpojer cpojer closed this as completed Mar 19, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Mar 19, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API: CameraRoll Bug Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants