Skip to content

Commit 7620509

Browse files
cipolleschifacebook-github-bot
authored andcommitted
Restore Geometry.h with a deprecation message
Summary: In [this commit](facebook@e6cba99), we renamed `Geometry.h` to `Vector.h`. This is the last change of a series of updates that progressively altered the shape of `Geometry.h` from its [original version](https://github.com/facebook/react-native/blob/0.71-stable/ReactCommon/react/renderer/graphics/Geometry.h). This is a breaking change as several libraries in the OSS are depending on Geometry.h and we removed it without deprecating it. This change aims to put the file back, with a deprecation message, so that we can safely remove it in the next version. ## Changelog [General][Fixed] - Restore Geometry.h to avoid breaking change Reviewed By: cortinico Differential Revision: D43621983 fbshipit-source-id: 96b976901f7ec337f2ec64c592e4b4d19d89ab11
1 parent b360109 commit 7620509

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
#pragma once
9+
10+
#include <react/renderer/graphics/Float.h>
11+
#include <react/renderer/graphics/Point.h>
12+
#include <react/renderer/graphics/Rect.h>
13+
#include <react/renderer/graphics/RectangleCorners.h>
14+
#include <react/renderer/graphics/RectangleEdges.h>
15+
#include <react/renderer/graphics/Size.h>
16+
#include <react/renderer/graphics/Vector.h>
17+
18+
#warning \
19+
"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 <react/renderer/graphics/Geometry.h> with #include <react/renderer/graphics/Float.h>"

0 commit comments

Comments
 (0)