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:
parent
dbdf43b428
commit
214da52fe7
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue