-
Notifications
You must be signed in to change notification settings - Fork 25k
Open
Labels
Needs: AttentionIssues where the author has responded to feedback.Issues where the author has responded to feedback.Needs: Version InfoPlatform: AndroidAndroid applications.Android applications.
Description
Description
Summary
Non-nested Text elements with role='link' trigger multiple screen reader focus stops on Android.
Example code
<Text>Basic Text</Text>
<Text role="link" onPress={handlePress}>Basic Link Text</Text>
<Text>
<Text>Child One</Text>
<Text>Child Two</Text>
</Text>
<Text role="link">
<Text>Child One</Text>
<Text>Child Two</Text>
</Text>
On iOS each of above Text elements is read as single focusable text (correct). Texts with role="link" are announced as link (correct).
However, on Android, when text has role="link" assigned it starts to focus screen reader first on the whole text (announces: "links available"), then 2nd time on the content itself (announces: "link").
When such Text element has multiple child Text, it first focuses on the top-level text (announces: "links available"), then it focuses on each of child Text (announces: "link"), despite child Texts not being assigned link role.
Steps to reproduce
- Clone https://github.com/mdjastrzebski/ReproLinkText
- Run under screen reader on Android (& iOS for comparison)
React Native Version
0.81.0
Affected Platforms
Runtime - Android
Output of npx @react-native-community/cli info
info Fetching system and libraries information...
System:
OS: macOS 15.6
CPU: (11) arm64 Apple M3 Pro
Memory: 183.14 MB / 36.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.17.1
path: ~/.nvm/versions/node/v22.17.1/bin/node
Yarn:
version: 3.6.4
path: ~/.nvm/versions/node/v22.17.1/bin/yarn
npm:
version: 10.9.2
path: ~/.nvm/versions/node/v22.17.1/bin/npm
Watchman:
version: 2025.07.28.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /Users/mdj/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.5
- iOS 18.5
- macOS 15.5
- tvOS 18.5
- visionOS 2.5
- watchOS 11.5
Android SDK:
API Levels:
- "35"
- "36"
Build Tools:
- 35.0.0
- 36.0.0
System Images:
- android-35 | Google Play ARM 64 v8a
- android-36 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2025.1 AI-251.25410.109.2511.13752376
Xcode:
version: 16.4/16F6
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.16
path: /usr/bin/javac
Ruby:
version: 3.4.5
path: /Users/mdj/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.1.0
wanted: 19.1.0
react-native:
installed: 0.81.0
wanted: 0.81.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: false
Stacktrace or Logs
N/A
MANDATORY Reproducer
https://github.com/mdjastrzebski/ReproLinkText
Screenshots and Videos
Android (incorrect):
Text.Link.android.mp4
iOS (correct):
Text.Link.iOS.mp4
Metadata
Metadata
Assignees
Labels
Needs: AttentionIssues where the author has responded to feedback.Issues where the author has responded to feedback.Needs: Version InfoPlatform: AndroidAndroid applications.Android applications.