[iOS] - Elements in a row are announced in the wrong order by VoiceOver
未关闭
还没有人认领这个 Issue。
Needs: Triage :mag:
Platform: iOS
- 主要语言
- C++
- 星标
- 127k
- 派生
- 25.3k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 4
描述
Description
When elements with different heights are in a row with alignItems: ‘center’ or alignItems:’flex-end’, the tallest ones are selected and announced first by VoiceOver on iOS.
Tested on iPhone 13 mini, iOS 17.4.1
Steps to reproduce
- use the code in the reproducer and build on a physical iOS device
- activate VoiceOver and go through each example by swiping right
React Native Version
0.83.1
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
System:
OS: macOS 26.2
CPU: (8) arm64 Apple M2
Memory: 94.20 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.7.0
path: /Users/gbs05577/.nvm/versions/node/v22.7.0/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.8.2
path: /Users/gbs05577/.nvm/versions/node/v22.7.0/bin/npm
Watchman:
version: 2022.11.28.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.15.2
path: /Users/gbs05577/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.2
- iOS 26.2
- macOS 26.2
- tvOS 26.2
- visionOS 26.2
- watchOS 26.2
Android SDK: Not Found
IDEs:
Android Studio: 2025.2 AI-252.25557.131.2521.14344949
Xcode:
version: 26.2/17C52
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.16
path: /usr/bin/javac
Ruby:
version: 2.7.5
path: /Users/gbs05577/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.2.0
wanted: 19.2.0
react-native:
installed: 0.83.1
wanted: 0.83.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Stacktrace or Logs
-
MANDATORY Reproducer
https://snack.expo.dev/@andreamartinez/ios-voiceover-order-bug
Screenshots and Videos
https://github.com/user-attachments/assets/d76a86d2-1663-4bb6-bd14-085bd88a144e
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从链接的 Snack 复现代码开始,在启用 VoiceOver 的实体 iOS 设备上运行它,并按照列出的向右滑动步骤操作。追踪负责无障碍元素排序的 React Native iOS 行为;当不同高度的行中的元素在所报告的对齐模式下按视觉顺序播报时,即视为完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, react-native
- 领域
- accessibility, mobile-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 48/100