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

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com