Accessibility Escape

Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/22047

Differential Revision: D13146179

Pulled By: cpojer

fbshipit-source-id: b8a089114a5deafee47dd482e484d413c8c39137
This commit is contained in:
Doug Russell
2018-12-06 19:39:42 -08:00
committed by Facebook Github Bot
parent 900f2df351
commit ee7c702308
9 changed files with 37 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ ReactNativeViewAttributes.UIView = {
onAccessibilityAction: true,
onAccessibilityTap: true,
onMagicTap: true,
onAccessibilityEscape: true,
collapsable: true,
needsOffscreenAlphaCompositing: true,
style: ReactNativeStyleAttributes,

View File

@@ -62,6 +62,14 @@ type DirectEventProps = $ReadOnly<{|
* See http://facebook.github.io/react-native/docs/view.html#onmagictap
*/
onMagicTap?: ?() => void,
/**
* When `accessible` is `true`, the system will invoke this function when the
* user performs the escape gesture.
*
* See http://facebook.github.io/react-native/docs/view.html#onaccessibilityescape
*/
onAccessibilityEscape?: ?Function,
|}>;
type TouchEventProps = $ReadOnly<{|