Check out example codes for "set height of image". It will help you in understanding the concepts better.

Code Example 1

<img src="smiley.gif" alt="Smiley face" height="42" width="42"> <!-- Pixels are assumed behind 42's -->

Learn ReactJs, React Native from akashmittal.com