Replace "Bad: will fatal" with "Bad: will fail" in Text.md
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 https://github.com/facebook/react-native/pull/6310 Differential Revision: D3016460 Pulled By: vjeux fb-gh-sync-id: 9cf861c44961c285971ec22489fbf48c16620a5f shipit-source-id: 9cf861c44961c285971ec22489fbf48c16620a5f
This commit is contained in:
parent
a6a89fe4e0
commit
a340105360
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue