mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
react-native: add onAccessibilityEscape prop (#42562)
* react-native: add onAccessibilityEscape prop * react-native: reorder props * chore: apply lint to tests
This commit is contained in:
Vendored
+6
@@ -2215,6 +2215,12 @@ export interface AccessibilityPropsIOS {
|
||||
*/
|
||||
accessibilityViewIsModal?: boolean;
|
||||
|
||||
/**
|
||||
* When accessibile is true, the system will invoke this function when the user performs the escape gesture (scrub with two fingers).
|
||||
* @platform ios
|
||||
*/
|
||||
onAccessibilityEscape?: () => void;
|
||||
|
||||
/**
|
||||
* When `accessible` is true, the system will try to invoke this function when the user performs accessibility tap gesture.
|
||||
* @platform ios
|
||||
|
||||
@@ -861,6 +861,8 @@ class AccessibilityTest extends React.Component {
|
||||
accessibilityStates={["selected"]}
|
||||
accessibilityState={{checked: true}}
|
||||
accessibilityHint="Very importent header"
|
||||
onMagicTap={() => {}}
|
||||
onAccessibilityEscape={() => {}}
|
||||
>
|
||||
<Text accessibilityTraits={["key", "text"]} accessibilityIgnoresInvertColors>
|
||||
Text
|
||||
|
||||
Reference in New Issue
Block a user