Skip to content

Commit

Permalink
AccessibilityLabel is optional
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TheSavior authored and facebook-github-bot committed Mar 8, 2018
1 parent dbdf43b commit 214da52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Libraries/Components/View/ViewPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 214da52

Please sign in to comment.