[go: nahoru, domu]

Skip to content

Commit

Permalink
Add accessibilityTraits to support screen readers (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperka authored and James Ide committed Aug 31, 2016
1 parent 51e5c34 commit f72b1c2
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ export default class Button extends Component {
}

return (
<TouchableOpacity {...touchableProps} testID={this.props.testID} style={this.props.containerStyle}>
<TouchableOpacity
{...touchableProps}
testID={this.props.testID}
style={this.props.containerStyle}
accessibilityTraits="button"
accessibilityComponentType="button"
>
{this._renderGroupedChildren()}
</TouchableOpacity>
);
Expand Down

0 comments on commit f72b1c2

Please sign in to comment.