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:
parent
aae3a7816e
commit
055c941c40
|
@ -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,
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue