Check out example codes for "sizetofit not working swift". It will help you in understanding the concepts better.

Code Example 1

textLabel.adjustsFontSizeToFitWidth = true

Learn ReactJs, React Native from akashmittal.com