Browse files

AccessibilityLabel is optional

We have a bunch of components internally that use accessibilityLabel in invalid ways.
View was originally typed as any so invalid usages weren't caught. In order to fix these we have to move forward with getting back to flow having no errors. We are weakening these types to get there and we can tighten them again later.

Reviewed By: yungsters

Differential Revision: D7203260

fbshipit-source-id: 2282eba14899c620de5b4b1c1b2670b157f2fc9e
  • Loading branch information...
TheSavior authored and facebook-github-bot committed Mar 8, 2018
1 parent dbdf43b commit 214da52fe76c1688d0c1a402b3e6c4d0fc19d882
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/Components/View/ViewPropTypes.js
@@ -46,7 +46,7 @@ export type ViewLayoutEvent = {
// so we must include TVViewProps
export type ViewProps = {
accessible?: bool,
accessibilityLabel?: React$PropType$Primitive<any>,
accessibilityLabel?: null | React$PropType$Primitive<any> | string | Array<any> | any,
accessibilityActions?: Array<string>,
accessibilityComponentType?: AccessibilityComponentType,
accessibilityLiveRegion?: 'none' | 'polite' | 'assertive',

0 comments on commit 214da52

Please sign in to comment.