mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-29 04:35:36 +08:00
[ReactNative] Sync [react_native] Implement TextInput editable
This commit is contained in:
@@ -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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user