mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Back out "Finish adding accessibilityOrder to ReactNative"
Summary: This isn't ready yet, we shouldn't expose it. Original commit changeset: 110ba4c42adc Original Phabricator Diff: D71420768 Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D71938547 fbshipit-source-id: 5026dcc11c151ad16386c1f11a702b46308a0e51
This commit is contained in:
committed by
Facebook GitHub Bot
parent
0b1d0e84ee
commit
27b7512d85
@@ -325,11 +325,6 @@ export type AccessibilityPropsIOS = $ReadOnly<{
|
||||
export type AccessibilityProps = $ReadOnly<{
|
||||
...AccessibilityPropsAndroid,
|
||||
...AccessibilityPropsIOS,
|
||||
/**
|
||||
* Array which specifies the order in which the children of a view will be focused by the accessibility service.
|
||||
*/
|
||||
accessibilityOrder?: $ReadOnlyArray<string>,
|
||||
|
||||
/**
|
||||
* When `true`, indicates that the view is an accessibility element.
|
||||
* By default, all the touchable elements are accessible.
|
||||
|
||||
@@ -3947,7 +3947,6 @@ export type AccessibilityPropsIOS = $ReadOnly<{
|
||||
export type AccessibilityProps = $ReadOnly<{
|
||||
...AccessibilityPropsAndroid,
|
||||
...AccessibilityPropsIOS,
|
||||
accessibilityOrder?: $ReadOnlyArray<string>,
|
||||
accessible?: ?boolean,
|
||||
accessibilityLabel?: ?Stringish,
|
||||
accessibilityHint?: ?Stringish,
|
||||
|
||||
-8
@@ -823,14 +823,6 @@ folly::dynamic HostPlatformViewProps::getDiffProps(
|
||||
result["accessibilityLabelledBy"] = accessibilityLabelledByValues;
|
||||
}
|
||||
|
||||
if (accessibilityOrder != oldProps->accessibilityOrder) {
|
||||
auto accessibilityChildrenIds = folly::dynamic::array();
|
||||
for (const auto& accessibilityChildId : accessibilityOrder) {
|
||||
accessibilityChildrenIds.push_back(accessibilityChildId);
|
||||
}
|
||||
result["accessibilityElements"] = accessibilityChildrenIds;
|
||||
}
|
||||
|
||||
if (accessibilityLiveRegion != oldProps->accessibilityLiveRegion) {
|
||||
switch (accessibilityLiveRegion) {
|
||||
case AccessibilityLiveRegion::Assertive:
|
||||
|
||||
Reference in New Issue
Block a user