From bc557cf1693ed40b9924e19bd6206255f1dcffcf Mon Sep 17 00:00:00 2001 From: Bartol Karuza Date: Sat, 2 Mar 2019 15:54:39 +0800 Subject: [PATCH] Sync @joshuagross RCTCameraRollManager: fix "all" photos filter Summary: Currently, trying to fetch "all" photos will loop and never complete. Now it appears to produce the expected results (acting like the "All Photos" smart library in Photos) and doesn't loop. Confirmed console log results, showing no loops: P60994983 Reviewed By: PeteTheHeat Differential Revision: D14221545 fbshipit-source-id: 31381b1ba2c673fd210cb95f3b7d0f8ffc23ec3f --- ios/RNCCameraRollManager.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RNCCameraRollManager.m b/ios/RNCCameraRollManager.m index 76542743b..70094309b 100644 --- a/ios/RNCCameraRollManager.m +++ b/ios/RNCCameraRollManager.m @@ -27,7 +27,7 @@ RCT_ENUM_CONVERTER(PHAssetCollectionSubtype, (@{ @"album": @(PHAssetCollectionSubtypeAny), - @"all": @(PHAssetCollectionSubtypeAny), + @"all": @(PHAssetCollectionSubtypeSmartAlbumUserLibrary), @"event": @(PHAssetCollectionSubtypeAlbumSyncedEvent), @"faces": @(PHAssetCollectionSubtypeAlbumSyncedFaces), @"library": @(PHAssetCollectionSubtypeSmartAlbumUserLibrary),