Skip to content

Let TalkBack move through prepared-layout Text by character and word - #60327

Merged
meta-codesync[bot] merged 8 commits into
react:mainfrom
yhpark:ye/prepared-text-a11y-granularity
Dec 1, 2026
Merged

meta-codesync[bot] merged 8 commits into
react:mainfrom
yhpark:ye/prepared-text-a11y-granularity

Conversation

@yhpark

@yhpark yhpark commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Summary:

On Android with prepared text layout (enablePreparedTextLayout), TalkBack can't move through a Text by character or word: those reading controls skip past it, so a screen reader user can't spell out an address or reread a word. Without prepared text layout, Text supports this.

This lets TalkBack move forward and back through prepared-layout text by character and word, reading each one. When a Text has an accessibility label, TalkBack moves through the label instead. Moving by line or paragraph still skips the text.

Changelog:

[ANDROID] [FIXED] - TalkBack can move through Text by character and word with prepared text layout

Test Plan:

A new test in ReactTextViewAccessibilityDelegateTest, checked through the traversal events TalkBack reads: word steps go forward and back, skip punctuation and stop at the end; a character step reads one character; TalkBack's selection reset and new text start again from the beginning; and with a content description, View steps through the label instead. ./gradlew :packages:react-native:ReactAndroid:testDebugUnitTest --tests "*ReactTextViewAccessibilityDelegateTest*": 11 tests, 0 failures.

@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 Nov 27, 2026
@github-actions github-actions Bot added the Meta Review Required This PR is considered risky and requires Meta to import it to do more testing before merging. label Nov 27, 2026
@facebook-github-tools facebook-github-tools Bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Nov 27, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Visual regression

No visual differences at 0ba059c65c20.

ios: no capture

@meta-codesync

meta-codesync Bot commented Dec 1, 2026

Copy link
Copy Markdown

@javache has imported this pull request. If you are a Meta employee, you can view this in D135339453.

@zeyap zeyap left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review automatically exported from Phabricator review in Meta.

@meta-codesync
meta-codesync Bot merged commit d5b482e into react:main Dec 1, 2026
62 checks passed
@react-native-bot

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @yhpark in d5b482e

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

@react-native-bot react-native-bot added the Merged This PR has been merged. label Dec 1, 2026
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. Merged This PR has been merged. Meta Review Required This PR is considered risky and requires Meta to import it to do more testing before merging. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants