From c66cc4fb4989095648bb245a6dc3189c70782bad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ignacio=20Guerrero=20VInueza?= Date: Thu, 4 Apr 2019 12:12:00 -0500 Subject: [PATCH] [FIX][iOS] All mediaTypes return order This fixes the wrong return order when you fetch photos/videos (all) --- ios/RNCCameraRollManager.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/RNCCameraRollManager.m b/ios/RNCCameraRollManager.m index 07d2ff697..32228fcf2 100644 --- a/ios/RNCCameraRollManager.m +++ b/ios/RNCCameraRollManager.m @@ -61,7 +61,8 @@ RCT_ENUM_CONVERTER(PHAssetCollectionSubtype, (@{ "'videos' or 'all'.", mediaType); } // This case includes the "all" mediatype - return nil; + PHFetchOptions *const options = [PHFetchOptions new]; + return options; } }