From 8a83b5b1dbdc8ecd3d5acb68ccd32336a7d50e44 Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Wed, 30 Sep 2026 07:39:34 -0700 Subject: [PATCH] Remove componentNameByReactViewName from public API 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 be9dcb54857f..19d025d8ecfe 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 88621a77f3c0..a5371eea7793 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