From 07a970195d54d366f3bedd473c082495df8b4452 Mon Sep 17 00:00:00 2001 From: Nathan Azaria Date: Wed, 27 Jul 2016 05:58:51 -0700 Subject: [PATCH] Fix RCTImageLoader's priority Summary: There is a conflict between RCTImageLoader and RCTAssetsLibraryRequestHandler on handling images, which was caused by making RCTPhotoLibraryImageLoader able to handle assets library requests as well. This gives more priority to RCTImageLoader instead. Fixes #9031. Reviewed By: mmmulani Differential Revision: D3627451 fbshipit-source-id: 7ffd2c66f43ce1479c9a117768fb2d29f9d0dc08 --- Libraries/Image/RCTImageLoader.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/Image/RCTImageLoader.m b/Libraries/Image/RCTImageLoader.m index 11428a56840..54cf6ce790b 100644 --- a/Libraries/Image/RCTImageLoader.m +++ b/Libraries/Image/RCTImageLoader.m @@ -86,6 +86,11 @@ RCT_EXPORT_MODULE() [[NSNotificationCenter defaultCenter] removeObserver:_decodedImageCache]; } +- (float)handlerPriority +{ + return 1; +} + - (id)imageURLLoaderForURL:(NSURL *)URL { if (!_maxConcurrentLoadingTasks) {