Prepare to break the Dependency Cycle between React-graphics and React-Fabric #36385
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
This change moves the
graphics/conversions.h
files fromReactCommon/react/renderer/graphics
toReactCommon/react/renderer/core
, renaming it tographicsConversions.h
.This is required because React-Fabric imports graphics, but graphics imports React-Fabric due to this file.
The change would be breaking, but we don't want to break the ecosystem without even a warning. So, we put back the
conversions.h
file, which now justinclude
the new one and outputs a warning when building. This actually maintain the dep cycle for the current version, but at least users are warned.Changelog:
[iOS][Deprecated] - Deprecate the
ReactCommon/react/renderer/graphics/conversions.h
in favor ofReactCommon/react/core/graphicsConversions.h
Reviewed By: dmytrorykun
Differential Revision: D43836261