Check out example codes for "html image center". It will help you in understanding the concepts better.

Code Example 1

.center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

Code Example 2

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

Code Example 3

.centerImg {
  display: block;
  margin: 0 auto;
}

Code Example 4

<div style="text-align: center;">
  <img scr='img/example.jpg'>
</div>

Learn ReactJs, React Native from akashmittal.com