Feature: automationText wasn't read aloud on iOS.

View.automationText on iOS now sets both accessibilityIdentifier and accessibilityLabel
This commit is contained in:
Morten Anton Bach Sjøgren
2016-09-01 16:17:46 +02:00
parent 7164774e7a
commit 86055354b8

View File

@@ -21,6 +21,7 @@ global.moduleMerge(viewCommon, exports);
function onAutomationTextPropertyChanged(data: dependencyObservable.PropertyChangeData) {
var view = <View>data.object;
view._nativeView.accessibilityIdentifier = data.newValue;
view._nativeView.accessibilityLabel = data.newValue;
}
(<proxy.PropertyMetadata>viewCommon.View.automationTextProperty.metadata).onSetNativeValue = onAutomationTextPropertyChanged;