From 43f06fae9aa212f57bc3c4b77a472b1e3542ae16 Mon Sep 17 00:00:00 2001 From: Erik Behrends Date: Wed, 8 Nov 2017 12:07:30 -0800 Subject: [PATCH] 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 --- Libraries/Text/Text.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Libraries/Text/Text.js b/Libraries/Text/Text.js index 92c382b9651060..7f9907e76e26ad 100644 --- a/Libraries/Text/Text.js +++ b/Libraries/Text/Text.js @@ -243,11 +243,13 @@ const viewConfig = { * ```javascript * class MyAppHeaderText extends Component { * render() { - * - * - * {this.props.children} - * - * + * return ( + * + * + * {this.props.children} + * + * + * ); * } * } * ```