Open sajjad-yousaf opened 1 year ago
@iou90 kindly respond where am i doing any mistake or its library bug?
@iou90 Any update on this issue? I am facing the same issue.
@iou90 Any updates or suggestions?
@iou90 Any update on this issue?
@pushp-apexon have you found any solution?
@metalogixgaming No not found any solution!!
@pushp-apexon i've fixed it use source={{ html: this.props.item.description , baseUrl:””}} and check it
This custom style works both on iOS and Android
const customStyle = `@font-face {
font-family: 'Poppins';
font-style: normal;
font-weight: 400;
src: local('Poppins Regular'), local('Poppins-Regular'), url(https://fonts.gstatic.com/s/poppins/v12/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
} * {font-size: 13px; color: black; font-weight: 400!important; font-family: Poppins,sans-serif}
.ql-image { width: 100% !important; }`;
I'm trying to Apply a custom font for Android iOS and it's working perfectly in Android but not in iOS. I have font files in the Xcode project inside the Resources folder and also exist in the Copy Bundle Resources. Please correct me where I'm making a mistake or is it a library bug?
const fontUrl = Platform.select({ ios: 'Raleway-Regular.ttf', android: 'file:///android_asset/fonts/Raleway-Regular.ttf', });
export const fontCss =
@font-face { font-family: 'Raleway-Regular'; src: url('${fontUrl}') format('truetype'); } body { font-family: 'Raleway-Regular', sans-serif; font-size: 14px; font-weight: 100 }
;