From f5a1600a207b0f8d9755544d7bb18e87171c518c Mon Sep 17 00:00:00 2001 From: Charles Pletcher Date: Thu, 10 Mar 2016 13:43:53 -0800 Subject: [PATCH] Fixes #1509 -- Add note about side-specific properties on TextInput Summary:Add note about side-specific properties not being applied to `TextInput`s if `multiline=false`. Fix formatting of docs describing other `multiline={true/false}` quirks. Closes https://github.com/facebook/react-native/pull/2240 Differential Revision: D3037154 Pulled By: andreicoman11 fb-gh-sync-id: d64db906c2ab0054f2357b8e218725414d9868d6 shipit-source-id: d64db906c2ab0054f2357b8e218725414d9868d6 --- Libraries/Components/TextInput/TextInput.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 2243ee4b4..5da75257b 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -68,7 +68,17 @@ 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}`. + * Additionally, border styles that apply to only one side of the element + * (e.g., `borderBottomColor`, `borderLeftWidth`, etc.) will not be applied if + * `multiline=false`. To achieve the same effect, you can wrap your `TextInput` + * in a `View`: + * + * ``` + * + * + * + * ``` */ var TextInput = React.createClass({ statics: {