Skip to content

Commit 390185d

Browse files
Abbondanzofacebook-github-bot
authored andcommitted
Ship enableAndroidLinearText feature flag
Summary: Fully rolls out the android linear text flag by default. Previous PR for context: facebook#53692 Changelog: [Internal] Differential Revision: D97177766
1 parent bea42e5 commit 390185d

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<<d929e85924c23746edd258449cdb2d42>>
7+
* @generated SignedSource<<3f5bd11c861fc2e02627ba0f9941f4b7>>
88
* @flow strict
99
* @noformat
1010
*/
@@ -253,7 +253,7 @@ export const enableAndroidAntialiasedBorderRadiusClipping: Getter<boolean> = cre
253253
/**
254254
* Enables linear text rendering on Android wherever subpixel text rendering is enabled
255255
*/
256-
export const enableAndroidLinearText: Getter<boolean> = createNativeFlagGetter('enableAndroidLinearText', false);
256+
export const enableAndroidLinearText: Getter<boolean> = createNativeFlagGetter('enableAndroidLinearText', true);
257257
/**
258258
* Enables various optimizations throughout the path of measuring text on Android.
259259
*/

0 commit comments

Comments
 (0)