Skip to content

System Fonts not working after upgrading react native from 0.73 to 0.78.2 #689

Open
@daniyalrathore14

Description

@daniyalrathore14

Decision Table

  • My issue does not look like “The HTML attribute 'xxx' is ignored” (unless we claim support for it)
  • My issue does not look like “The HTML element <yyy> is not rendered”

Good Faith Declaration

Description

fter upgrading from React Native 0.73.x to 0.78.2, the systemFonts array passed to is no longer working.

Previously, we were able to use custom fonts by adding them to the systemFonts array like this:

`const systemFonts = ['Nunito-Regular', 'System'];

<RenderHtml
source={{ html }}
systemFonts={systemFonts}
contentWidth={width}
/>`

This worked correctly on RN 0.73.x, but after updating to 0.78.2 (with [email protected]), the custom fonts are ignored and fall back to the default system font.

Expected Behavior
Custom fonts added to systemFonts should apply correctly via system props as in earlier versions.

Actual Behavior
Custom fonts are silently ignored even if properly linked and verified working via normal components in the app.

React Native Information

`"react-native": "0.78.2",

RNRH Version

"react-native-render-html": "^6.3.4"`

Tested Platforms

  • Android
  • iOS
  • Web
  • MacOS
  • Windows

Reproduction Platforms

  • Android
  • iOS
  • Web
  • MacOS
  • Windows

Minimal, Reproducible Example

none

Additional Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugCrush'em all.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions