Skip to content

Commit

Permalink
[ReactNative] Change text input underline color
Browse files Browse the repository at this point in the history
  • Loading branch information
andreicoman11 committed Jun 17, 2015
1 parent e78b8c4 commit 3fa8ec0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Libraries/Components/TextInput/TextInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ var AndroidTextInputAttributes = {
placeholder: true,
text: true,
testID: true,
underlineColorAndroid: true,
};

var viewConfigAndroid = {
Expand Down Expand Up @@ -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,
},

/**
Expand Down Expand Up @@ -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}
/>;

Expand Down

0 comments on commit 3fa8ec0

Please sign in to comment.