-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Accessibility Escape #22047
Accessibility Escape #22047
Conversation
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 analysis results:
eslint
found some issues.
@@ -26,6 +26,9 @@ class AccessibilityIOSExample extends React.Component<{}> { | |||
<View onMagicTap={() => alert('onMagicTap success')} accessible={true}> | |||
<Text>Accessibility magic tap example</Text> | |||
</View> | |||
<View onAccessibilityEscape={() => alert('onAccessibilityEscape success')} accessible={true}> |
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.
prettier/prettier: Replace ·onAccessibilityEscape={()·=>·alert('onAccessibilityEscape·success')}
with ⏎··········onAccessibilityEscape={()·=>·alert('onAccessibilityEscape·success')}⏎·········
@@ -26,6 +26,9 @@ class AccessibilityIOSExample extends React.Component<{}> { | |||
<View onMagicTap={() => alert('onMagicTap success')} accessible={true}> | |||
<Text>Accessibility magic tap example</Text> | |||
</View> | |||
<View onAccessibilityEscape={() => alert('onAccessibilityEscape success')} accessible={true}> |
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.
no-alert: Unexpected alert.
Generated by 🚫 dangerJS |
Documentation PR facebook/react-native-website#655 |
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 analysis results:
eslint
found some issues.
@@ -26,6 +26,11 @@ class AccessibilityIOSExample extends React.Component<{}> { | |||
<View onMagicTap={() => alert('onMagicTap success')} accessible={true}> | |||
<Text>Accessibility magic tap example</Text> | |||
</View> | |||
<View | |||
onAccessibilityEscape={() => alert('onAccessibilityEscape success')} |
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.
no-alert: Unexpected alert.
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.
not sure what the expectation is here. this example code is consistent with the existing examples.
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 analysis results:
eslint
found some issues.
@@ -26,6 +26,11 @@ class AccessibilityIOSExample extends React.Component<{}> { | |||
<View onMagicTap={() => alert('onMagicTap success')} accessible={true}> | |||
<Text>Accessibility magic tap example</Text> | |||
</View> | |||
<View | |||
onAccessibilityEscape={() => alert('onAccessibilityEscape success')} |
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.
no-alert: Unexpected alert.
@rustle Could you please rebase this on master? |
... and make prettier happy? |
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 analysis results:
eslint
found some issues.
@@ -26,6 +26,11 @@ class AccessibilityIOSExample extends React.Component<{}> { | |||
<View onMagicTap={() => alert('onMagicTap success')} accessible={true}> | |||
<Text>Accessibility magic tap example</Text> | |||
</View> | |||
<View | |||
onAccessibilityEscape={() => alert('onAccessibilityEscape success')} |
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.
no-alert: Unexpected alert.
done |
|
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.
@shergin is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification. |
@rustle thanks for adding it. Hopefully, it can be merged "soon". 🤞 |
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.
@cpojer has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Thanks for working on this. I'm gonna land this PR :) |
Summary: Pull Request resolved: facebook/react-native#22047 Differential Revision: D13146179 Pulled By: cpojer fbshipit-source-id: b8a089114a5deafee47dd482e484d413c8c39137
Test Plan:
Validated functionality using RNTester app and VoiceOver.
Release Notes:
[IOS] [ACCESSIBILITY] - Implements accessibility escape gesture prop