From 654435d1ed9e584e65fff601e1fa50591e042664 Mon Sep 17 00:00:00 2001 From: Knott Wittawat Date: Thu, 19 Apr 2018 13:13:10 -0700 Subject: [PATCH] Fix VoiceOver not identifying the header correctly Reviewed By: sophiebits Differential Revision: D7678644 fbshipit-source-id: ee6c57f2a603eed1c41f22a4142474ab6957ccdf --- Libraries/Text/TextProps.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Libraries/Text/TextProps.js b/Libraries/Text/TextProps.js index 20eb363765e215..effc8b05480b92 100644 --- a/Libraries/Text/TextProps.js +++ b/Libraries/Text/TextProps.js @@ -11,6 +11,8 @@ 'use strict'; +import type {AccessibilityTrait} from 'ViewAccessibility'; + import type {Node} from 'react'; import type {LayoutEvent, PressEvent} from 'CoreEventTypes'; @@ -28,6 +30,7 @@ type PressRetentionOffset = { */ export type TextProps = $ReadOnly<{ accessible?: ?boolean, + accessibilityTraits?: AccessibilityTrait | Array, allowFontScaling?: ?boolean, children?: Node, ellipsizeMode?: 'clip' | 'head' | 'middle' | 'tail',