Correct propTypes for placeholder
Summary: Proptype mistake, placeholder is a "string" not a "node".1e8f3b1102/Libraries/Text/RCTBackedTextInputViewProtocol.h (L18)
4d54b48167/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java (L300)
Closes https://github.com/facebook/react-native/pull/16237 Differential Revision: D6017909 Pulled By: shergin fbshipit-source-id: 75046080a0f33196832f5d4ab58f8b1f4aabad1f
This commit is contained in:
parent
7a7bdeec3e
commit
dbe6044074
|
@ -430,7 +430,7 @@ const TextInput = createReactClass({
|
|||
/**
|
||||
* The string that will be rendered before text input has been entered.
|
||||
*/
|
||||
placeholder: PropTypes.node,
|
||||
placeholder: PropTypes.string,
|
||||
/**
|
||||
* The text color of the placeholder string.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue