-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Font in not working in iOs #261
Comments
@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 , |
This custom style works both on iOS and Android
|
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 }
;The text was updated successfully, but these errors were encountered: