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
This commit is contained in:
Charles Pletcher 2016-03-10 13:43:53 -08:00 committed by Facebook Github Bot 9
parent b1090bfae1
commit f5a1600a20

View File

@ -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`:
*
* ```
* <View style={{ borderBottomColor: '#000000', borderBottomWidth: 1, }}>
* <TextInput {...props} />
* </View>
* ```
*/
var TextInput = React.createClass({
statics: {