AccessibilityLabel is optional

Summary:
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
This commit is contained in:
Eli White 2018-03-08 15:48:39 -08:00 committed by Facebook Github Bot
parent dbdf43b428
commit 214da52fe7
1 changed files with 1 additions and 1 deletions

View File

@ -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',