question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Set Accessibility Label for iOS Unrecognized

See original GitHub issue

Description

React Native application for iOS has accessibility values naturally on text views for application, despite having no settings for this in app. These default to whatever the text view contains. Android application has no accessibility values for anything (as expected).

Adding a accessible flag and a label in code in pages for an item provides an accessibility label for Android, but makes no changes to presumably “default” labels on iOS. Accessibility labels/IDs are verified via both Appium (iOS/Android) and the Accessibility Inspector (iOS).

Reproduction Steps and Sample Code

Setting the below on a text element

accessible={true} accessibilityLabel={'User\'s Name'}

Android’s “accessibility ID” from Appium: “User’s Name” iOS’s “accessibility ID” from Appium: TASSL TESTER (inner text view content) iOS’s “accessibility value” from Accessibility Inspector: TASSL TESTER

  • No label listed

Additional Information

  • React Native version: 0.39.2
  • Platform: iOS
  • Development Operating System: MacOS
  • Dev tools: Xcode 8.0, iOS 10, iPhone 7, Appium 1.0.0, Accessibility Inspector 5.0

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
ghostcommented, May 3, 2017

Going back to replicate this issue, I am unable to do so and will assume the problem was negligence on my part. Thanks for your assistance.

0reactions
curioustechizencommented, May 23, 2017

@shergin Opened #14123 . I think I don’t have the rights to assign it to you though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

accessibilityLabel | Apple Developer Documentation
A succinct label in a localized string that identifies the accessibility element.
Read more >
iOS Accessibility: Getting Started - RayWenderlich.com
In this iOS accessibility tutorial, learn how to make apps more accessible using VoiceOver and the Accessibility inspector.
Read more >
How to localize Accessibility Label(Description) with Interface ...
In order to add VoiceOver support for my app(using Interface Builder),I set a button's "Accessibility Identity -> Description" to "Mute" like ...
Read more >
Hiding and grouping accessibility data - a free Hacking with iOS
Hiding and grouping accessibility data ... Beyond setting labels and hints, there are several ways we can control what VoiceOver reads out.
Read more >
Accessibility and UI Testing in iOS | by Jonathan Chen | Medium
A nice thing about accessibilityLabel is that UIKit elements with a text property like a UILabel or a UIButton with text typically has...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found