Check out example codes for "text size to fit button". It will help you in understanding the concepts better.

Code Example 1

/*I have absolutely no idea how to do this properly*/
/*The closest I can do is - */
/*Make the text just right, trial and error with:*/
text-align: center;
font-size: 20px;

Learn ReactJs, React Native from