菜鸟教程小白 发表于 2022-12-11 19:43:09

ios - react 原生 : Voice Over (iOS) to read the new element


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

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

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

<p>我不确定如何使用或集成 iOS 原生 UIAccessibilityPostNotification。请阅读此内容以获取更多信息。 <a href="https://useyourloaf.com/blog/voiceover-accessibility/" rel="noreferrer noopener nofollow">https://useyourloaf.com/blog/voiceover-accessibility/</a> </p>

<p>如果可能,需要这方面的帮助。谢谢。</p></p>
                                    <br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
                                            <p><blockquote>
<p>VoiceOver doesn&#39;t read the message and while using Bluetooth keyboard
The state of accessibility for React-Native changed a lot in the last two years. </p>
</blockquote>

<pre><code>&lt;MyView accessible={true} accessibilityLabel=&#34;My label for VoiceOver or TalkBack&#34;&gt;My label&lt;/MyView&gt;
</code></pre>

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

<p>引用:</p>

<ul>
<li> <a href="https://facebook.github.io/react-native/docs/accessibility" rel="noreferrer noopener nofollow">https://facebook.github.io/react-native/docs/accessibility</a> </li>
<li> <a href="https://facebook.github.io/react-native/blog/2018/08/13/react-native-accessibility-updates" rel="noreferrer noopener nofollow">https://facebook.github.io/react-native/blog/2018/08/13/react-native-accessibility-updates</a> </li>
<li> <a href="https://facebook.github.io/react-native/docs/accessibilityinfo" rel="noreferrer noopener nofollow">https://facebook.github.io/react-native/docs/accessibilityinfo</a> </li>
</ul></p>
                                   
                                                <p style="font-size: 20px;">关于ios -react 原生 : Voice Over (iOS) to read the new element,我们在Stack Overflow上找到一个类似的问题:
                                                        <a href="https://stackoverflow.com/questions/44118743/" rel="noreferrer noopener nofollow" style="color: red;">
                                                                https://stackoverflow.com/questions/44118743/
                                                        </a>
                                                </p>
                                       
页: [1]
查看完整版本: ios - react 原生 : Voice Over (iOS) to read the new element