From f9d42ad3939f030dc91d7a633acc041d56ecc11e Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Fri, 2 Oct 2026 00:48:04 -0700 Subject: [PATCH] Remove componentNameByReactViewName from public API (#58771) Summary: Changelog: [Internal] Changes guard for `componentNameByReactViewName.h` to private and removes it from public umbrella. Comment in its implementation file says ``` // We need this function only for the transition period; // eventually, all names will be unified. ``` which strongly suggests it shouldn't be part of the public API. Differential Revision: D122570794 --- .../react/renderer/componentregistry/React/ComponentRegistry.h | 1 - .../renderer/componentregistry/componentNameByReactViewName.h | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react-native/ReactCommon/react/renderer/componentregistry/React/ComponentRegistry.h b/packages/react-native/ReactCommon/react/renderer/componentregistry/React/ComponentRegistry.h index be9dcb54857..19d025d8ecf 100644 --- a/packages/react-native/ReactCommon/react/renderer/componentregistry/React/ComponentRegistry.h +++ b/packages/react-native/ReactCommon/react/renderer/componentregistry/React/ComponentRegistry.h @@ -35,7 +35,6 @@ #include #include #include -#include #undef RN_UMBRELLA_CONTEXT #pragma pop_macro("RN_UMBRELLA_CONTEXT") diff --git a/packages/react-native/ReactCommon/react/renderer/componentregistry/componentNameByReactViewName.h b/packages/react-native/ReactCommon/react/renderer/componentregistry/componentNameByReactViewName.h index 88621a77f3c..a5371eea779 100644 --- a/packages/react-native/ReactCommon/react/renderer/componentregistry/componentNameByReactViewName.h +++ b/packages/react-native/ReactCommon/react/renderer/componentregistry/componentNameByReactViewName.h @@ -7,7 +7,7 @@ #pragma once -#include +#include #include