From 055c941c4045468af4ff2b8162d3a35dd993b1b9 Mon Sep 17 00:00:00 2001 From: Tim Yung Date: Thu, 23 Aug 2018 00:13:53 -0700 Subject: [PATCH] A11Y: Leverage New `AccessibilityProps` Props Summary: Adds new accessibility props more widely. Reviewed By: TheSavior Differential Revision: D9466018 fbshipit-source-id: 63ce58f725c7fd924d979d821037011d83c0334e --- Libraries/Components/Touchable/TouchableWithoutFeedback.js | 4 ++-- Libraries/Components/View/ViewPropTypes.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Libraries/Components/Touchable/TouchableWithoutFeedback.js b/Libraries/Components/Touchable/TouchableWithoutFeedback.js index 3bb69617e..e4bf9fe83 100755 --- a/Libraries/Components/Touchable/TouchableWithoutFeedback.js +++ b/Libraries/Components/Touchable/TouchableWithoutFeedback.js @@ -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, - accessibilityHint?: string, + accessibilityHint?: ?Stringish, + accessibilityIgnoresInvertColors?: ?boolean, accessibilityRole?: ?AccessibilityRole, accessibilityStates?: ?AccessibilityStatesFlow, accessibilityTraits?: ?AccessibilityTraitsFlow, diff --git a/Libraries/Components/View/ViewPropTypes.js b/Libraries/Components/View/ViewPropTypes.js index 7afcee505..d802a6a71 100644 --- a/Libraries/Components/View/ViewPropTypes.js +++ b/Libraries/Components/View/ViewPropTypes.js @@ -88,10 +88,10 @@ export type ViewProps = $ReadOnly<{| accessibilityLabel?: | null | React$PropType$Primitive - | string + | Stringish | Array | any, - accessibilityHint?: string, + accessibilityHint?: Stringish, accessibilityActions?: Array, accessibilityComponentType?: AccessibilityComponentType, accessibilityLiveRegion?: 'none' | 'polite' | 'assertive',