Issue #16159 - RCTImageStoreManager's priority

Summary:
RCTImageStoreManager and RCTBlobManager have the same priority, hence in certain cases, both are able to handle the request, but this causes non-deterministic behavior. Hence increased ImageStoreManager's Priority to 1 and thereby increasing RCTImageLoader's Priority to 2 to prevent similar issue of same priorities.

Issue: #16159
Closes https://github.com/facebook/react-native/pull/16160

Differential Revision: D6017931

Pulled By: shergin

fbshipit-source-id: 91f2737af4f2f97197734b696105e1cdc5683365
This commit is contained in:
Sai Teja Jammalamadaka 2017-10-09 22:18:34 -07:00 committed by Facebook Github Bot
parent dbe6044074
commit 4e5d50d6ad
2 changed files with 6 additions and 1 deletions

View File

@ -66,7 +66,7 @@ RCT_EXPORT_MODULE()
- (float)handlerPriority
{
return 1;
return 2;
}
- (id<RCTImageCache>)imageCache

View File

@ -32,6 +32,11 @@ static NSString *const RCTImageStoreURLScheme = @"rct-image-store";
RCT_EXPORT_MODULE()
- (float)handlerPriority
{
return 1;
}
- (void)removeImageForTag:(NSString *)imageTag withBlock:(void (^)())block
{
dispatch_async(_methodQueue, ^{