Check out example codes for "c# center text". It will help you in understanding the concepts better.

Code Example 1

Console.WriteLine(String.Format("{0," + Console.WindowWidth / 2 + "}", "TEXT"));

Learn ReactJs, React Native from akashmittal.com