Check out example codes for "make image go to center of page". It will help you in understanding the concepts better.

Code Example 1

<img src="Sanjith.jpg" class="centre" height = "200" width = "100">

Code Example 2

<img src="paris.jpg" alt="Paris" class="center">

Code Example 3

//Making an image go to the center of the page
//A
<img src="wuteva.jpg" class="center">
//B
<parentElement style="text-align: center;">
//C
// put the image in a div with style="text-align: center;"

Learn ReactJs, React Native from akashmittal.com