From 0676eb63a276e2d40031d4eb1979d7d3298d1444 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Fri, 22 May 2026 14:18:06 -0700 Subject: [PATCH] Remove unreferenced ViewNativeComponentType (#56943) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56943 Discovered while I try to understand the best shape for ref types. We have no other 1P component usage pattern for `React.ElementRef`, except for two now-removed fbsource instances, replaced with `React.ElementRef`. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D106093290 fbshipit-source-id: de98816b099c0e65daa40564fd41a1f60b8b3b3a --- .../Libraries/Components/View/ViewNativeComponent.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/react-native/Libraries/Components/View/ViewNativeComponent.js b/packages/react-native/Libraries/Components/View/ViewNativeComponent.js index 600eee6fedb..2a28cd4bd99 100644 --- a/packages/react-native/Libraries/Components/View/ViewNativeComponent.js +++ b/packages/react-native/Libraries/Components/View/ViewNativeComponent.js @@ -42,5 +42,3 @@ export const Commands: NativeCommands = codegenNativeCommands({ // Additional note: Our long term plan is to reduce the overhead of the // and wrappers so that we no longer have any reason to export these APIs. export default ViewNativeComponent; - -export type ViewNativeComponentType = HostComponent;