[A11y][iOS] - VoiceOver reads first letter separately from other text in multiline textInput on legacy architecture
未关闭
还没有人认领这个 Issue。
Component: TextInput
Issue: Author Provided Repro
Platform: iOS
- 主要语言
- C++
- 星标
- 127k
- 派生
- 25.3k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 4
描述
Description
When using TextInput component with multiline={true}, voiceover announces first symbol separately from the remaining text
Managed to reproduce on RN versions 0.73.5, 0.73.8, 0.74.2
Actual result: First symbol is read separately
Expected result: Whole text is read together
Note: The issue is not reproduced with RCT_NEW_ARCH_ENABLED = 1
Steps to reproduce
- Turn on VoiceOver
- Enter text
- Tap on the input to announce
React Native Version
0.73.8
Affected Platforms
Runtime - iOS
Output of npx react-native info
System:
OS: macOS 14.2.1
CPU: (8) arm64 Apple M1
Memory: 88.33 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.11.1
path: ~/.nvm/versions/node/v20.11.1/bin/node
Yarn:
version: 3.6.4
path: ~/.nvm/versions/node/v20.11.1/bin/yarn
npm:
version: 10.2.4
path: ~/.nvm/versions/node/v20.11.1/bin/npm
Watchman:
version: 2024.01.22.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.14.3
path: /Users/dev/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- visionOS 1.0
- watchOS 10.2
Android SDK: Not Found
IDEs:
Android Studio: 2023.2 AI-232.10227.8.2321.11479570
Xcode:
version: 15.2/15C500b
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.10
path: /usr/bin/javac
Ruby:
version: 3.3.0
path: /Users/dev/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
Stacktrace or Logs
N/A
Reproducer
https://github.com/srrmstk/react-native-multiline-a11y-reproducer
Screenshots and Videos
https://github.com/facebook/react-native/assets/61790890/5c1fa74c-1539-4d71-a56a-1af8f42fd917
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的多行无障碍复现用例开始,并比较 iOS 上 legacy 架构与 RCT_NEW_ARCH_ENABLED=1 时 VoiceOver 的行为。跟踪复现所涉及的 legacy TextInput 路径,然后验证在受影响的 React Native 版本中,VoiceOver 会将整个多行值一起读出。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, react-native
- 领域
- accessibility, mobile
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100