Skip to content

Commit

Permalink
Replace "Bad: will fatal" with "Bad: will fail" in Text.md
Browse files Browse the repository at this point in the history
Summary:This commit makes a change to a comment in `Text.md` related to documenting that all text nodes must be wrapped in a `<Text />` component.

I know this is super small, but it was so easy to handle this on Github that I went ahead and did it.
Closes #6310

Differential Revision: D3016460

Pulled By: vjeux

fb-gh-sync-id: 9cf861c44961c285971ec22489fbf48c16620a5f
shipit-source-id: 9cf861c44961c285971ec22489fbf48c16620a5f
  • Loading branch information
nhunzaker authored and Facebook Github Bot 6 committed Mar 5, 2016
1 parent a6a89fe commit a340105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/Text.md
Expand Up @@ -63,7 +63,7 @@ When the browser is trying to render a text node, it's going to go all the way u
In React Native, we are more strict about it: **you must wrap all the text nodes inside of a `<Text>` component**; you cannot have a text node directly under a `<View>`.

```javascript
// BAD: will fatal, can't have a text node as child of a <View>
// BAD: will raise exception, can't have a text node as child of a <View>
<View>
Some text
</View>
Expand Down

0 comments on commit a340105

Please sign in to comment.