iOS TextInput height relative to font size react-native
<p>I'm having trouble with the <strong>TextInput</strong> module for React-Native</p>

<p><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>On Android it's nice and simple, you create the TextInput give it a  font-size and it sets the height of the TextInput control accordingly.</p>

<p>On the other hand, with iOS unless you provide an explicit height for the TextInput in the style it will be 0.</p>

<p>This would be okay normally, but because I use variable font sizes in my app. I need the TextInput height to match the font-size.</p>

<p>I did try setting the text-input height to the same value as the font-size. That didn't work correctly and I don't think the two are relative.</p>

<p>I have some multiline text inputs and I would like to calculate the height I want for them based on the height for a single line.</p>

<p>pseudo code</p>

<pre><code>lineHeight = getHeightForFontSize(15);
multiLineHeight = lineHeight * 4; // 4 lines
</code></pre>

<p>So in summary. How do I get the height for a TextInput view based on the font-size (known in advance).</p>