Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Adding accessibility role and state #671

Merged
merged 1 commit into from
Jan 21, 2019
Merged

Conversation

fawcilize
Copy link
Contributor

Motivation

Utilizing the new accessibility properties provided in react-native 0.57.0. It did not seem to work using the currently deprecated properties on my test devices.

Test plan

Steps to test:

  1. Enable VoiceOver (iOS) or TalkBack (Android)
  2. Select a tab
  3. It should read something like Selected. TabName. Tab. x of y. Button. Previously, it would read TabName. Tab. x of y.

It seems like there was an effort to manually assign the role of Tab through the accessibilityLabel prop. However, that is not in the list of available accessibility roles. Personally, I think it's helpful to have both Tab and Button announced, but I can remove/change it as needed.

@satya164
Copy link
Owner

Thank you.

@satya164 satya164 merged commit b44a4e0 into satya164:master Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants