Check out example codes for "textview android text align center". It will help you in understanding the concepts better.

Code Example 1

<TextView  
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:gravity="center"
    android:text="@string/**yourtextstring**"
/>

Learn ReactJs, React Native from akashmittal.com