mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Mike Grabowski
parent
c5d1ae0144
commit
07a970195d
@@ -86,6 +86,11 @@ RCT_EXPORT_MODULE()
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:_decodedImageCache];
|
||||
}
|
||||
|
||||
- (float)handlerPriority
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
- (id<RCTImageURLLoader>)imageURLLoaderForURL:(NSURL *)URL
|
||||
{
|
||||
if (!_maxConcurrentLoadingTasks) {
|
||||
|
||||
Reference in New Issue
Block a user