File tree Expand file tree Collapse file tree 3 files changed +14
-0
lines changed
ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view Expand file tree Collapse file tree 3 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,11 @@ export type AccessibilityPropsIOS = $ReadOnly<{
325
325
export type AccessibilityProps = $ReadOnly < {
326
326
...AccessibilityPropsAndroid ,
327
327
...AccessibilityPropsIOS ,
328
+ /**
329
+ * Array which specifies the order in which the children of a view will be focused by the accessibility service.
330
+ */
331
+ accessibilityOrder ?: $ReadOnlyArray < string > ,
332
+
328
333
/**
329
334
* When `true`, indicates that the view is an accessibility element.
330
335
* By default, all the touchable elements are accessible.
Original file line number Diff line number Diff line change @@ -3945,6 +3945,7 @@ export type AccessibilityPropsIOS = $ReadOnly<{
3945
3945
export type AccessibilityProps = $ReadOnly<{
3946
3946
...AccessibilityPropsAndroid,
3947
3947
...AccessibilityPropsIOS,
3948
+ accessibilityOrder?: $ReadOnlyArray<string>,
3948
3949
accessible?: ?boolean,
3949
3950
accessibilityLabel?: ?Stringish,
3950
3951
accessibilityHint?: ?Stringish,
Original file line number Diff line number Diff line change @@ -823,6 +823,14 @@ folly::dynamic HostPlatformViewProps::getDiffProps(
823
823
result[" accessibilityLabelledBy" ] = accessibilityLabelledByValues;
824
824
}
825
825
826
+ if (accessibilityOrder != oldProps->accessibilityOrder ) {
827
+ auto accessibilityChildrenIds = folly::dynamic::array ();
828
+ for (const auto & accessibilityChildId : accessibilityOrder) {
829
+ accessibilityChildrenIds.push_back (accessibilityChildId);
830
+ }
831
+ result[" accessibilityElements" ] = accessibilityChildrenIds;
832
+ }
833
+
826
834
if (accessibilityLiveRegion != oldProps->accessibilityLiveRegion ) {
827
835
switch (accessibilityLiveRegion) {
828
836
case AccessibilityLiveRegion::Assertive:
You can’t perform that action at this time.
0 commit comments