title: React Native: Determine number of lines of Text component
body: <p>As the title says, I've been trying to find a way to determine the number of lines the text component AFTER it has been given text. Look at my example below.</p>
  
  <pre><code>&lt;Text&gt;
      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi semper ut ipsum in ultrices. Vivamus fringilla lacinia odio in accumsan. Proin sit amet pellentesque tortor. Nam mollis sit amet ligula id convallis. Etiam in semper diam. Cras id elit consectetur, interdum ante id, tincidunt nisi. Integer non elit placerat, dignissim nibh at, faucibus sem. Curabitur nec posuere turpis. Vivamus rhoncus nulla vitae mi imperdiet, elementum eleifend mi laoreet. Vestibulum molestie turpis non nibh elementum, sed ornare magna tristique. Aliquam erat volutpat. Phasellus volutpat mi vel tempor finibus.
  &lt;/Text&gt;
  </code></pre>
  
  <p>At runtime, how can I determine how many lines this Text component has rendered. This number will vary depending on device (eg. iPhone 5 will need to render more lines vs iPhone 6+ as it has a smaller screen size). I've checked the source code for the Text component but there doesn't seem to be anything I'm looking for.</p>
  
  <p>I am using React Native 0.24.</p>
  
  <p>Any ideas?</p>
  
  <p>Cheers.</p>