Check out example codes for "How do i allign a pic centre in html". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

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

Code Example 3

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

Learn ReactJs, React Native from akashmittal.com