Skip to content

Commit

Permalink
Fixes facebook#1509 -- Add note about side-specific properties on Tex…
Browse files Browse the repository at this point in the history
…tInput

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 facebook#2240

Differential Revision: D3037154

Pulled By: andreicoman11

fb-gh-sync-id: d64db906c2ab0054f2357b8e218725414d9868d6
shipit-source-id: d64db906c2ab0054f2357b8e218725414d9868d6
  • Loading branch information
pletcher authored and Facebook Github Bot 9 committed Mar 10, 2016
1 parent b1090bf commit f5a1600
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Libraries/Components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit f5a1600

Please sign in to comment.