From 0e621295fba2ddf3e4d3bcc04f5b8046da2cc213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Tue, 9 Jul 2024 14:55:58 -0700 Subject: [PATCH] Propagate intersection times in image performance logging for RN (#45350) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45350 Changelog: [internal] Reviewed By: steelrooter Differential Revision: D59524510 fbshipit-source-id: 28d38e199fcfcaf421296a4499e11138d43f3b04 --- .../react-native/Libraries/Image/ImageViewNativeComponent.js | 1 + .../Libraries/__tests__/__snapshots__/public-api-test.js.snap | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/Image/ImageViewNativeComponent.js b/packages/react-native/Libraries/Image/ImageViewNativeComponent.js index 0dc98c64072..29ff80a6140 100644 --- a/packages/react-native/Libraries/Image/ImageViewNativeComponent.js +++ b/packages/react-native/Libraries/Image/ImageViewNativeComponent.js @@ -50,6 +50,7 @@ interface NativeCommands { +setIsVisible_EXPERIMENTAL: ( viewRef: ElementRef>, isVisible: boolean, + time: number, ) => void; } diff --git a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap index 00392c37415..9f1ca1d4acf 100644 --- a/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap +++ b/packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap @@ -4628,7 +4628,8 @@ exports[`public API should not change unintentionally Libraries/Image/ImageViewN interface NativeCommands { +setIsVisible_EXPERIMENTAL: ( viewRef: ElementRef>, - isVisible: boolean + isVisible: boolean, + time: number ) => void; } declare export const Commands: NativeCommands;