Skip to content

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

Open
yhpark wants to merge 1 commit into
react:mainfrom
yhpark:ye/prepared-text-a11y-granularity
Open

yhpark wants to merge 1 commit into
react:mainfrom
yhpark:ye/prepared-text-a11y-granularity

Conversation

@yhpark

@yhpark yhpark commented Nov 27, 2026

Copy link
Copy Markdown

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

This branch has not been deployed

No deployments
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. 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.

1 participant