diff --git a/tns-core-modules/ui/core/view.android.ts b/tns-core-modules/ui/core/view.android.ts index b7732c04c..1b1cbaa09 100644 --- a/tns-core-modules/ui/core/view.android.ts +++ b/tns-core-modules/ui/core/view.android.ts @@ -22,7 +22,7 @@ var VIEW_GROUP = "_viewGroup"; function onAutomationTextPropertyChanged(data: dependencyObservable.PropertyChangeData) { var view = data.object; - view._nativeView.setContentDescription(data.newValue); + view._nativeView.setContentDescription(data.newValue + ""); } (viewCommon.View.automationTextProperty.metadata).onSetNativeValue = onAutomationTextPropertyChanged; diff --git a/tns-core-modules/ui/core/view.ios.ts b/tns-core-modules/ui/core/view.ios.ts index 06be5a1dc..f4addaf6e 100644 --- a/tns-core-modules/ui/core/view.ios.ts +++ b/tns-core-modules/ui/core/view.ios.ts @@ -13,8 +13,8 @@ global.moduleMerge(viewCommon, exports); function onAutomationTextPropertyChanged(data: dependencyObservable.PropertyChangeData) { var view = data.object; - view._nativeView.accessibilityIdentifier = data.newValue; - view._nativeView.accessibilityLabel = data.newValue; + view._nativeView.accessibilityIdentifier = data.newValue + ""; + view._nativeView.accessibilityLabel = data.newValue + ""; } (viewCommon.View.automationTextProperty.metadata).onSetNativeValue = onAutomationTextPropertyChanged;