// 处理 Text 在某种机型某种字体下宽度被截断的问题
if (Platform.OS !== 'web') {
const originRender = Text.render || Text.prototype.render;
const parent = Text.render ? Text : Text.prototype;
parent.render = function(...args) {
const origin = originRender.call(this, ...args);
return React.cloneElement(origin, {
style: [!isIos && { fontFamily: '' }, origin.props.style],
});
};
}
该内容对您有帮助吗?
是意见反馈点击获取服务和帮助
智能客服
400-881-8611
提交工单