mirror of
https://github.com/status-im/react-native.git
synced 2025-01-27 17:54:48 +00:00
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 https://github.com/facebook/react-native/pull/16752 Differential Revision: D6274215 Pulled By: hramos fbshipit-source-id: ef735eb9179ab69d2ed1bc4a8b5e921d42d88fb0
This commit is contained in:
parent
1d6ce2311f
commit
354e1cb508
@ -243,11 +243,13 @@ const viewConfig = {
|
|||||||
* ```javascript
|
* ```javascript
|
||||||
* class MyAppHeaderText extends Component {
|
* class MyAppHeaderText extends Component {
|
||||||
* render() {
|
* render() {
|
||||||
* <MyAppText>
|
* return (
|
||||||
* <Text style={{fontSize: 20}}>
|
* <MyAppText>
|
||||||
* {this.props.children}
|
* <Text style={{fontSize: 20}}>
|
||||||
* </Text>
|
* {this.props.children}
|
||||||
* </MyAppText>
|
* </Text>
|
||||||
|
* </MyAppText>
|
||||||
|
* );
|
||||||
* }
|
* }
|
||||||
* }
|
* }
|
||||||
* ```
|
* ```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user