Skip to content

Commit

Permalink
Add aria-labelledby to types
Browse files Browse the repository at this point in the history
Summary: Changelog: [Internal] Add `aria-labelledby` to TS events from changes in #34725

Differential Revision: D40239207

fbshipit-source-id: 27832037bf1de74c2b86c04521b9baaa60c99d44
  • Loading branch information
lunaleaps authored and facebook-github-bot committed Oct 11, 2022
1 parent 5c5220a commit 14456e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Libraries/Components/View/ViewAccessibility.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 14456e7

Please sign in to comment.