From 0193030d0081872a07315071770bd103c632acb1 Mon Sep 17 00:00:00 2001 From: Dimitar Nestorov Date: Thu, 19 Jan 2023 05:52:57 -0800 Subject: [PATCH] Add `accessibilityLanguage` type (#35882) Summary: `accessibilityLanguage` is missing from `AccessibilityPropsIOS` TypeScript interface ## Changelog [GENERAL] [FIXED] - Added missing `accessibilityLanguage` TypeScript type Pull Request resolved: https://github.com/facebook/react-native/pull/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 --- 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 c68c758410c889..7dccb92bab1eb4 100644 --- a/Libraries/Components/View/ViewAccessibility.d.ts +++ b/Libraries/Components/View/ViewAccessibility.d.ts @@ -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 =