[ReactNative] Change text input underline color

This commit is contained in:
Andrei Coman 2015-06-17 15:14:42 -07:00
parent e78b8c40fe
commit 3fa8ec0271
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,7 @@ var AndroidTextInputAttributes = {
placeholder: true,
text: true,
testID: true,
underlineColorAndroid: true,
};
var viewConfigAndroid = {
@ -260,6 +261,10 @@ var TextInput = React.createClass({
* Used to locate this view in end-to-end tests.
*/
testID: PropTypes.string,
/**
* The color of the textInput underline. Is only supported on Android.
*/
underlineColorAndroid: PropTypes.string,
},
/**
@ -489,6 +494,7 @@ var TextInput = React.createClass({
password={this.props.password || this.props.secureTextEntry}
placeholder={this.props.placeholder}
text={this.state.bufferedValue}
underlineColorAndroid={this.props.underlineColorAndroid}
children={children}
/>;