From ffb690f072aa7dccb2d21f7b6902f6818abb534d 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 ec78c3a5fac..3ffb6a3d5a4 100644 --- a/Libraries/Image/RCTImageLoader.m +++ b/Libraries/Image/RCTImageLoader.m @@ -85,6 +85,11 @@ RCT_EXPORT_MODULE() [[NSNotificationCenter defaultCenter] removeObserver:_decodedImageCache]; } +- (float)handlerPriority +{ + return 1; +} + - (id)imageURLLoaderForURL:(NSURL *)URL { if (!_maxConcurrentLoadingTasks) {