大家好,我正在使用 const {width,height} = Dimensions.get('window');
根据屏幕宽度大小调整我的字体。
像这样使用....
fontSize:width/24
它在 iPhone 和 Android 设备(如 5.5 英寸设备)中看起来不错,但在我的 Galaxy s9 中它看起来很糟糕我想根据屏幕设置我的字体,它可以自行调整。 我该怎么做
最佳答案
关于css - 根据智能手机屏幕大小调整字体大小 React native,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52941732/