[ReactNative] add accessibilityComponentType

This commit is contained in:
Dorota Kapturkiewicz 2015-07-29 09:12:16 -07:00
Родитель dfa43f0ce5
Коммит e073fdc4c7
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -96,6 +96,15 @@ var View = React.createClass({
*/ */
accessibilityLabel: PropTypes.string, 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 * Provides additional traits to screen reader. By default no traits are
* provided unless specified otherwise in element * provided unless specified otherwise in element

Просмотреть файл

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