Skip to content

Commit 9fe9273

Browse files
authored
Merge pull request #114 from reasonml-community/add-accessibility-labels
Add accessibility labels
2 parents 5ae435d + d0ccfc1 commit 9fe9273

12 files changed

+147
-5
lines changed

lib/js/src/RNEvent.js

Lines changed: 129 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/js/src/components/touchableHighlight.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/js/src/components/touchableOpacity.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/js/src/components/touchableWithoutFeedback.js

Lines changed: 3 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/touchableHighlight.re

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
let make =
44
(
55
~accessible=?,
6+
~accessibilityLabel=?,
67
~accessibilityComponentType=?,
78
~accessibilityTraits=?,
89
~delayLongPress=?,
@@ -29,6 +30,7 @@ let make =
2930
Js.Undefined.(
3031
{
3132
"accessible": from_opt(UtilsRN.optBoolToOptJsBoolean(accessible)),
33+
"accessibilityLabel": from_opt(accessibilityLabel),
3234
"delayLongPress": from_opt(delayLongPress),
3335
"delayPressIn": from_opt(delayPressIn),
3436
"delayPressOut": from_opt(delayPressOut),

src/components/touchableHighlight.rei

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
let make:
22
(
33
~accessible: bool=?,
4+
~accessibilityLabel: string=?,
45
~accessibilityComponentType: [
56
| `none
67
| `button

src/components/touchableOpacity.re

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
let make =
66
(
77
~accessible=?,
8+
~accessibilityLabel=?,
89
~accessibilityComponentType=?,
910
~accessibilityTraits=?,
1011
~delayLongPress=?,
@@ -28,6 +29,7 @@ let make =
2829
Js.Undefined.(
2930
{
3031
"accessible": from_opt(UtilsRN.optBoolToOptJsBoolean(accessible)),
32+
"accessibilityLabel": from_opt(accessibilityLabel),
3133
"delayLongPress": from_opt(delayLongPress),
3234
"delayPressIn": from_opt(delayPressIn),
3335
"delayPressOut": from_opt(delayPressOut),

src/components/touchableOpacity.rei

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
let make:
44
(
55
~accessible: bool=?,
6+
~accessibilityLabel: string=?,
67
~accessibilityComponentType: [
78
| `none
89
| `button

src/components/touchableWithoutFeedback.re

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
let make =
44
(
55
~accessible=?,
6+
~accessibilityLabel=?,
67
~accessibilityComponentType=?,
78
~accessibilityTraits=?,
89
~delayLongPress=?,
@@ -24,6 +25,7 @@ let make =
2425
Js.Undefined.(
2526
{
2627
"accessible": from_opt(UtilsRN.optBoolToOptJsBoolean(accessible)),
28+
"accessibilityLabel": from_opt(accessibilityLabel),
2729
"delayLongPress": from_opt(delayLongPress),
2830
"delayPressIn": from_opt(delayPressIn),
2931
"delayPressOut": from_opt(delayPressOut),

src/components/touchableWithoutFeedback.rei

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
let make:
22
(
33
~accessible: bool=?,
4+
~accessibilityLabel: string=?,
45
~accessibilityComponentType: [
56
| `none
67
| `button

0 commit comments

Comments
 (0)