Skip to content

Commit 941ace9

Browse files
Abbondanzometa-codesync[bot]
authored andcommitted
Ship enableAndroidLinearText feature flag (#56140)
Summary: Pull Request resolved: #56140 Fully rolls out the android linear text flag by default. Previous PR for context: #53692 Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D97177766 fbshipit-source-id: e1a021e29fbbd132e1a7e05f0700a411ea074a66
1 parent 0f337f9 commit 941ace9

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<<67d638f79b7b06a087f63563c2e5ff95>>
7+
* @generated SignedSource<<a822c8a92925244e2a302bd04f034fa0>>
88
*/
99

1010
/**
@@ -49,7 +49,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
4949

5050
override fun enableAndroidAntialiasedBorderRadiusClipping(): Boolean = false
5151

52-
override fun enableAndroidLinearText(): Boolean = false
52+
override fun enableAndroidLinearText(): Boolean = true
5353

5454
override fun enableAndroidTextMeasurementOptimizations(): Boolean = false
5555

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<<2cf1c7be6b0086da159550454273ce2d>>
7+
* @generated SignedSource<<aabacee6a60e5939fdc52f692c3ae49c>>
88
*/
99

1010
/**
@@ -80,7 +80,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
8080
}
8181

8282
bool enableAndroidLinearText() override {
83-
return false;
83+
return true;
8484
}
8585

8686
bool enableAndroidTextMeasurementOptimizations() override {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const definitions: FeatureFlagDefinitions = {
192192
ossReleaseStage: 'none',
193193
},
194194
enableAndroidLinearText: {
195-
defaultValue: false,
195+
defaultValue: true,
196196
metadata: {
197197
dateAdded: '2025-09-09',
198198
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<<8c2aa180526563dbaaeb91f1428e0c77>>
7+
* @generated SignedSource<<123878b4b779b3af2fdd200341082a3d>>
88
* @flow strict
99
* @noformat
1010
*/
@@ -259,7 +259,7 @@ export const enableAndroidAntialiasedBorderRadiusClipping: Getter<boolean> = cre
259259
/**
260260
* Enables linear text rendering on Android wherever subpixel text rendering is enabled
261261
*/
262-
export const enableAndroidLinearText: Getter<boolean> = createNativeFlagGetter('enableAndroidLinearText', false);
262+
export const enableAndroidLinearText: Getter<boolean> = createNativeFlagGetter('enableAndroidLinearText', true);
263263
/**
264264
* Enables various optimizations throughout the path of measuring text on Android.
265265
*/

0 commit comments

Comments
 (0)