Skip to content

Roll out enableAndroidLinearText entirely (#56409)#56409

Closed
Abbondanzo wants to merge 1 commit intofacebook:mainfrom
Abbondanzo:export-D100213385
Closed

Roll out enableAndroidLinearText entirely (#56409)#56409
Abbondanzo wants to merge 1 commit intofacebook:mainfrom
Abbondanzo:export-D100213385

Conversation

@Abbondanzo
Copy link
Copy Markdown
Contributor

@Abbondanzo Abbondanzo commented Apr 9, 2026

Summary:

The enableAndroidLinearText flag enables Paint.LINEAR_TEXT_FLAG wherever SUBPIXEL_TEXT_FLAG is already set. The flag defaults to true and has been fully rolled out internally, so this removes the flag and makes the behavior unconditional.

Two call sites:

  • CustomStyleSpan.kt: always sets isLinearText = true alongside isSubpixelText = true
  • ReactEditText.kt: always toggles LINEAR_TEXT_FLAG in sync with SUBPIXEL_TEXT_FLAG

The flag definition is removed from ReactNativeFeatureFlags.config.js and all generated accessor files are regenerated.

Changelog: [Internal]

Reviewed By: alanleedev

Differential Revision: D100213385

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 9, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 9, 2026

@Abbondanzo has exported this pull request. If you are a Meta employee, you can view the originating Diff in D100213385.

@facebook-github-tools facebook-github-tools bot added p: Facebook Partner: Facebook Partner labels Apr 9, 2026
@meta-codesync meta-codesync bot changed the title Roll out enableAndroidLinearText entirely Roll out enableAndroidLinearText entirely (#56409) Apr 10, 2026
Abbondanzo added a commit to Abbondanzo/react-native that referenced this pull request Apr 10, 2026
Summary:

The `enableAndroidLinearText` flag enables `Paint.LINEAR_TEXT_FLAG` wherever `SUBPIXEL_TEXT_FLAG` is already set. The flag defaults to `true` and has been fully rolled out internally, so this removes the flag and makes the behavior unconditional.

Two call sites:
- `CustomStyleSpan.kt`: always sets `isLinearText = true` alongside `isSubpixelText = true`
- `ReactEditText.kt`: always toggles `LINEAR_TEXT_FLAG` in sync with `SUBPIXEL_TEXT_FLAG`

The flag definition is removed from `ReactNativeFeatureFlags.config.js` and all generated accessor files are regenerated.

Changelog: [Internal]

Reviewed By: alanleedev

Differential Revision: D100213385
Summary:
Pull Request resolved: facebook#56409

The `enableAndroidLinearText` flag enables `Paint.LINEAR_TEXT_FLAG` wherever `SUBPIXEL_TEXT_FLAG` is already set. The flag defaults to `true` and has been fully rolled out internally, so this removes the flag and makes the behavior unconditional.

Two call sites:
- `CustomStyleSpan.kt`: always sets `isLinearText = true` alongside `isSubpixelText = true`
- `ReactEditText.kt`: always toggles `LINEAR_TEXT_FLAG` in sync with `SUBPIXEL_TEXT_FLAG`

The flag definition is removed from `ReactNativeFeatureFlags.config.js` and all generated accessor files are regenerated.

Changelog: [Internal]

Reviewed By: alanleedev

Differential Revision: D100213385
@meta-codesync meta-codesync bot closed this in abd6173 Apr 10, 2026
@facebook-github-tools facebook-github-tools bot added the Merged This PR has been merged. label Apr 10, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 10, 2026

This pull request has been merged in abd6173.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @Abbondanzo in abd6173

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants