[ReactNative] add accessibilityComponentType
This commit is contained in:
Родитель
dfa43f0ce5
Коммит
e073fdc4c7
|
@ -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,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче