Skip to content

Commit 4879d14

Browse files
author
Alexsander Akers
committed
Code review from @brentvatne
1 parent b287666 commit 4879d14

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docs/Accessibility.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,21 @@ Accessibility on iOS encompasses many topics, but for many, accessibility is syn
1717

1818
#### accessible
1919

20-
When true, indicates that the view is an accessibility element. When a view is an accessibility element, it groups its children into a single selectable component. By default, all touchable elements are accessible.
20+
When `true`, indicates that the view is an accessibility element. When a view is an accessibility element, it groups its children into a single selectable component. By default, all touchable elements are accessible.
2121

2222
#### accessibilityLabel
2323

2424
When a view is marked as accessible, it is a good practice to set an accessibilityLabel on the view, so that people who use VoiceOver know what element they have selected. VoiceOver will read this string when a user selects the associated element.
2525

26-
To use, simply set the `accessibilityLabel` property to a custom string on your View:
26+
To use, set the `accessibilityLabel` property to a custom string on your View:
2727

2828
```javascript
2929
<TouchableOpacity accessible={true} accessibilityLabel={'Tap me!'} onPress={this._onPress}>
3030
<View style={styles.button}>
3131
<Text style={styles.buttonText}>Press me!</Text>
3232
</View>
33-
</TouchableOpacity>```
33+
</TouchableOpacity>
34+
```
3435

3536
In the above example, the `accessibilityLabel` on the TouchableOpacity element would default to "Press me!". The label is constructed by concatenating all Text node children separated by spaces.
3637

0 commit comments

Comments
 (0)