Skip to content

CameraRoll.getPhotos return just a few on iOS #20462

@andresespinosapc

Description

@andresespinosapc

Environment

Environment:
OS: Linux 4.15
Node: 10.6.0
Yarn: 1.7.0
npm: 6.1.0
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: https://github.com/expo/react-native/archive/sdk-29.0.0.tar.gz => 0.55.4

Description

The CameraRoll.getPhotos function only returns some photos on iOS, while it works perfectly on Android. For example, if I use the following parameters

{
  first: 100,
  assetType: 'All',
  groupTypes: 'All',
}

I only get 39 photos, while I have more than a thousand in my camera roll. I have also tried with multiple different parameters, but the result is the same (or fewer photos because of a filter).

Reproducible Demo

https://snack.expo.io/Hyw-kQa4X

  • I think it must be run on a physical iOS device, because it has to access the camera roll.
  • The demo prints the length of response.length, where response is the resolved value of CameraRoll.getPhotos with the parameters I mentioned earlier.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions