import { AppRegistry, Text, TextInput, LogBox } from 'react-native';
import App from './src/App';
import { name as appName } from './app.json';
//字体不随系统字体变化
TextInput.defaultProps = Object.assign({}, TextInput.defaultProps, { allowFontScaling: false });
Text.defaultProps = Object.assign({}, Text.defaultProps, { allowFontScaling: false });
AppRegistry.registerComponent(appName, () => App);
React Native 字体不随系统字体变化
最新推荐文章于 2024-06-11 20:57:11 发布