Browse files

Fix TextInput 'defaultValue' propTypes to 'string'

Because `TextInput` only render the `defaultValue` of `string`, when using other types of values, it will render empty('') without any Warnings.
Closes #11478

Differential Revision: D4340132

Pulled By: lacker

fbshipit-source-id: aedb96d49277836000c0adc53007c97db6363253
  • Loading branch information...
feyy authored and facebook-github-bot committed Mar 16, 2017
1 parent 3504698 commit c53404a6889b8f8718d90cda161523c06ebcb43f
Showing with 1 addition and 1 deletion.
  1. +1 −1 Libraries/Components/TextInput/TextInput.js
@@ -452,7 +452,7 @@ const TextInput = React.createClass({
* Useful for simple use-cases where you do not want to deal with listening
* to events and updating the value prop to keep the controlled state in sync.
defaultValue: PropTypes.node,
defaultValue: PropTypes.string,
* When the clear button should appear on the right side of the text view.
* @platform ios

0 comments on commit c53404a

Please sign in to comment.