[ReactNative] Sync [react_native] Implement TextInput editable

This commit is contained in:
Andrei Coman
2015-08-06 11:02:19 -07:00
parent 48548fedbf
commit 327f84b967

View File

@@ -55,6 +55,7 @@ var AndroidTextInputAttributes = {
text: true, text: true,
testID: true, testID: true,
underlineColorAndroid: true, underlineColorAndroid: true,
editable : true,
}; };
var viewConfigAndroid = { var viewConfigAndroid = {
@@ -143,7 +144,6 @@ var TextInput = React.createClass({
]), ]),
/** /**
* If false, text is not editable. The default value is true. * If false, text is not editable. The default value is true.
* @platform ios
*/ */
editable: PropTypes.bool, editable: PropTypes.bool,
/** /**
@@ -497,6 +497,7 @@ var TextInput = React.createClass({
text={this._getText()} text={this._getText()}
underlineColorAndroid={this.props.underlineColorAndroid} underlineColorAndroid={this.props.underlineColorAndroid}
children={children} children={children}
editable={this.props.editable}
/>; />;
return ( return (