[fix] TextInput forwards placeholderTextColor

Fix a bug introduced by 924e891f58

Ref #1512
This commit is contained in:
Nicolas Gallagher
2019-12-20 23:30:37 +00:00
parent e22f0bebb3
commit e670e8135b
2 changed files with 5 additions and 3 deletions
@@ -184,7 +184,7 @@ The string that will be rendered in an empty `TextInput` before text has been en
</Story> </Story>
</Preview> </Preview>
### placeholderTextColor: ?color ### placeholderTextColor
The text color of the placeholder string. The text color of the placeholder string.
@@ -212,7 +212,7 @@ passwords stay secure. (Not available when `multiline` is `true`.)
</Story> </Story>
</Preview> </Preview>
### selection: ?{ start: number, end: ?number } ### selection
The start and end of the text input's selection. Set start and end to the same The start and end of the text input's selection. Set start and end to the same
value to position the cursor. 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 If `false`, disables spell-check style (i.e. red underlines). The default value
is inherited from `autoCorrect`. (Only available in supporting browsers). is inherited from `autoCorrect`. (Only available in supporting browsers).
### style: ?style ### style
```js ```js
{ {
@@ -107,6 +107,7 @@ class TextInput extends React.Component<TextInputProps> {
multiline = false, multiline = false,
numberOfLines = 1, numberOfLines = 1,
placeholder, placeholder,
placeholderTextColor,
returnKeyType, returnKeyType,
secureTextEntry = false, secureTextEntry = false,
spellCheck, spellCheck,
@@ -162,6 +163,7 @@ class TextInput extends React.Component<TextInputProps> {
onKeyPress: this._handleKeyPress, onKeyPress: this._handleKeyPress,
onSelect: normalizeEventHandler(this._handleSelectionChange), onSelect: normalizeEventHandler(this._handleSelectionChange),
placeholder, placeholder,
placeholderTextColor,
readOnly: !editable, readOnly: !editable,
ref: this._setNode, ref: this._setNode,
spellCheck: spellCheck != null ? spellCheck : autoCorrect, spellCheck: spellCheck != null ? spellCheck : autoCorrect,