How to get text size or view size before rendering in React Native
<p>I have found UIManager and onLayout, but all of them can get only the size after rendering.
Are there any 3rd party libraries or APIs to do this before rendering?</p>

<p>The Image component has something like: </p>

<pre><code>var image = new Image();
image.src="??"
image.onload(()=&gt;image.height)
</code></pre>

<p>But how about getting the dimensions of a Text or a View?</p>