mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Construct FBImagePerfImageInfo and pass to completion handler from within FBIconModule (#51110)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51110 Changelog: [iOS][Changed] Update RCTImageLoader.mm to cast loadHandler to RCTImageLoaderLoggable before calling shouldEnablePerfLogging Replacing cast from RCTImageURLLoaderWithAttribution to RCTImageLoaderLoggable Reviewed By: philIip Differential Revision: D73148595 fbshipit-source-id: 01f61bc60624e2bb9cb4ff9b45094e38ea77dcaa
This commit is contained in:
committed by
Facebook GitHub Bot
parent
43c9a609de
commit
2562440385
@@ -911,7 +911,7 @@ static RCTImageLoaderCancellationBlock RCTLoadImageURLFromLoader(
|
||||
{
|
||||
id<RCTImageURLLoader> loadHandler = [self imageURLLoaderForURL:url];
|
||||
if ([loadHandler respondsToSelector:@selector(shouldEnablePerfLogging)]) {
|
||||
return [(id<RCTImageURLLoaderWithAttribution>)loadHandler shouldEnablePerfLogging];
|
||||
return [(id<RCTImageLoaderLoggable>)loadHandler shouldEnablePerfLogging];
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user