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

Code Example 1

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

Code Example 2

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

Learn ReactJs, React Native from akashmittal.com