Skip to content

Commit 214da52

Browse files
elicwhitefacebook-github-bot
authored andcommitted
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
1 parent dbdf43b commit 214da52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Libraries/Components/View/ViewPropTypes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export type ViewLayoutEvent = {
4646
// so we must include TVViewProps
4747
export type ViewProps = {
4848
accessible?: bool,
49-
accessibilityLabel?: React$PropType$Primitive<any>,
49+
accessibilityLabel?: null | React$PropType$Primitive<any> | string | Array<any> | any,
5050
accessibilityActions?: Array<string>,
5151
accessibilityComponentType?: AccessibilityComponentType,
5252
accessibilityLiveRegion?: 'none' | 'polite' | 'assertive',

0 commit comments

Comments
 (0)