-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add accessibility traits #76
base: master
Are you sure you want to change the base?
Conversation
In order to make our button more accessible on iOS according to the Doc: https://facebook.github.io/react-native/docs/accessibility.html#accessibilitytraits-ios
In order to make our button more accessible for Android according to the doc: https://facebook.github.io/react-native/docs/accessibility.html#accessibilitycomponenttype-android
In order to make the CI green again. We had to upgrade the packages: - jest - react - react-test-renderer
Add accessibility traits
Libraries that modifies native props using the reference (e.g. [styled-components](https://github.com/styled-components/styled-components)) need to know what component represent the button. Those kind of modifications are made using the method `setNativeProps`, therefore, this commit implements the references to wrappers which represent the button styles and implement the setNativeProps method at the Button component.
How can we get this merged into master branch ? I need this feature since I'm writing automated script for the app and accessiblityLabel is not visible using Appium Inspector. |
@@ -1,6 +1,6 @@ | |||
'use strict'; | |||
"use strict"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you change all the files with singlequote as specified on eslint rules?
Hi @luisfmsouza !! Thanks for your PR, can you update the Readme docs with the new props and rebase commits? |
What
Add accessibility props to make our button more accessible on both OSs.
Why
VoiceOver and TalkBack need this props to inform the users what kind of component is this one. With this prop we can use button, link, etc.