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

Code Example 1

.centerTable { margin: 0px auto; }

Learn ReactJs, React Native from akashmittal.com