@@ -40,6 +40,9 @@ const mixedCheckboxImageSource = require('./mixed.png');
40
40
const { createRef} = require ( 'react' ) ;
41
41
42
42
const styles = StyleSheet . create ( {
43
+ sectionContainer : {
44
+ rowGap : 20 ,
45
+ } ,
43
46
default : {
44
47
borderWidth : StyleSheet . hairlineWidth ,
45
48
borderColor : '#0f0f0f' ,
@@ -103,7 +106,7 @@ const styles = StyleSheet.create({
103
106
class AccessibilityExample extends React . Component < { } > {
104
107
render ( ) : React . Node {
105
108
return (
106
- < View >
109
+ < View style = { styles . sectionContainer } >
107
110
< RNTesterBlock title = "TextView without label" >
108
111
< Text >
109
112
Text's accessibilityLabel is the raw text itself unless it is set
@@ -284,7 +287,7 @@ class AccessibilityExample extends React.Component<{}> {
284
287
class AutomaticContentGrouping extends React . Component < { } > {
285
288
render ( ) : React . Node {
286
289
return (
287
- < View >
290
+ < View style = { styles . sectionContainer } >
288
291
< RNTesterBlock title = "The parent and the children have a different role" >
289
292
< TouchableNativeFeedback accessible = { true } accessibilityRole = "button" >
290
293
< View accessible = { false } >
@@ -731,7 +734,7 @@ class AccessibilityRoleAndStateExample extends React.Component<{}> {
731
734
] ;
732
735
733
736
return (
734
- < >
737
+ < View style = { styles . sectionContainer } >
735
738
< RNTesterBlock title = "ScrollView with grid role" >
736
739
< ScrollView accessibilityRole = "grid" style = { styles . scrollView } >
737
740
{ content }
@@ -876,20 +879,19 @@ class AccessibilityRoleAndStateExample extends React.Component<{}> {
876
879
</ View >
877
880
< ExpandableElementExample />
878
881
< SelectionExample />
879
- < RNTesterBlock title = "Nested checkbox with delayed state change" >
880
- < NestedCheckBox />
881
- </ RNTesterBlock >
882
+ < Text > Nested checkbox with delayed state change</ Text >
883
+ < NestedCheckBox />
882
884
</ View >
883
885
</ RNTesterBlock >
884
- </ >
886
+ </ View >
885
887
) ;
886
888
}
887
889
}
888
890
889
891
class AccessibilityActionsExample extends React . Component < { } > {
890
892
render ( ) : React . Node {
891
893
return (
892
- < View >
894
+ < View style = { styles . sectionContainer } >
893
895
< RNTesterBlock title = "Non-touchable with activate action" >
894
896
< View
895
897
accessible = { true }
@@ -1293,7 +1295,7 @@ function SetAccessibilityFocusExample(props: {}): React.Node {
1293
1295
class EnabledExamples extends React . Component < { } > {
1294
1296
render ( ) : React . Node {
1295
1297
return (
1296
- < View >
1298
+ < View style = { styles . sectionContainer } >
1297
1299
{ Platform . OS === 'ios' ? (
1298
1300
< >
1299
1301
< RNTesterBlock title = "isBoldTextEnabled()" >
@@ -1357,7 +1359,7 @@ class EnabledExamples extends React.Component<{}> {
1357
1359
class ImportantForAccessibilityExamples extends React . Component < { } > {
1358
1360
render ( ) : React . Node {
1359
1361
return (
1360
- < View >
1362
+ < View style = { styles . sectionContainer } >
1361
1363
< RNTesterBlock title = "ImageBackground with importantForAccessibility=no-hide-descendants" >
1362
1364
< View style = { styles . container } >
1363
1365
< ImageBackground
@@ -1546,11 +1548,10 @@ function DisplayOptionStatusExample({
1546
1548
1547
1549
function AccessibilityExpandedExample ( ) : React . Node {
1548
1550
const [ expand , setExpanded ] = React . useState ( false ) ;
1549
- const [ pressed , setPressed ] = React . useState ( false ) ;
1550
1551
const expandAction = { name : 'expand' } ;
1551
1552
const collapseAction = { name : 'collapse' } ;
1552
1553
return (
1553
- < >
1554
+ < View style = { styles . sectionContainer } >
1554
1555
< RNTesterBlock title = "Collapse/Expanded state change (Paper)" >
1555
1556
< Text >
1556
1557
The following component announces expanded/collapsed state correctly
@@ -1592,7 +1593,7 @@ function AccessibilityExpandedExample(): React.Node {
1592
1593
</ View >
1593
1594
</ TouchableWithoutFeedback >
1594
1595
</ RNTesterBlock >
1595
- </ >
1596
+ </ View >
1596
1597
) ;
1597
1598
}
1598
1599
0 commit comments