Home > OS >  Font size responsiveness in React Native
Font size responsiveness in React Native

Time:01-05

In React native, is the font size responsive on its own? for example, if I give fontSize:10 to a Text component, will it automatically increase/decrease based on the size of the phone? If not, how to make it responsive?

CodePudding user response:

Check this article https://dev.to/gorgutzz/intro-to-react-s-size-matters-135k.

Look into this library. It may help your need. https://github.com/nirsky/react-native-size-matters

CodePudding user response:

enter link description hereThe font size is automatically adjusted according to the size of the screen. Try applying this method.

yarn add react-native-responsive-fontsize
npm install react-native-responsive-fontsize --save
  •  Tags:  
  • Related