ReactNative: How to measure height of Text Input after programatic change
<p>React Native has documentation for AutoExpandingTextInput: <a href="https://facebook.github.io/react-native/docs/textinput.html" rel="nofollow">https://facebook.github.io/react-native/docs/textinput.html</a></p>

<p>The Problem: When the content of the AutoExpandingTextInput is changed programmatically the height never changes. </p>

<p>For example:</p>

<pre><code>componentWillReceiveProps(props) {
  this.setState({
    richText: this._addHighlights(props.richText)
  });
}

//

&lt;AutoExpandingTextInput ref={component =&gt; this._text = component}&gt;
  {this.state.richText}
&lt;/AutoExpandingTextInput&gt;
</code></pre>

<p>Say, for example. the user hits a button that adds a link to the text that wraps to the next line; in this case, the AutoExpandingTextInput never expands, because the height only is measured &amp; changed on the onChange event of the TextInput.</p>

<p>I need some work around to get the content height when no onChange is triggered --- or less ideally, a way to programmatically trigger an onChange to the TextInput. </p>

<p>Are there any solutions????</p>