A11Y: Leverage New `AccessibilityProps` Props

Summary: Adds new accessibility props more widely.

Reviewed By: TheSavior

Differential Revision: D9466018

fbshipit-source-id: 63ce58f725c7fd924d979d821037011d83c0334e
This commit is contained in:
Tim Yung 2018-08-23 00:13:53 -07:00 committed by Facebook Github Bot
parent aae3a7816e
commit 055c941c40
2 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,6 @@ const View = require('View');
const createReactClass = require('create-react-class');
const ensurePositiveDelayProps = require('ensurePositiveDelayProps');
const warning = require('fbjs/lib/warning');
const {
AccessibilityComponentTypes,
@ -48,7 +47,8 @@ export type Props = $ReadOnly<{|
| string
| Array<any>
| any,
accessibilityHint?: string,
accessibilityHint?: ?Stringish,
accessibilityIgnoresInvertColors?: ?boolean,
accessibilityRole?: ?AccessibilityRole,
accessibilityStates?: ?AccessibilityStatesFlow,
accessibilityTraits?: ?AccessibilityTraitsFlow,

View File

@ -88,10 +88,10 @@ export type ViewProps = $ReadOnly<{|
accessibilityLabel?:
| null
| React$PropType$Primitive<any>
| string
| Stringish
| Array<any>
| any,
accessibilityHint?: string,
accessibilityHint?: Stringish,
accessibilityActions?: Array<string>,
accessibilityComponentType?: AccessibilityComponentType,
accessibilityLiveRegion?: 'none' | 'polite' | 'assertive',