Check out example codes for "html center tag". It will help you in understanding the concepts better.

Code Example 1

To text align all yuo have to do this:
<style>
  .yournameforclass {
    background: #fff; //which does not have to be there
    text-align: center;
    width: 100%;  //all of this can be varied. Text align can be used in these forms: left, which is to the left, right, to the right of the screen
    height: 300px;
  }

Code Example 2

<center>
	<p>This is centered</p>
</center>

Code Example 3

<!-- use the center tag -->
<center>
  <!-- your code -->
</center>

Code Example 4

.headerTwoDiv{
			margin:1% auto;
			margin-right: auto; margin-left: auto; width: 21%; 
			padding-top: 11px;
		}

Learn ReactJs, React Native from akashmittal.com