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
This commit is contained in:
Nathan Azaria
2016-08-01 07:11:19 +02:00
committed by Mike Grabowski
parent c5d1ae0144
commit 07a970195d
+5
View File
@@ -86,6 +86,11 @@ RCT_EXPORT_MODULE()
[[NSNotificationCenter defaultCenter] removeObserver:_decodedImageCache];
}
- (float)handlerPriority
{
return 1;
}
- (id<RCTImageURLLoader>)imageURLLoaderForURL:(NSURL *)URL
{
if (!_maxConcurrentLoadingTasks) {