@@ -1741,12 +1741,8 @@ function AccessibilityOrderExample(): React.Node {
17411741 />
17421742 < View
17431743 nativeID = "c"
1744- accessibilityLabel = "c"
1745- style = { [ { backgroundColor : 'yellow' } , styles . boxSize ] } >
1746- < RNTesterText style = { { color : 'black' , fontSize : 10 } } >
1747- Not accessible, in the order
1748- </ RNTesterText >
1749- </ View >
1744+ style = { [ { backgroundColor : 'yellow' } , styles . boxSize ] }
1745+ />
17501746 </ View >
17511747 < RNTesterText style = { { marginBottom : 8 } } >
17521748 Accessibility order can reference containers: accessibilityOrder=['b',
@@ -1757,7 +1753,6 @@ function AccessibilityOrderExample(): React.Node {
17571753 experimental_accessibilityOrder = { [ 'b' , 'c' , 'a' ] } >
17581754 < View
17591755 nativeID = "a"
1760- accessibilityLabel = "a"
17611756 style = { [
17621757 { backgroundColor : 'red' , flexWrap : 'wrap' , flexDirection : 'row' } ,
17631758 styles . boxSize ,
@@ -1850,8 +1845,8 @@ function AccessibilityOrderExample(): React.Node {
18501845 />
18511846 </ View >
18521847 < RNTesterText style = { { marginBottom : 8 } } >
1853- Accessibility order can reference the root: accessibilityOrder=['b',
1854- 'c', 'root', 'a'].
1848+ Accessibility order cannot order the root, but it can still be
1849+ accessible: accessibilityOrder=['b', 'c', 'root', 'a'].
18551850 </ RNTesterText >
18561851 < View
18571852 accessible = { true }
@@ -1881,7 +1876,7 @@ function AccessibilityOrderExample(): React.Node {
18811876 < RNTesterText style = { { marginBottom : 8 } } >
18821877 Accessibility order can reference parents and their decendants in any
18831878 order: accessibilityOrder=[child 2, child 1, child 2.3, child 3.2, child
1884- 4, child 2.4, parent, child 2.1, child 2.4 ]
1879+ 4, child 2.4, parent, child 2.1]
18851880 </ RNTesterText >
18861881 < View
18871882 style = { { flexDirection : 'row' , gap : 10 , marginBottom : 8 } }
@@ -1894,7 +1889,6 @@ function AccessibilityOrderExample(): React.Node {
18941889 'child2.4' ,
18951890 'parent' ,
18961891 'child2.1' ,
1897- 'child2.4' ,
18981892 ] } >
18991893 < View
19001894 accessible = { true }
@@ -1994,7 +1988,7 @@ function AccessibilityOrderExample(): React.Node {
19941988 < View
19951989 accessible = { true }
19961990 accessibilityLabel = "I am a view with a label that got co-opted"
1997- style = { [ { backgroundColor : 'red ' } , styles . smallBoxSize ] }
1991+ style = { [ { backgroundColor : 'blue ' } , styles . smallBoxSize ] }
19981992 />
19991993 </ View >
20001994 < View
@@ -2019,7 +2013,7 @@ function AccessibilityOrderExample(): React.Node {
20192013 </ View >
20202014 < RNTesterText style = { { marginBottom : 8 } } >
20212015 Accessibility order let's you focus links, but the text needs to be
2022- included: accessibilityOrder=[b , a, c , text]
2016+ included: accessibilityOrder=[c , a, b , text]
20232017 </ RNTesterText >
20242018 < View
20252019 style = { { flexDirection : 'row' , gap : 10 , marginBottom : 8 } }
@@ -2033,10 +2027,7 @@ function AccessibilityOrderExample(): React.Node {
20332027 accessible = { true }
20342028 nativeID = "b"
20352029 style = { [ { backgroundColor : 'green' } , styles . boxSize ] } >
2036- < RNTesterText
2037- accessible = { true }
2038- style = { { fontSize : 10 } }
2039- nativeID = "text" >
2030+ < RNTesterText style = { { fontSize : 10 } } nativeID = "text" >
20402031 I am a{ ' ' }
20412032 < RNTesterText accessibilityRole = "link" style = { styles . link } >
20422033 link!
@@ -2050,8 +2041,7 @@ function AccessibilityOrderExample(): React.Node {
20502041 style = { [ { backgroundColor : 'yellow' } , styles . boxSize ] } >
20512042 < RNTesterText
20522043 accessible = { true }
2053- style = { { color : 'black' , fontSize : 10 } }
2054- nativeID = "text" >
2044+ style = { { color : 'black' , fontSize : 10 } } >
20552045 I am a{ ' ' }
20562046 < RNTesterText accessibilityRole = "link" style = { styles . link } >
20572047 non-discoverable link!
0 commit comments