File tree 1 file changed +6
-0
lines changed
src/components/RadioButton
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ export type Props = {
30
30
* Function to execute on press.
31
31
*/
32
32
onPress ?: ( ) => void ;
33
+ /**
34
+ * Accessibility label for the touchable. This is read by the screen reader when the user taps the touchable.
35
+ */
36
+ accessibilityLabel ?: string ;
33
37
/**
34
38
* Custom color for unchecked radio.
35
39
*/
@@ -106,6 +110,7 @@ class RadioButtonItem extends React.Component<Props> {
106
110
uncheckedColor,
107
111
status,
108
112
theme : { colors } ,
113
+ accessibilityLabel,
109
114
} = this . props ;
110
115
111
116
return (
@@ -123,6 +128,7 @@ class RadioButtonItem extends React.Component<Props> {
123
128
value,
124
129
} )
125
130
}
131
+ accessibilityLabel = { accessibilityLabel }
126
132
>
127
133
< View style = { [ styles . container , style ] } pointerEvents = "none" >
128
134
< Text
You can’t perform that action at this time.
0 commit comments