diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index 2fa1a103d..da1ae7a01 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -212,6 +212,7 @@ const TextInput = createReactClass({ * If true, will increase the height of the textbox if need be. If false, * the textbox will become scrollable once the height is reached. The * default value is false. + * @platform android */ autoGrow: PropTypes.bool, /** @@ -554,7 +555,7 @@ const TextInput = createReactClass({ mixins: [NativeMethodsMixin, TimerMixin], getInitialState: function() { - return {nativeHeight: this._originalNativeHeight}; + return {layoutHeight: this._layoutHeight}; }, /** @@ -574,7 +575,7 @@ const TextInput = createReactClass({ _focusSubscription: (undefined: ?Function), _lastNativeText: (undefined: ?string), _lastNativeSelection: (undefined: ?Selection), - _originalNativeHeight: (-1: number), + _layoutHeight: (-1: number), componentDidMount: function() { this._lastNativeText = this.props.value; @@ -690,7 +691,6 @@ const TextInput = createReactClass({ children = [children, props.inputView]; } props.style.unshift(styles.multilineInput); - props.style.push({height: this.state.nativeHeight}); textContainer = = 0) { + props.style = [props.style, {height: this.state.layoutHeight}]; + } props.autoCapitalize = UIManager.AndroidTextInput.Constants.AutoCapitalizationType[this.props.autoCapitalize]; var children = this.props.children; @@ -761,7 +764,7 @@ const TextInput = createReactClass({ return (