You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/text.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,7 @@ export default TextInANest;
56
56
57
57
## Nested text
58
58
59
-
Both Android and iOS allow you to display formatted text by annotating ranges of a string with specific formatting like bold or colored text (`NSAttributedString` on iOS, `SpannableString` on Android). In practice, this is very tedious. For React Native, we decided to use web paradigm for this where you can nest text to achieve the same effect.
59
+
Both Android and iOS allow you to display formatted text by annotating ranges of a string with specific formatting like bold or colored text (`NSAttributedString` on iOS, `SpannableString` on Android). In practice, this is very tedious. For React Native, we decided to use the web paradigm for this, where you can nest text to achieve the same effect.
60
60
61
61
```SnackPlayer name=Nested%20Text%20Example
62
62
import React from 'react';
@@ -106,7 +106,7 @@ The `<Text>` element is unique relative to layout: everything inside is no longe
106
106
<Text>First part and </Text>
107
107
<Text>second part</Text>
108
108
</Text>
109
-
// Text container: the text will be inline if the space allowed it
109
+
// Text container: the text will be inline, if the space allows it
Composing `MyAppText` in this way ensures that we get the styles from a top-level component, but leaves us the ability to add / override them in specific use cases.
184
+
Composing `MyAppText` in this way ensures that we get the styles from a top-level component, but leaves us the ability to add/override them in specific use cases.
185
185
186
186
React Native still has the concept of style inheritance, but limited to text subtrees. In this case, the second part will be both bold and red.
187
187
@@ -254,7 +254,7 @@ On Android, these roles have similar functionality on TalkBack as adding Accessi
254
254
255
255
Tells the screen reader to treat the currently focused on element as being in a specific state.
256
256
257
-
You can provide one state, no state, or multiple states. The states must be passed in through an object. Ex:`{selected: true, disabled: true}`.
257
+
You can provide one state, no state, or multiple states. The states must be passed in through an object, e.g.`{selected: true, disabled: true}`.
Copy file name to clipboardExpand all lines: docs/viewtoken.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ id: viewtoken
3
3
title: ViewToken Object Type
4
4
---
5
5
6
-
`ViewToken` object is returned as one of properties in the `onViewableItemsChanged` callback, for example in [FlatList](flatlist) component. It is exported by [`ViewabilityHelper.js`](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Lists/ViewabilityHelper.js).
6
+
`ViewToken` object is returned as one of the properties in the `onViewableItemsChanged` callback (for example, in the [FlatList](flatlist) component). It is exported by [`ViewabilityHelper.js`](https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Lists/ViewabilityHelper.js).
7
7
8
8
## Example
9
9
@@ -44,7 +44,7 @@ Item data
44
44
45
45
### `key`
46
46
47
-
Key identifier assigned of the data element extracted to the top level.
47
+
Key identifier assigned to the data element extracted to the top level.
0 commit comments