Skip to content

Commit

Permalink
Fix RCTImageLoader's priority
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nathanajah authored and Facebook Github Bot 1 committed Jul 27, 2016
1 parent c3e8c82 commit ffb690f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Libraries/Image/RCTImageLoader.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ - (void)dealloc
[[NSNotificationCenter defaultCenter] removeObserver:_decodedImageCache];
}

- (float)handlerPriority
{
return 1;
}

- (id<RCTImageURLLoader>)imageURLLoaderForURL:(NSURL *)URL
{
if (!_maxConcurrentLoadingTasks) {
Expand Down

0 comments on commit ffb690f

Please sign in to comment.