iOS: Responding to Actions via UIAccessibilityAction
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 127k
- 派生
- 25.3k
- 平均合并
- 1 天 23 小时
- 30 天内合并 PR
- 4
描述
Description
There are actions that a VoiceOver user may invoke while using an application. React Native should be able to respond to these actions. One example that is currently missing from React Native's support is accessibilityScroll, which typically is listened to in order to perform a scroll action on a list of some kind.
React Native version:
v0.63
Expected Behavior
There is already precedent in React Native for actions, so in theory all the "actions" available for iOS would have associated functions. For scrolling, something like "onAccessibilityScroll(direction:)" would be called when the gesture is detected by the system.
iOS Details
UIAccessibilityAction is an informal protocol which contains instance methods to override. Ideally, all of the supported actions would be bridged.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先查看 React Native 现有的无障碍操作处理方式,以及 issue 中链接的 UIAccessibilityAction 文档,并以 accessibilityScroll 作为具体示例。确定从原生到 JavaScript 的入口点和现有的操作先例,然后验证 VoiceOver 能够调用受支持的 iOS 操作,并将这些操作提供给应用程序。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ios, objective-c, react-native
- 领域
- accessibility, mobile
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100