React Native experts: do you set the same font size on both iOS and Android? if not, how do you do it?
David Furlong avatar
same same welcome back bill
2
14
Jeff Stout avatar
Usually just roll with the same font size unless there is an issue. Sometimes things can get wonky if device pixel density differs or maybe you want to render text with skia or something. In that case you can use PixelRatio and/or Platform.OS info to conditionally specify your sizes ✨
1
1
Korede avatar
Closest I’ve come is using PixelRatio.getFontScale()
1
1
Tempe Techie avatar
I did some react native back in 2020 or 2021, but honestly cannot remember that specific thing. I bet any of the AIs would be able to give you a better answer. If not, you can still check SO or Reddit. Best of luck!
1
Pezlow.eth avatar
Welcome back!
1
Show more replies