[ReactNative] add accessibilityComponentType
This commit is contained in:
Родитель
dfa43f0ce5
Коммит
e073fdc4c7
|
@ -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
|
||||
|
|
|
@ -19,6 +19,7 @@ ReactNativeViewAttributes.UIView = {
|
|||
pointerEvents: true,
|
||||
accessible: true,
|
||||
accessibilityLabel: true,
|
||||
accessibilityComponentType: true,
|
||||
accessibilityTraits: true,
|
||||
testID: true,
|
||||
onLayout: true,
|
||||
|
|
Загрузка…
Ссылка в новой задаче