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:
Aaron Coplan
2025-05-05 16:37:56 -07:00
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;
}