diff --git a/packages/react-native/ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp b/packages/react-native/ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp index c69fc641ae0b..7c0326034309 100644 --- a/packages/react-native/ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp +++ b/packages/react-native/ReactCommon/react/renderer/scheduler/SurfaceHandler.cpp @@ -9,6 +9,7 @@ #include #include +#include #include namespace facebook::react { @@ -242,8 +243,17 @@ void SurfaceHandler::constraintLayout( link_.shadowTree && "`link_.shadowTree` must not be null."); link_.shadowTree->commit( [&](const RootShadowNode& oldRootShadowNode) { - return oldRootShadowNode.clone( + auto newRoot = oldRootShadowNode.clone( propsParserContext, layoutConstraints, layoutContext); + + if (ReactNativeFeatureFlags::enableFontScaleChangesUpdatingLayout() && + layoutContext.fontSizeMultiplier != + oldRootShadowNode.getConcreteProps() + .layoutContext.fontSizeMultiplier) { + newRoot->dirtyLayout(); + } + + return newRoot; }, {/* default commit options */}); }