We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react native 原生的text标签和textInput标签的字体大小是会随着系统字号的改变而改变的。 控制这种特性的属性是allowFontScaling,默认值为true。解决办法
allowFontScaling: false
// 字体大小不会随着系统字体大小而变化 TextInput.defaultProps = Object.assign({}, TextInput.defaultProps, { allowFontScaling: false }) Text.defaultProps = Object.assign({}, Text.defaultProps, { allowFontScaling: false })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
react native 原生的text标签和textInput标签的字体大小是会随着系统字号的改变而改变的。
控制这种特性的属性是allowFontScaling,默认值为true。解决办法
allowFontScaling: false
,这样不太符合实际allowFontScaling: false
属性The text was updated successfully, but these errors were encountered: