Skip to content

Commit

Permalink
Delete CoreFeatures::excludeYogaFromRawProps
Browse files Browse the repository at this point in the history
Summary:
I'm deleting CoreFeatures::excludeYogaFromRawProps in favor of ReactNativeFeatureFlags::excludeYogaFromRawProps();

changelog: [internal] internal

Differential Revision: D60124448
  • Loading branch information
mdvacca committed Oct 23, 2024
1 parent b8f53ad commit 2fe092c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include <react/renderer/scheduler/SchedulerToolbox.h>
#include <react/renderer/uimanager/primitives.h>
#include <react/utils/ContextContainer.h>
#include <react/utils/CoreFeatures.h>

namespace facebook::react {

Expand Down Expand Up @@ -492,9 +491,6 @@ void FabricUIManagerBinding::installFabricUIManager(
// Keep reference to config object and cache some feature flags here
reactNativeConfig_ = config;

CoreFeatures::excludeYogaFromRawProps =
ReactNativeFeatureFlags::excludeYogaFromRawProps();

auto toolbox = SchedulerToolbox{};
toolbox.contextContainer = contextContainer;
toolbox.componentRegistryFactory = componentsRegistry->buildRegistryFunction;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
#include <react/renderer/core/LayoutConstraints.h>
#include <react/renderer/core/LayoutContext.h>
#include <react/renderer/debug/DebugStringConvertibleItem.h>
#include <react/utils/CoreFeatures.h>
#include <yoga/Yoga.h>
#include <algorithm>
#include <limits>
Expand Down Expand Up @@ -786,7 +785,7 @@ Rect YogaLayoutableShadowNode::getContentBounds() const {
}

/*static*/ void YogaLayoutableShadowNode::filterRawProps(RawProps& rawProps) {
if (CoreFeatures::excludeYogaFromRawProps) {
if (ReactNativeFeatureFlags::excludeYogaFromRawProps()) {
// TODO: this shouldn't live in RawProps
rawProps.filterYogaStylePropsInDynamicConversion();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,4 @@

#include "CoreFeatures.h"

namespace facebook::react {

bool CoreFeatures::excludeYogaFromRawProps = false;

} // namespace facebook::react
namespace facebook::react {} // namespace facebook::react

0 comments on commit 2fe092c

Please sign in to comment.