Skip to content

Commit

Permalink
Add accessibilityLabelledBy TypeScript type (#35883)
Browse files Browse the repository at this point in the history
Summary:
`accessibilityLabelledBy` is missing from `AccessibilityPropsAndroid` TypeScript interface

## Changelog

[GENERAL] [FIXED] - Added missing `accessibilityLabelledBy` TypeScript type

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

Pull Request resolved: #35883

Test Plan: Ran `yarn test-typescript` and `yarn test-typescript-offline` and there were no errors.

Reviewed By: christophpurrer

Differential Revision: D42604287

Pulled By: NickGerleman

fbshipit-source-id: 476d24d1c0257be787b7e84c2c11bcadc3527979
  • Loading branch information
DimitarNestorov authored and kelset committed Jan 30, 2023
1 parent 3d10511 commit fb393fb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Libraries/Components/View/ViewAccessibility.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@ export interface AccessibilityPropsAndroid {
| 'no'
| 'no-hide-descendants'
| undefined;

/**
* A reference to another element `nativeID` used to build complex forms. The value of `accessibilityLabelledBy` should match the `nativeID` of the related element.
* @platform android
*/
accessibilityLabelledBy?: string | string[] | undefined;
}

export interface AccessibilityPropsIOS {
Expand Down

0 comments on commit fb393fb

Please sign in to comment.