-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
added accessibility props for touchables #5346
added accessibility props for touchables #5346
Conversation
lgtm cc @sahrens |
69b4421
to
74319ba
Compare
@fangmobile updated the pull request. |
my coworker @annjose verified this fix works.
And verified the the label shows up in uiautomator viewer. |
@fangmobile updated the pull request. |
b506df5
to
816130a
Compare
@fangmobile updated the pull request. |
* @platform android | ||
*/ | ||
accessibilityComponentType: React.PropTypes.oneOf(View.AccessibilityComponentType), | ||
/** |
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.
All of these should be already pulled in via the ...View.propTypes
above (see View.js
). Is there a need to duplicate the props here?
Besides the inline comment looks good. Thanks for adding the screenshots! |
816130a
to
b9298fd
Compare
@fangmobile updated the pull request. |
Thanks @mkonicek for catching this.
This show they are not needed in propTypes but need to be returned. Also squshed commits. Please let me know if there is anything I should do. |
@@ -208,7 +208,11 @@ exports.examples = [ | |||
{ | |||
title: 'Auto-focus', | |||
render: function() { | |||
return <TextInput autoFocus={true} style={styles.singleLine} />; | |||
return <TextInput |
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.
code style, please write this as:
return (
<TextInput
props.....
/>
);
@fangmobile thanks for the test plan! |
b9298fd
to
6a4db1c
Compare
@fangmobile updated the pull request. |
@ide Thanks. Amended another commit. |
6a4db1c
to
2091350
Compare
…e examples with accessibility label
2091350
to
bb594ad
Compare
@facebook-github-bot shipit |
Thanks for importing. If you are an FB employee go to https://our.intern.facebook.com/intern/opensource/github/pull_request/1558082531149705/int_phab to review. |
👍 |
@ mkonicek anything else I should do? |
@fangmobile, sorry, our internal CI got stuck with this one. |
33d8db5
👍 |
Summary: accessibilityLabels are missing in these touchable*.js files. for facebook#5322 ide This is not tested yet. I will update with test. Closes facebook#5346 Reviewed By: svcscm Differential Revision: D2882061 Pulled By: gkassabli fb-gh-sync-id: dff0ef373e5f5895027cb1cc08c8887a6ace8eee
accessibilityLabels are missing in these touchable*.js files.
for #5322
@ide This is not tested yet. I will update with test.