meliorence / react-native-render-html

iOS/Android pure javascript react-native component that renders your HTML into 100% native views
https://meliorence.github.io/react-native-render-html/
BSD 2-Clause "Simplified" License
3.48k stars 589 forks source link

fontFamily not working on heading element #527

Closed amirbayat closed 3 years ago

amirbayat commented 3 years ago

Decision Table

Good Faith Declaration

Description

custom external font family is not working on heading elements like h2 ( android device )

React Native Information

using expo cli

RNRH Version

6.1.0

Tested Platforms

Reproduction Platforms

Minimal, Reproducible Example

...

Additional Notes

No response

jsamr commented 3 years ago

@amirbayat Hi, and thank you for your submission! Unfortunately, you did not provide a reproduction, which is a required field, and thus this issue will be closed. There is a good chance that you didn't provide the systemFonts prop as indicated in the official documentation:

image

expertcoder6 commented 2 years ago

@amirbayat Hi, and thank you for your submission! Unfortunately, you did not provide a reproduction, which is a required field, and thus this issue will be closed. There is a good chance that you didn't provide the systemFonts prop as indicated in the official documentation:

image

WORKED!!!!

jsamr commented 2 years ago

For anyone stumbling on this, check out the FAQ entry: https://meliorence.github.io/react-native-render-html/docs/faq#custom-font-families-dont-work-whats-happening