From 14456e7124b22b99e2befb6986f5a743d6c4b136 Mon Sep 17 00:00:00 2001 From: Luna Wei Date: Tue, 11 Oct 2022 11:12:49 -0700 Subject: [PATCH] Add aria-labelledby to types Summary: Changelog: [Internal] Add `aria-labelledby` to TS events from changes in https://github.com/facebook/react-native/pull/34725 Differential Revision: D40239207 fbshipit-source-id: 27832037bf1de74c2b86c04521b9baaa60c99d44 --- Libraries/Components/View/ViewAccessibility.d.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Libraries/Components/View/ViewAccessibility.d.ts b/Libraries/Components/View/ViewAccessibility.d.ts index feeb7ed5736483..a9ff8baa374686 100644 --- a/Libraries/Components/View/ViewAccessibility.d.ts +++ b/Libraries/Components/View/ViewAccessibility.d.ts @@ -58,6 +58,13 @@ export interface AccessibilityProps 'aria-expanded'?: boolean | undefined; 'aria-selected'?: boolean | undefined; + /** + * Represents the nativeID of the associated label text. When the assistive technology focuses on the component with this props, the text is read aloud. + * + * @platform android + */ + 'aria-labelledby'?: string | undefined; + /** * An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not obvious from the accessibility label. */