Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 393 Bytes

README.md

File metadata and controls

10 lines (7 loc) · 393 Bytes

react-native-fixed-fontsize

react-native中固定字体大小,不会跟随系统字体大小变化

Android中TextInput allowFontScaling={false}对 占位符placeholder的文字大小无效,还是会跟随系统字体大小变化。


采取办法为:

通过修改TextInput的render方法将style中的fontSize缩小为系统字体大小缩放的倍数即可