Skip to content

Commit

Permalink
[0.62] add missing accessibility props to Touchable* components (face…
Browse files Browse the repository at this point in the history
  • Loading branch information
sgny authored Mar 27, 2020
1 parent 25706e6 commit e826d2e
Show file tree
Hide file tree
Showing 8 changed files with 88 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/TouchableHighlight.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ external make:
| `radiobutton_unchecked
]
=?,
~accessibilityElementsHidden: bool=?,
~accessibilityHint: string=?,
~accessibilityIgnoresInvertColors: bool=?,
~accessibilityLabel: string=?,
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?,
~accessibilityRole: [@bs.string] [
| `none
| `button
Expand All @@ -46,11 +48,20 @@ external make:
]
=?,
~accessibilityTraits: array(AccessibilityTrait.t)=?,
~accessibilityViewIsModal: bool=?,
~delayLongPress: int=?,
~delayPressIn: int=?,
~delayPressOut: int=?,
~disabled: bool=?,
~hitSlop: View.edgeInsets=?,
~importantForAccessibility: [@bs.string] [
| `auto
| `yes
| `no
| [@bs.as "no-hide-descendants"]
`noHideDescendants
]
=?,
~onLayout: Event.layoutEvent => unit=?,
~onLongPress: Event.pressEvent => unit=?,
~onPress: Event.pressEvent => unit=?,
Expand Down
11 changes: 11 additions & 0 deletions src/components/TouchableHighlight.re
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ external make:
| `radiobutton_unchecked
]
=?,
~accessibilityElementsHidden: bool=?,
~accessibilityHint: string=?,
~accessibilityIgnoresInvertColors: bool=?,
~accessibilityLabel: string=?,
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?,
~accessibilityRole: [@bs.string] [
| `none
| `button
Expand All @@ -39,11 +41,20 @@ external make:
]
=?,
~accessibilityTraits: array(AccessibilityTrait.t)=?,
~accessibilityViewIsModal: bool=?,
~delayLongPress: int=?,
~delayPressIn: int=?,
~delayPressOut: int=?,
~disabled: bool=?,
~hitSlop: View.edgeInsets=?,
~importantForAccessibility: [@bs.string] [
| `auto
| `yes
| `no
| [@bs.as "no-hide-descendants"]
`noHideDescendants
]
=?,
~onLayout: Event.layoutEvent => unit=?,
~onLongPress: Event.pressEvent => unit=?,
~onPress: Event.pressEvent => unit=?,
Expand Down
11 changes: 11 additions & 0 deletions src/components/TouchableNativeFeedback.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ external make:
| `radiobutton_unchecked
]
=?,
~accessibilityElementsHidden: bool=?,
~accessibilityHint: string=?,
~accessibilityIgnoresInvertColors: bool=?,
~accessibilityLabel: string=?,
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?,
~accessibilityRole: [@bs.string] [
| `none
| `button
Expand All @@ -58,11 +60,20 @@ external make:
]
=?,
~accessibilityTraits: array(AccessibilityTrait.t)=?,
~accessibilityViewIsModal: bool=?,
~delayLongPress: int=?,
~delayPressIn: int=?,
~delayPressOut: int=?,
~disabled: bool=?,
~hitSlop: View.edgeInsets=?,
~importantForAccessibility: [@bs.string] [
| `auto
| `yes
| `no
| [@bs.as "no-hide-descendants"]
`noHideDescendants
]
=?,
~onLayout: Event.layoutEvent => unit=?,
~onLongPress: Event.pressEvent => unit=?,
~onPress: Event.pressEvent => unit=?,
Expand Down
11 changes: 11 additions & 0 deletions src/components/TouchableNativeFeedback.re
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,11 @@ external make:
| `radiobutton_unchecked
]
=?,
~accessibilityElementsHidden: bool=?,
~accessibilityHint: string=?,
~accessibilityIgnoresInvertColors: bool=?,
~accessibilityLabel: string=?,
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?,
~accessibilityRole: [@bs.string] [
| `none
| `button
Expand All @@ -51,11 +53,20 @@ external make:
]
=?,
~accessibilityTraits: array(AccessibilityTrait.t)=?,
~accessibilityViewIsModal: bool=?,
~delayLongPress: int=?,
~delayPressIn: int=?,
~delayPressOut: int=?,
~disabled: bool=?,
~hitSlop: View.edgeInsets=?,
~importantForAccessibility: [@bs.string] [
| `auto
| `yes
| `no
| [@bs.as "no-hide-descendants"]
`noHideDescendants
]
=?,
~onLayout: Event.layoutEvent => unit=?,
~onLongPress: Event.pressEvent => unit=?,
~onPress: Event.pressEvent => unit=?,
Expand Down
11 changes: 11 additions & 0 deletions src/components/TouchableOpacity.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ external make:
| `radiobutton_unchecked
]
=?,
~accessibilityElementsHidden: bool=?,
~accessibilityHint: string=?,
~accessibilityIgnoresInvertColors: bool=?,
~accessibilityLabel: string=?,
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?,
~accessibilityRole: [@bs.string] [
| `none
| `button
Expand All @@ -43,11 +45,20 @@ external make:
]
=?,
~accessibilityTraits: array(AccessibilityTrait.t)=?,
~accessibilityViewIsModal: bool=?,
~delayLongPress: int=?,
~delayPressIn: int=?,
~delayPressOut: int=?,
~disabled: bool=?,
~hitSlop: View.edgeInsets=?,
~importantForAccessibility: [@bs.string] [
| `auto
| `yes
| `no
| [@bs.as "no-hide-descendants"]
`noHideDescendants
]
=?,
~onLayout: Event.layoutEvent => unit=?,
~onLongPress: Event.pressEvent => unit=?,
~onPress: Event.pressEvent => unit=?,
Expand Down
11 changes: 11 additions & 0 deletions src/components/TouchableOpacity.re
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ external make:
| `radiobutton_unchecked
]
=?,
~accessibilityElementsHidden: bool=?,
~accessibilityHint: string=?,
~accessibilityIgnoresInvertColors: bool=?,
~accessibilityLabel: string=?,
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?,
~accessibilityRole: [@bs.string] [
| `none
| `button
Expand All @@ -36,11 +38,20 @@ external make:
]
=?,
~accessibilityTraits: array(AccessibilityTrait.t)=?,
~accessibilityViewIsModal: bool=?,
~delayLongPress: int=?,
~delayPressIn: int=?,
~delayPressOut: int=?,
~disabled: bool=?,
~hitSlop: View.edgeInsets=?,
~importantForAccessibility: [@bs.string] [
| `auto
| `yes
| `no
| [@bs.as "no-hide-descendants"]
`noHideDescendants
]
=?,
~onLayout: Event.layoutEvent => unit=?,
~onLongPress: Event.pressEvent => unit=?,
~onPress: Event.pressEvent => unit=?,
Expand Down
11 changes: 11 additions & 0 deletions src/components/TouchableWithoutFeedback.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ external make:
| `radiobutton_unchecked
]
=?,
~accessibilityElementsHidden: bool=?,
~accessibilityHint: string=?,
~accessibilityIgnoresInvertColors: bool=?,
~accessibilityLabel: string=?,
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?,
~accessibilityRole: [@bs.string] [
| `none
| `button
Expand All @@ -38,11 +40,20 @@ external make:
]
=?,
~accessibilityTraits: array(AccessibilityTrait.t)=?,
~accessibilityViewIsModal: bool=?,
~delayLongPress: int=?,
~delayPressIn: int=?,
~delayPressOut: int=?,
~disabled: bool=?,
~hitSlop: View.edgeInsets=?,
~importantForAccessibility: [@bs.string] [
| `auto
| `yes
| `no
| [@bs.as "no-hide-descendants"]
`noHideDescendants
]
=?,
~onBlur: Event.targetEvent => unit=?,
~onFocus: Event.targetEvent => unit=?,
~onLayout: Event.layoutEvent => unit=?,
Expand Down
11 changes: 11 additions & 0 deletions src/components/TouchableWithoutFeedback.re
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ external make:
| `radiobutton_unchecked
]
=?,
~accessibilityElementsHidden: bool=?,
~accessibilityHint: string=?,
~accessibilityIgnoresInvertColors: bool=?,
~accessibilityLabel: string=?,
~accessibilityLiveRegion: [@bs.string] [ | `none | `polite | `assertive]=?,
~accessibilityRole: [@bs.string] [
| `none
| `button
Expand All @@ -31,11 +33,20 @@ external make:
]
=?,
~accessibilityTraits: array(AccessibilityTrait.t)=?,
~accessibilityViewIsModal: bool=?,
~delayLongPress: int=?,
~delayPressIn: int=?,
~delayPressOut: int=?,
~disabled: bool=?,
~hitSlop: View.edgeInsets=?,
~importantForAccessibility: [@bs.string] [
| `auto
| `yes
| `no
| [@bs.as "no-hide-descendants"]
`noHideDescendants
]
=?,
~onBlur: Event.targetEvent => unit=?,
~onFocus: Event.targetEvent => unit=?,
~onLayout: Event.layoutEvent => unit=?,
Expand Down

0 comments on commit e826d2e

Please sign in to comment.