From d4fb544dad1624c7176c124f1d8a1f3f4f5b96ca Mon Sep 17 00:00:00 2001 From: Dimitar Nestorov Date: Wed, 18 Jan 2023 20:16:43 +0200 Subject: [PATCH] Add `accessibilityLanguage` type --- 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 =