From 90fc8a30ddc395bed0b0b4c3e613ba8ea01e3c65 Mon Sep 17 00:00:00 2001 From: Harry Moreno Date: Wed, 30 Sep 2015 18:56:00 -0700 Subject: [PATCH] Format Code in TextInput Comment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: * wrap code snippet in TextInput Comment in backticks ``` * unless there is a way to omit portions of comments from reaching the docs this is less confusingCloses https://github.com/facebook/react-native/pull/3085 Reviewed By: @​svcscm Differential Revision: D2495630 Pulled By: @frantic --- Libraries/Components/TextInput/TextInput.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index f96c1852f..8ddd13aa9 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -68,8 +68,8 @@ type Event = Object; * /> * ``` * - * Note that some props are only available with multiline={true/false}: - * + * Note that some props are only available with `multiline={true/false}`: + * ``` * var onlyMultiline = { * onSelectionChange: true, // not supported in Open Source yet * onTextInput: true, // not supported in Open Source yet @@ -79,6 +79,7 @@ type Event = Object; * var notMultiline = { * onSubmitEditing: true, * }; + * ``` */ var TextInput = React.createClass({ propTypes: {