OGeek|极客世界-中国程序员成长平台

标题: ios - react 原生 : Voice Over (iOS) to read the new element [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 19:43
标题: ios - react 原生 : Voice Over (iOS) to read the new element

我是 react-native 以及前端后台开发和 UX 的新手。

我们使用 react-native 来构建应用程序,一切都很好,直到我们真正开始关注 VoiceOver 和 TalkBack。

问题是每当 View 上呈现新元素时(例如 ListView 或 View 或错误消息),VoiceOver 不会读取消息,并且在使用蓝牙键盘时,它永远不会选择/导航到新添加的元素.

我不确定如何使用或集成 iOS 原生 UIAccessibilityPostNotification。请阅读此内容以获取更多信息。 https://useyourloaf.com/blog/voiceover-accessibility/

如果可能,需要这方面的帮助。谢谢。



Best Answer-推荐答案


VoiceOver doesn't read the message and while using Bluetooth keyboard The state of accessibility for React-Native changed a lot in the last two years.

<MyView accessible={true} accessibilityLabel="My label for VoiceOver or TalkBack">My label</MyView>

当焦点到达该元素时,将使 TalkBack 和 Voice over 朗读该元素。

引用:

关于ios - react 原生 : Voice Over (iOS) to read the new element,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44118743/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4