Permalink
Browse files

Fix missing return in example

Summary:
Found this minor issue while reading the docs.

n/a

 [DOCS] [BUGFIX] [Libraries/Text/Text.js] - Add return to example
Closes #16752

Differential Revision: D6274215

Pulled By: hramos

fbshipit-source-id: ef735eb9179ab69d2ed1bc4a8b5e921d42d88fb0
  • Loading branch information...
behrends authored and facebook-github-bot committed Nov 8, 2017
1 parent 1d6ce23 commit 354e1cb5088a43fd4116504a34a65ca53c4de71b
Showing with 7 additions and 5 deletions.
  1. +7 −5 Libraries/Text/Text.js
@@ -243,11 +243,13 @@ const viewConfig = {
* ```javascript
* class MyAppHeaderText extends Component {
* render() {
* <MyAppText>
* <Text style={{fontSize: 20}}>
* {this.props.children}
* </Text>
* </MyAppText>
* return (
* <MyAppText>
* <Text style={{fontSize: 20}}>
* {this.props.children}
* </Text>
* </MyAppText>
* );
* }
* }
* ```

0 comments on commit 354e1cb

Please sign in to comment.