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

Code Example 1

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

Code Example 2

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

Code Example 3

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

Learn ReactJs, React Native from akashmittal.com