From c4dbe54b84cb7c40a2a9e64e47460bce818e6a43 Mon Sep 17 00:00:00 2001 From: Jakub Piasecki Date: Fri, 9 Oct 2026 01:33:43 -0700 Subject: [PATCH] Remove deprecated graphics/Geometry.h and graphics/conversions.h (#58879) Summary: `react/renderer/graphics/Geometry.h` (deprecated in 2023 in favour of the individual geometry headers) and `react/renderer/graphics/conversions.h` (deprecated in favour of `react/renderer/core/graphicsConversions.h`) have both emitted a deprecation warning for several releases. Remove them. Libraries should include ``, or `` for the conversions, instead. Changelog: [General][Breaking] - Remove deprecated `react/renderer/graphics/Geometry.h` and `react/renderer/graphics/conversions.h`; include `` or `` instead Reviewed By: christophpurrer Differential Revision: D123602894 --- .../react/renderer/graphics/Geometry.h | 19 ------------- .../react/renderer/graphics/conversions.h | 27 ------------------- 2 files changed, 46 deletions(-) delete mode 100644 packages/react-native/ReactCommon/react/renderer/graphics/Geometry.h delete mode 100644 packages/react-native/ReactCommon/react/renderer/graphics/conversions.h diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/Geometry.h b/packages/react-native/ReactCommon/react/renderer/graphics/Geometry.h deleted file mode 100644 index a80206099457..000000000000 --- a/packages/react-native/ReactCommon/react/renderer/graphics/Geometry.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#pragma once - -#include -#include -#include -#include -#include -#include -#include - -#warning \ - "The Geometry.h file is deprecated and will be removed in the next version of React Native. Please update your #include and #import statements to use the specific files. For example, if you imported Geometry.h to use Float.h, replase the #include with #include " diff --git a/packages/react-native/ReactCommon/react/renderer/graphics/conversions.h b/packages/react-native/ReactCommon/react/renderer/graphics/conversions.h deleted file mode 100644 index e8a016d8958c..000000000000 --- a/packages/react-native/ReactCommon/react/renderer/graphics/conversions.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (c) Meta Platforms, Inc. and affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -#pragma once - -#include - -// This file belongs to the React-graphics module. -// This file also used to have a reference to two files that are located in the -// react/renderer/core folder. That folder belongs to a module that is called -// React-Fabric. -// The React-Fabric module declares an explicit dependency on -// React-graphics. Including those files in a React-graphics' file created a -// circular dependency because React-Fabric was explicitly depending on -// React-graphics, which was implicitly depending on React-Fabric. We break that -// dependency by moving the old `graphics/conversions.h` file to the -// React-Fabric module and renaming it `core/graphicsConversions.h`. - -#warning \ - "[DEPRECATION] `graphics/conversions.h` is deprecated and will be removed in the future. \ - If this warning appears due to a library, please open an issue in that library, and ask for an update. \ - Please, replace the `#include ` statements \ - with `#include `."