[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:
Andrei Coman 2015-04-08 06:54:32 -07:00
parent bf4868edda
commit 805d52198c
1 changed files with 10 additions and 4 deletions

View File

@ -492,7 +492,7 @@ var TextInput = React.createClass({
_renderAndroid: function() { _renderAndroid: function() {
var autoCapitalize = autoCapitalizeConsts[this.props.autoCapitalize]; var autoCapitalize = autoCapitalizeConsts[this.props.autoCapitalize];
return ( var textContainer =
<AndroidTextInput <AndroidTextInput
ref="input" ref="input"
style={[this.props.style]} style={[this.props.style]}
@ -505,9 +505,15 @@ var TextInput = React.createClass({
onChange={this._onChange} onChange={this._onChange}
password={this.props.password} password={this.props.password}
placeholder={this.props.placeholder} placeholder={this.props.placeholder}
value={this.props.value} value={this.state.bufferedValue}
testID={this.props.testID} />;
/>
return (
<TouchableWithoutFeedback
onPress={this._onPress}
testID={this.props.testID}>
{textContainer}
</TouchableWithoutFeedback>
); );
}, },