mirror of
https://github.com/status-im/react-native.git
synced 2025-01-28 18:25:06 +00:00
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:
parent
b1090bfae1
commit
f5a1600a20
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user