Check out example codes for "react native styled-components responsive font". It will help you in understanding the concepts better.

Code Example 1

{
  'font-size': deviceWidth('10%'),
  'height': deviceHeight('100%'),
}

Learn ReactJs, React Native from akashmittal.com