Skip to content

Commit dffd4d3

Browse files
authored
Merge pull request #52 from EdtechFoundry/master
feat: add support for accessibilityLabel
2 parents 46a9cf9 + b93cec4 commit dffd4d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Button.js

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const Button = React.createClass({
2727
PropTypes.element
2828
]),
2929
activeOpacity: PropTypes.number,
30+
accessibilityLabel: PropTypes.string,
3031
allowFontScaling: PropTypes.bool,
3132
isLoading: PropTypes.bool,
3233
isDisabled: PropTypes.bool,
@@ -96,6 +97,7 @@ const Button = React.createClass({
9697
} else {
9798
// Extract Touchable props
9899
let touchableProps = {
100+
accessibilityLabel: this.props.accessibilityLabel,
99101
onPress: this.props.onPress,
100102
onPressIn: this.props.onPressIn,
101103
onPressOut: this.props.onPressOut,

0 commit comments

Comments
 (0)