Skip to content

feat(ios): add HTML renderer#110

Merged
patrickkabwe merged 7 commits intomainfrom
feat/ios-html
Nov 23, 2025
Merged

feat(ios): add HTML renderer#110
patrickkabwe merged 7 commits intomainfrom
feat/ios-html

Conversation

@patrickkabwe
Copy link
Copy Markdown
Owner

@patrickkabwe patrickkabwe commented Nov 23, 2025

closes #93 #67

Summary

  • add HTML/plaintext renderer with CSS parsing and NitroText renderer prop
  • update example app with PlainText/HTML/Performance tabs
  • expand iOS/C++ fragment handling and refresh bindings; lockfile updates

Usage

import { NitroText } from 'react-native-nitro-text'

const html = `
 <style>
  .link { color: blue }
</style>
  <div>
    <h2>Renderer demo</h2>
    <p>This text comes from <strong>HTML</strong> with <em>semantic</em> tags.</p>
    <p><span style="color: #ff6347; font-weight: bold;">Inline CSS works too.</span></p>
     <a href='x' class='link'>hello</a>
  </div>
`

export function HtmlExample() {
  return <NitroText renderer="html">{html}</NitroText>
}

Testing

  • not run (run bun test and try example app)

@patrickkabwe patrickkabwe changed the title Add HTML renderer and demo screens feat(ios): add HTML renderer Nov 23, 2025
@patrickkabwe patrickkabwe linked an issue Nov 23, 2025 that may be closed by this pull request
2 tasks
@patrickkabwe patrickkabwe merged commit a291c15 into main Nov 23, 2025
4 of 6 checks passed
@patrickkabwe patrickkabwe deleted the feat/ios-html branch November 23, 2025 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: HTML: Does not support CSS? [Feature]: Custom renderers for HTML

1 participant