Check out example codes for "vertical align text inside div". It will help you in understanding the concepts better.

Code Example 1

text {
  	line-height: 100px; /*size of parent div*/ 
}

Learn ReactJs, React Native from akashmittal.com