Skip to content

Commit

Permalink
Merge pull request #52 from EdtechFoundry/master
Browse files Browse the repository at this point in the history
feat: add support for accessibilityLabel
  • Loading branch information
alvaromb authored Nov 11, 2016
2 parents 46a9cf9 + b93cec4 commit dffd4d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const Button = React.createClass({
PropTypes.element
]),
activeOpacity: PropTypes.number,
accessibilityLabel: PropTypes.string,
allowFontScaling: PropTypes.bool,
isLoading: PropTypes.bool,
isDisabled: PropTypes.bool,
Expand Down Expand Up @@ -96,6 +97,7 @@ const Button = React.createClass({
} else {
// Extract Touchable props
let touchableProps = {
accessibilityLabel: this.props.accessibilityLabel,
onPress: this.props.onPress,
onPressIn: this.props.onPressIn,
onPressOut: this.props.onPressOut,
Expand Down

0 comments on commit dffd4d3

Please sign in to comment.