Skip to content

Commit 686d14f

Browse files
j-piaseckifacebook-github-bot
authored andcommitted
Enable enableFontScaleChangesUpdatingLayout by default (#53324)
Summary: Pull Request resolved: #53324 Changelog: [General][Changed] - Enabled `enableFontScaleChangesUpdatingLayout` feature flag by default Reviewed By: cipolleschi Differential Revision: D80452649 fbshipit-source-id: da4d19068036340855569f5fd555121bf646bbca
1 parent f9b1b2e commit 686d14f

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/react-native/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<9583365cd9d7786ee9be03ff34b0766f>>
7+
* @generated SignedSource<<7a30bfda7c1989d5ed8cbdc2bbe63c34>>
88
*/
99

1010
/**
@@ -65,7 +65,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
6565

6666
override fun enableFixForParentTagDuringReparenting(): Boolean = false
6767

68-
override fun enableFontScaleChangesUpdatingLayout(): Boolean = false
68+
override fun enableFontScaleChangesUpdatingLayout(): Boolean = true
6969

7070
override fun enableIOSTextBaselineOffsetPerLine(): Boolean = false
7171

packages/react-native/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<ae55e689a40ace36cdf181b4f62c3d4d>>
7+
* @generated SignedSource<<2ae7c2364611f461b16d67d48c626307>>
88
*/
99

1010
/**
@@ -112,7 +112,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
112112
}
113113

114114
bool enableFontScaleChangesUpdatingLayout() override {
115-
return false;
115+
return true;
116116
}
117117

118118
bool enableIOSTextBaselineOffsetPerLine() override {

packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ const definitions: FeatureFlagDefinitions = {
272272
ossReleaseStage: 'none',
273273
},
274274
enableFontScaleChangesUpdatingLayout: {
275-
defaultValue: false,
275+
defaultValue: true,
276276
metadata: {
277277
dateAdded: '2025-04-07',
278278
description:

packages/react-native/src/private/featureflags/ReactNativeFeatureFlags.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @generated SignedSource<<29d1ff8e6948e8c8cf286769d8c1ff81>>
7+
* @generated SignedSource<<027a397de89cf169cfffceef2e685009>>
88
* @flow strict
99
* @noformat
1010
*/
@@ -268,7 +268,7 @@ export const enableFixForParentTagDuringReparenting: Getter<boolean> = createNat
268268
/**
269269
* Enables font scale changes updating layout for measurable nodes.
270270
*/
271-
export const enableFontScaleChangesUpdatingLayout: Getter<boolean> = createNativeFlagGetter('enableFontScaleChangesUpdatingLayout', false);
271+
export const enableFontScaleChangesUpdatingLayout: Getter<boolean> = createNativeFlagGetter('enableFontScaleChangesUpdatingLayout', true);
272272
/**
273273
* Applies base offset for each line of text separately on iOS.
274274
*/

0 commit comments

Comments
 (0)