Skip to content

Inline style cannot be rendered #691

@felixliu226

Description

@felixliu226

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

i tried to follow the sample about inline style (https://meliorence.github.io/react-native-render-html/docs/guides/styling#inline-styles), but the style cannot be rendered properly, only got the normal text without any style.

React Native Information

expo-env-info 1.3.3 environment info:
    System:
      OS: macOS 15.5
      Shell: 5.9 - /bin/zsh
    Binaries:
      Node: 24.1.0 - /opt/homebrew/bin/node
      Yarn: 1.22.22 - /opt/homebrew/bin/yarn
      npm: 11.4.1 - /opt/homebrew/bin/npm
    Managers:
      CocoaPods: 1.16.2 - /opt/homebrew/bin/pod
    SDKs:
      iOS SDK:
        Platforms: DriverKit 24.5, iOS 18.5, macOS 15.5, tvOS 18.5, visionOS 2.5, watchOS 11.5
    IDEs:
      Android Studio: 2024.3 AI-243.26053.27.2432.13536105
      Xcode: 16.4/16F6 - /usr/bin/xcodebuild
    npmPackages:
      expo: ~53.0.11 => 53.0.11
      expo-router: ~5.1.0 => 5.1.0
      react: 19.0.0 => 19.0.0
      react-dom: 19.0.0 => 19.0.0
      react-native: 0.79.3 => 0.79.3
      react-native-web: ~0.20.0 => 0.20.0
    npmGlobalPackages:
      eas-cli: 16.8.0
      expo-cli: 6.3.12
    Expo Workflow: bare

RNRH Version

6.3.4

Tested Platforms

  • Android
  • iOS
  • Web
  • MacOS
  • Windows

Reproduction Platforms

  • Android
  • iOS
  • Web
  • MacOS
  • Windows

Minimal, Reproducible Example

create an expo project, and install RNRH. follows the sample here: https://meliorence.github.io/react-native-render-html/docs/guides/styling#inline-styles, and only normal text are rendered. the inline style are ignored.

Additional Notes

also tried with new architecture disabled, but still not work

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