title: How to calculate the width of the text in a TextInput component in React Native?
body: <p>I was trying to make the TextInput to be auto scaling, that is, the height of the TextInput increases as the text is wrapped to next line.</p>
  
  <p>So I'm trying to calculate the width of the text, and compare it width the width of the TextInput. If it's greater than the width, the height of the TextInput will increase.</p>
  
  <p>So my question is how to calculate the width of the text?
  Are there any other ways to accomplish the auto scaling effect?</p>
  
  <p>Thanks!</p>