// Solve the problem that the width of Text is truncated in a certain model and certain font
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],
});
};
}
Is this page helpful?
YesFeedbackClick for services and help
Consult
(001)844-672-5646
Submit Question