[react_native] JS files from D1952037: [react_native] Make TextInput focus, blur, dismiss and show keyboard work var autoCapitalize = autoCapitalizeConsts[this.props.autoCapitalize]; style={[this.props.style]}
This commit is contained in:
parent
bf4868edda
commit
805d52198c
|
@ -492,7 +492,7 @@ var TextInput = React.createClass({
|
|||
|
||||
_renderAndroid: function() {
|
||||
var autoCapitalize = autoCapitalizeConsts[this.props.autoCapitalize];
|
||||
return (
|
||||
var textContainer =
|
||||
<AndroidTextInput
|
||||
ref="input"
|
||||
style={[this.props.style]}
|
||||
|
@ -505,9 +505,15 @@ var TextInput = React.createClass({
|
|||
onChange={this._onChange}
|
||||
password={this.props.password}
|
||||
placeholder={this.props.placeholder}
|
||||
value={this.props.value}
|
||||
testID={this.props.testID}
|
||||
/>
|
||||
value={this.state.bufferedValue}
|
||||
/>;
|
||||
|
||||
return (
|
||||
<TouchableWithoutFeedback
|
||||
onPress={this._onPress}
|
||||
testID={this.props.testID}>
|
||||
{textContainer}
|
||||
</TouchableWithoutFeedback>
|
||||
);
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue