mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-02 09:08:58 +08:00
[ReactNative] Sync [react_native] Implement TextInput editable
This commit is contained in:
@@ -55,6 +55,7 @@ var AndroidTextInputAttributes = {
|
||||
text: true,
|
||||
testID: true,
|
||||
underlineColorAndroid: true,
|
||||
editable : true,
|
||||
};
|
||||
|
||||
var viewConfigAndroid = {
|
||||
@@ -143,7 +144,6 @@ var TextInput = React.createClass({
|
||||
]),
|
||||
/**
|
||||
* If false, text is not editable. The default value is true.
|
||||
* @platform ios
|
||||
*/
|
||||
editable: PropTypes.bool,
|
||||
/**
|
||||
@@ -497,6 +497,7 @@ var TextInput = React.createClass({
|
||||
text={this._getText()}
|
||||
underlineColorAndroid={this.props.underlineColorAndroid}
|
||||
children={children}
|
||||
editable={this.props.editable}
|
||||
/>;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user