React Native 为全局字体设置属性

时间:2025-01-18 22:16:27
/** * 只需引入该文件即可 * 为源类型扩充 * 自定义字体样式, _.wrap是lodash的一个函数,用来包裹传入的函数,然后返回一个新的函数 */ = _.wrap(, function (func, ...args) { let originText = (this, args); // let newTesxt = _.cloneDeep(originText); // = false; // = 'hhh'; // return cloneElement(originText, { // style: [ // , // // ] // }); return (originText, {allowFontScaling: false}); });