React-Native : Voice Over (iOS) 来阅读新元素 [英] React-Native : Voice Over (iOS) to read the new element

查看:74
本文介绍了React-Native : Voice Over (iOS) 来阅读新元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 react-native 和前端背景开发和 UX 的新手.

I am new to react-native and from frontend background development and UX.

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

We are using react-native for building an application, everything was fine until we really started focusing on VoiceOver and TalkBack.

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

The problem is whenever new elements get rendered on the view (for instance list view or view or error message), the VoiceOver doesn't read the message and while using Bluetooth keyboard, it never selects/navigates to the newly added element.

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

I am not sure how to use or integrate iOS native UIAccessibilityPostNotification. Please read this for more info. https://useyourloaf.com/blog/voiceover-accessibility/

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

Need help on this if possible. Thank you.

推荐答案

VoiceOver 在使用蓝牙键盘时不读取消息在过去两年中,React-Native 的可访问性状态发生了很大变化.

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 朗读此元素.

Will make TalkBack and Voice over read this element when the focus reaches it.

参考:

这篇关于React-Native : Voice Over (iOS) 来阅读新元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆