mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-08-15 18:45:06 +00:00
[fix] TextInput forwards placeholderTextColor
Fix a bug introduced by 924e891f58
Ref #1512
This commit is contained in:
@@ -184,7 +184,7 @@ The string that will be rendered in an empty `TextInput` before text has been en
|
||||
</Story>
|
||||
</Preview>
|
||||
|
||||
### placeholderTextColor: ?color
|
||||
### placeholderTextColor
|
||||
|
||||
The text color of the placeholder string.
|
||||
|
||||
@@ -212,7 +212,7 @@ passwords stay secure. (Not available when `multiline` is `true`.)
|
||||
</Story>
|
||||
</Preview>
|
||||
|
||||
### selection: ?{ start: number, end: ?number }
|
||||
### selection
|
||||
|
||||
The start and end of the text input's selection. Set start and end to the same
|
||||
value to position the cursor.
|
||||
@@ -232,7 +232,7 @@ If `true`, all text will automatically be selected on focus.
|
||||
If `false`, disables spell-check style (i.e. red underlines). The default value
|
||||
is inherited from `autoCorrect`. (Only available in supporting browsers).
|
||||
|
||||
### style: ?style
|
||||
### style
|
||||
|
||||
```js
|
||||
{
|
||||
|
||||
@@ -107,6 +107,7 @@ class TextInput extends React.Component<TextInputProps> {
|
||||
multiline = false,
|
||||
numberOfLines = 1,
|
||||
placeholder,
|
||||
placeholderTextColor,
|
||||
returnKeyType,
|
||||
secureTextEntry = false,
|
||||
spellCheck,
|
||||
@@ -162,6 +163,7 @@ class TextInput extends React.Component<TextInputProps> {
|
||||
onKeyPress: this._handleKeyPress,
|
||||
onSelect: normalizeEventHandler(this._handleSelectionChange),
|
||||
placeholder,
|
||||
placeholderTextColor,
|
||||
readOnly: !editable,
|
||||
ref: this._setNode,
|
||||
spellCheck: spellCheck != null ? spellCheck : autoCorrect,
|
||||
|
||||
Reference in New Issue
Block a user