Check out example codes for "align div to center of screen". It will help you in understanding the concepts better.

Code Example 1

div.the-center-div {
	margin: 0 auto;
}

Code Example 2

div.a {
  text-align: center;
}


    div.b {
  text-align: left;
}


    div.c {
  text-align: right;
}

div.c {
  text-align: 
    justify;
}

Code Example 3

.class {
	text-align: center;
}

Learn ReactJs, React Native from akashmittal.com