[ReactNative] add accessibilityComponentType

This commit is contained in:
Dorota Kapturkiewicz 2015-07-29 09:12:16 -07:00
parent dfa43f0ce5
commit e073fdc4c7
2 changed files with 10 additions and 0 deletions

View File

@ -96,6 +96,15 @@ var View = React.createClass({
*/
accessibilityLabel: PropTypes.string,
/**
* Indicates to accessibility services to treat UI component like a
* native one. Works for Android only.
*/
accessibilityComponentType: PropTypes.oneOf([
'none',
'button',
]),
/**
* Provides additional traits to screen reader. By default no traits are
* provided unless specified otherwise in element

View File

@ -19,6 +19,7 @@ ReactNativeViewAttributes.UIView = {
pointerEvents: true,
accessible: true,
accessibilityLabel: true,
accessibilityComponentType: true,
accessibilityTraits: true,
testID: true,
onLayout: true,