Skip to content

Commit 71c4f57

Browse files
Add accessibilityLanguage type (#35882)
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: #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
1 parent 1fef376 commit 71c4f57

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Libraries/Components/View/ViewAccessibility.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,13 @@ export interface AccessibilityPropsIOS {
290290
* @platform ios
291291
*/
292292
accessibilityIgnoresInvertColors?: boolean | undefined;
293+
294+
/**
295+
* 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).
296+
* https://reactnative.dev/docs/accessibility#accessibilitylanguage-ios
297+
* @platform ios
298+
*/
299+
accessibilityLanguage?: string | undefined;
293300
}
294301

295302
export type Role =

0 commit comments

Comments
 (0)