Skip to content

Commit

Permalink
Add accessibilityLanguage type (facebook#35882)
Browse files Browse the repository at this point in the history
Summary:
`accessibilityLanguage` is missing from `AccessibilityPropsIOS` TypeScript interface

## Changelog

[GENERAL] [FIXED] - Added missing `accessibilityLanguage` 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: facebook#35882

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

Reviewed By: christophpurrer

Differential Revision: D42604363

Pulled By: NickGerleman

fbshipit-source-id: fb8dd4b5bba78a080473a9dc7b49a07587530229
  • Loading branch information
DimitarNestorov authored and OlimpiaZurek committed May 22, 2023
1 parent bdebf48 commit 3f528e2
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 @@ -290,6 +290,13 @@ export interface AccessibilityPropsIOS {
* @platform ios
*/
accessibilityIgnoresInvertColors?: boolean | undefined;

/**
* By using the accessibilityLanguage property, the screen reader will understand which language to use while reading the element's label, value and hint. The provided string value must follow the BCP 47 specification (https://www.rfc-editor.org/info/bcp47).
* https://reactnative.dev/docs/accessibility#accessibilitylanguage-ios
* @platform ios
*/
accessibilityLanguage?: string | undefined;
}

export type Role =
Expand Down

0 comments on commit 3f528e2

Please sign in to comment.