Ship enableAndroidLinearText feature flag (#56140)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56140

Fully rolls out the android linear text flag by default. Previous PR for context: https://github.com/facebook/react-native/pull/53692

Changelog: [Internal]

Reviewed By: NickGerleman

Differential Revision: D97177766

fbshipit-source-id: e1a021e29fbbd132e1a7e05f0700a411ea074a66
This commit is contained in:
Peter Abbondanzo authored and meta-codesync[bot] committed 2026-03-18 20:11:32 -07:00
1 parent 0f337f95c6
commit 941ace9908
4 files changed
+7 -7

No files matched your search

@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<67d638f79b7b06a087f63563c2e5ff95>>
* @generated SignedSource<<a822c8a92925244e2a302bd04f034fa0>>
*/
/**
@@ -49,7 +49,7 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi
override fun enableAndroidAntialiasedBorderRadiusClipping(): Boolean = false
override fun enableAndroidLinearText(): Boolean = false
override fun enableAndroidLinearText(): Boolean = true
override fun enableAndroidTextMeasurementOptimizations(): Boolean = false
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<2cf1c7be6b0086da159550454273ce2d>>
* @generated SignedSource<<aabacee6a60e5939fdc52f692c3ae49c>>
*/
/**
@@ -80,7 +80,7 @@ class ReactNativeFeatureFlagsDefaults : public ReactNativeFeatureFlagsProvider {
}
bool enableAndroidLinearText() override {
return false;
return true;
}
bool enableAndroidTextMeasurementOptimizations() override {
@@ -192,7 +192,7 @@ const definitions: FeatureFlagDefinitions = {
ossReleaseStage: 'none',
},
enableAndroidLinearText: {
defaultValue: false,
defaultValue: true,
metadata: {
dateAdded: '2025-09-09',
description:
@@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<8c2aa180526563dbaaeb91f1428e0c77>>
* @generated SignedSource<<123878b4b779b3af2fdd200341082a3d>>
* @flow strict
* @noformat
*/
@@ -259,7 +259,7 @@ export const enableAndroidAntialiasedBorderRadiusClipping: Getter<boolean> = cre
/**
* Enables linear text rendering on Android wherever subpixel text rendering is enabled
*/
export const enableAndroidLinearText: Getter<boolean> = createNativeFlagGetter('enableAndroidLinearText', false);
export const enableAndroidLinearText: Getter<boolean> = createNativeFlagGetter('enableAndroidLinearText', true);
/**
* Enables various optimizations throughout the path of measuring text on Android.
*/