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

Code Example 1

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

Code Example 2

To text align all yuo have to do this:
  .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 3

text-align: center;

Code Example 4

<tag class="" align='center'></tag>

Learn ReactJs, React Native from