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

Code Example 1

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

Code Example 2

text-align: center;

Learn ReactJs, React Native from akashmittal.com