Skip to content

Commit 2562440

Browse files
Aaron Coplanfacebook-github-bot
authored andcommitted
Construct FBImagePerfImageInfo and pass to completion handler from within FBIconModule (#51110)
Summary: Pull Request resolved: #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
1 parent 43c9a60 commit 2562440

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/react-native/Libraries/Image/RCTImageLoader.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ - (BOOL)shouldEnablePerfLoggingForRequestUrl:(NSURL *)url
911911
{
912912
id<RCTImageURLLoader> loadHandler = [self imageURLLoaderForURL:url];
913913
if ([loadHandler respondsToSelector:@selector(shouldEnablePerfLogging)]) {
914-
return [(id<RCTImageURLLoaderWithAttribution>)loadHandler shouldEnablePerfLogging];
914+
return [(id<RCTImageLoaderLoggable>)loadHandler shouldEnablePerfLogging];
915915
}
916916
return NO;
917917
}

0 commit comments

Comments
 (0)