[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() {
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>
);
},