Skip to content

JTangming/react-native-fixed-fontsize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

react-native-fixed-fontsize

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

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


采取办法:

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


使用方式:

import index.js -> 项目目录中的index.js 和 index.ios.js

About

react-native-fixed-fontsize

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%