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

Code Example 1

.parent-element {
   display: grid;
   place-items: center;
}

Code Example 2

.grid {
  display: grid;
  align-items: center; /* left and right */
  justify-content: center; /* up and down */
}

Learn ReactJs, React Native from akashmittal.com