Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16750

How to handle a change in system level font size on iOS with React Native?

$
0
0

We have a situation where if a user decides to increase the "Larger Text" size in iOS Settings (see image below), it then messes up our view layouts in React Native, as the font size will now be larger.

For example here is a ListView row BEFORE changing the "Larger Text" setting in iOS system settings:

enter image description here

And here is the same row AFTER increasing the "Larger Text" setting:

enter image description here

What is best practice to handle such font scale increase in React Native ? This is obviously just one example, and there are other scenario's such as a View that only contains Text, but we do not want to increase the height of that View at runtime.

Appreciate anyone's advice on this, thanks!

enter image description here


Viewing all articles
Browse latest Browse all 16750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>