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

Code Example 1

<p><center>YourText</center></p>

Code Example 2

<p style="text-align:center;">Centered paragraph.</p>

Code Example 3

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

Code Example 4

<style>
  element
  {
    text-align: center;
  }
</style>
-------------------------------------------------------------------------------
style.css
element
{
	text-align: center;
}

Learn ReactJs, React Native from akashmittal.com