Skip to content

Commit

Permalink
Fix wrong endBlock in text.md (#1991)
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnylqm authored Jun 12, 2020
1 parent 8a92453 commit b665e59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ const styles = StyleSheet.create({
export default TextInANest;
```

<block class="endBlock syntax" />

## Nested text

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.
Expand Down Expand Up @@ -131,8 +133,6 @@ const styles = StyleSheet.create({
export default BoldAndBeautiful;
```

<block class="endBlock syntax" />

Behind the scenes, React Native converts this to a flat `NSAttributedString` or `SpannableString` that contains the following information:

```jsx
Expand Down
4 changes: 2 additions & 2 deletions website/versioned_docs/version-0.62/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ const styles = StyleSheet.create({
});
```

<block class="endBlock syntax" />

## Nested text

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.
Expand Down Expand Up @@ -130,8 +132,6 @@ const styles = StyleSheet.create({
export default BoldAndBeautiful;
```

<block class="endBlock syntax" />

Behind the scenes, React Native converts this to a flat `NSAttributedString` or `SpannableString` that contains the following information:

```jsx
Expand Down

0 comments on commit b665e59

Please sign in to comment.