title: React-Native: Avoid Text Wrapping
body: <p>I have the title of a song and its duration showing in one line. The song title needs to show an ellipsis but the duration should never wrap or show ellipsis. I've tried several combinations but fail to make this work right for long titles. The duration either goes off screen when the name shows ellipsis or the duration wraps. I can't hardcode a fixed width on the duration as it can change size.</p>
  
  <pre><code>&lt;View style={{flexDirection: 'row'}}&gt;
      &lt;Text numberOfLines={2} style={{fontSize: 16, textAlign: 'left'}}&gt;{title}&lt;/Text&gt;
      &lt;Text style={{flex: 1, fontSize: 13, textAlign: 'right', marginTop: 2}}&gt;{duration}&lt;/Text&gt;
  &lt;/View&gt;
  </code></pre>