Skip to content

Commit

Permalink
Fix missing return in example
Browse files Browse the repository at this point in the history
Summary:
Found this minor issue while reading the docs.

n/a

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

Differential Revision: D6274215

Pulled By: hramos

fbshipit-source-id: ef735eb9179ab69d2ed1bc4a8b5e921d42d88fb0
  • Loading branch information
behrends authored and cdlewis committed Nov 19, 2017
1 parent 8718876 commit 43f06fa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Libraries/Text/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>
* );
* }
* }
* ```
Expand Down

0 comments on commit 43f06fa

Please sign in to comment.