-
Notifications
You must be signed in to change notification settings - Fork 24.6k
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.getPhotos return just a few on iOS #20462
Comments
I've just asked a friend with the same iPhone model and iOS version as me, and he had no problems. It's really weird. Does someone have any idea why this could happen? |
I am having the same problems but on Android |
This may relate to A test - Run
in a bridged Swift method. See what count that gives. |
It may be that migrating to PHPhotoLibrary solves the issue, but it looks like that theory has not been put to the test yet. @airlaser do you want to open a new separate issue to track the migration from ALAssetsLibrary to PHPhotoLibrary? |
Unless people's environments are starkly different from mine the switch will fix it. My app uses Everything else in React (Image tag, upload libraries, custom image tags, etc) will work just fine with I think the harder part of switching @hramos What is the process for getting something like that done? I've never worked on React Native itself before. |
As part of lean core initiative CameraRoll has been moved to https://github.com/react-native-community/react-native-cameraroll |
@bartolkaruza After upgrading to 0.59.1 I just discovered that CameraRoll no longer works. No errors, no warning. There are no mentions in change logs and no mentions of breaking changes planned or deprecations for CameraRoll. Am I correct in understanding that CameraRoll is no longer going to be maintained within the RN codebase and we should use the community version from v0.59 and forward? |
On top of that, it seems that |
The deprecation is taking place from 0.60 forward. The issues you are facing are related to recent changes in RN core, but the fixes should be made to the RNC repo, as that is the 'official' CameraRoll going forward. I see you have already picked up on that here react-native-cameraroll/react-native-cameraroll#18, so I'm just posting this for anyone coming through here from search. |
@airlaser Can you post these as separate issues please? No-one is tracking this closed issue. |
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
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
The text was updated successfully, but these errors were encountered: