From 71235e509c490fa3f854199840e87f8e05d4c847 Mon Sep 17 00:00:00 2001 From: Daksh Bhardwaj Date: Mon, 12 Sep 2022 14:01:57 +0530 Subject: [PATCH 1/2] added documentation for --- docs/accessibility.md | 16 +++++++++++++ docs/touchablewithoutfeedback.md | 40 ++++++++++++++++++++++++++++++++ docs/view.md | 40 ++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) diff --git a/docs/accessibility.md b/docs/accessibility.md index 30f4d743c6c..dd78504de48 100644 --- a/docs/accessibility.md +++ b/docs/accessibility.md @@ -204,6 +204,22 @@ A Boolean value indicating whether the accessibility elements contained within t For example, in a window that contains sibling views `A` and `B`, setting `accessibilityElementsHidden` to `true` on view `B` causes VoiceOver to ignore the elements in the view `B`. This is similar to the Android property `importantForAccessibility="no-hide-descendants"`. +### `aria-valuemax` + +It Represents the maximum value for range-based components, such as sliders and progress bars. + +### `aria-valuemin` + +It Represents the maximum value for range-based components, such as sliders and progress bars. + +### `aria-valuenow` + +It Represents the current value for range-based components, such as sliders and progress bars. + +### `aria-valuetext` + +It is the textual description of the component. + ### `importantForAccessibility`
Android
In the case of two overlapping UI components with the same parent, default accessibility focus can have unpredictable behavior. The `importantForAccessibility` property will resolve this by controlling if a view fires accessibility events and if it is reported to accessibility services. It can be set to `auto`, `yes`, `no` and `no-hide-descendants` (the last value will force accessibility services to ignore the component and all of its children). diff --git a/docs/touchablewithoutfeedback.md b/docs/touchablewithoutfeedback.md index bcfa47f331a..17b9ff99c7c 100644 --- a/docs/touchablewithoutfeedback.md +++ b/docs/touchablewithoutfeedback.md @@ -219,6 +219,46 @@ See the [Accessibility guide](accessibility.md#accessibilityvalue-ios-android) f --- +### `aria-valuemax` + +It Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `accessibilityValue.max` prop. + +| Type | +| ------ | +| number | + +--- + +### `aria-valuemin` + +It Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `accessibilityValue.min` prop. + +| Type | +| ------ | +| number | + +--- + +### `aria-valuenow` + +It Represents the current value for range-based components, such as sliders and progress bars. Has precedence over the `accessibilityValue.now` prop. + +| Type | +| ------ | +| number | + +--- + +### `aria-valuetext` + +It is the textual description of the component. Has precedence over the `accessibilityValue.text` prop. + +| Type | +| ------ | +| string | + +--- + ### `delayLongPress` Duration (in milliseconds) from `onPressIn` before `onLongPress` is called. diff --git a/docs/view.md b/docs/view.md index 6be5e2864ac..7c15063b691 100644 --- a/docs/view.md +++ b/docs/view.md @@ -249,6 +249,46 @@ When `true`, indicates that the view is an accessibility element. By default, al --- +### `aria-valuemax` + +It Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `accessibilityValue.max` prop. + +| Type | +| ------ | +| number | + +--- + +### `aria-valuemin` + +It Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `accessibilityValue.min` prop. + +| Type | +| ------ | +| number | + +--- + +### `aria-valuenow` + +It Represents the current value for range-based components, such as sliders and progress bars. Has precedence over the `accessibilityValue.now` prop. + +| Type | +| ------ | +| number | + +--- + +### `aria-valuetext` + +It is the textual description of the component. Has precedence over the `accessibilityValue.text` prop. + +| Type | +| ------ | +| string | + +--- + ### `collapsable`
Android
Views that are only used to layout their children or otherwise don't draw anything may be automatically removed from the native hierarchy as an optimization. Set this property to `false` to disable this optimization and ensure that this `View` exists in the native view hierarchy. From dce62bd8694f06762a4854b7638273c010a382e1 Mon Sep 17 00:00:00 2001 From: dakshbhardwaj Date: Fri, 23 Sep 2022 11:57:52 +0530 Subject: [PATCH 2/2] pr review changes --- docs/accessibility.md | 8 ++++---- docs/touchablewithoutfeedback.md | 8 ++++---- docs/view.md | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/accessibility.md b/docs/accessibility.md index dd78504de48..b554fab9db3 100644 --- a/docs/accessibility.md +++ b/docs/accessibility.md @@ -206,19 +206,19 @@ For example, in a window that contains sibling views `A` and `B`, setting `acces ### `aria-valuemax` -It Represents the maximum value for range-based components, such as sliders and progress bars. +Represents the maximum value for range-based components, such as sliders and progress bars. ### `aria-valuemin` -It Represents the maximum value for range-based components, such as sliders and progress bars. +Represents the maximum value for range-based components, such as sliders and progress bars. ### `aria-valuenow` -It Represents the current value for range-based components, such as sliders and progress bars. +Represents the current value for range-based components, such as sliders and progress bars. ### `aria-valuetext` -It is the textual description of the component. +Repersents the textual description of the component. ### `importantForAccessibility`
Android
diff --git a/docs/touchablewithoutfeedback.md b/docs/touchablewithoutfeedback.md index 17b9ff99c7c..5eee69f842a 100644 --- a/docs/touchablewithoutfeedback.md +++ b/docs/touchablewithoutfeedback.md @@ -221,7 +221,7 @@ See the [Accessibility guide](accessibility.md#accessibilityvalue-ios-android) f ### `aria-valuemax` -It Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `accessibilityValue.max` prop. +Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `max` value in the `accessibilityValue` prop. | Type | | ------ | @@ -231,7 +231,7 @@ It Represents the maximum value for range-based components, such as sliders and ### `aria-valuemin` -It Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `accessibilityValue.min` prop. +Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `min` value in the `accessibilityValue` prop. | Type | | ------ | @@ -241,7 +241,7 @@ It Represents the maximum value for range-based components, such as sliders and ### `aria-valuenow` -It Represents the current value for range-based components, such as sliders and progress bars. Has precedence over the `accessibilityValue.now` prop. +Represents the current value for range-based components, such as sliders and progress bars. Has precedence over the `now` value in the `accessibilityValue` prop. | Type | | ------ | @@ -251,7 +251,7 @@ It Represents the current value for range-based components, such as sliders and ### `aria-valuetext` -It is the textual description of the component. Has precedence over the `accessibilityValue.text` prop. +Repersents the textual description of the component. Has precedence over the `text` value in the `accessibilityValue` prop. | Type | | ------ | diff --git a/docs/view.md b/docs/view.md index 7c15063b691..e7501f4cf88 100644 --- a/docs/view.md +++ b/docs/view.md @@ -251,7 +251,7 @@ When `true`, indicates that the view is an accessibility element. By default, al ### `aria-valuemax` -It Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `accessibilityValue.max` prop. +Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `max` value in the `accessibilityValue` prop. | Type | | ------ | @@ -261,7 +261,7 @@ It Represents the maximum value for range-based components, such as sliders and ### `aria-valuemin` -It Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `accessibilityValue.min` prop. +Represents the maximum value for range-based components, such as sliders and progress bars. Has precedence over the `min` value in the `accessibilityValue` prop. | Type | | ------ | @@ -271,7 +271,7 @@ It Represents the maximum value for range-based components, such as sliders and ### `aria-valuenow` -It Represents the current value for range-based components, such as sliders and progress bars. Has precedence over the `accessibilityValue.now` prop. +Represents the current value for range-based components, such as sliders and progress bars. Has precedence over the `now` value in the `accessibilityValue` prop. | Type | | ------ | @@ -281,7 +281,7 @@ It Represents the current value for range-based components, such as sliders and ### `aria-valuetext` -It is the textual description of the component. Has precedence over the `accessibilityValue.text` prop. +Represents the textual description of the component. Has precedence over the `text` value in the `accessibilityValue` prop. | Type | | ------ |