Check out example codes for "how to align items in css". It will help you in understanding the concepts better.

Code Example 1

div
 {

   display: flex;
  align-items: center;

 }

Code Example 2

div
{
  display:flex;
  align-items:center;
  justify-content:center;
  
}

Learn ReactJs, React Native from akashmittal.com