1、设置字体大小不随系统改变而改变
export function initTextScaling() {
try {
const mayText: any = Text
mayText.defaultProps = mayText.defaultProps || {}
mayText.defaultProps.allowFontScaling = false
} catch (_error) {}
}
1、设置字体大小不随系统改变而改变
export function initTextScaling() {
try {
const mayText: any = Text
mayText.defaultProps = mayText.defaultProps || {}
mayText.defaultProps.allowFontScaling = false
} catch (_error) {}
}