Skip to content

feat(android): add html support#52

Merged
patrickkabwe merged 5 commits intomainfrom
feat/android-html-support
Oct 5, 2025
Merged

feat(android): add html support#52
patrickkabwe merged 5 commits intomainfrom
feat/android-html-support

Conversation

@patrickkabwe
Copy link
Owner

Pull Request

Description

This PR adds comprehensive Android support for the NitroText library. The implementation includes a complete Android Nitro module with Fabric integration, HTML rendering capabilities, and advanced text styling features.

Key Features Added:

  • Android NitroText Implementation: Full Android support using Kotlin with HybridView architecture and Fabric state updater
  • HTML Rendering: Complete HTML-to-SpannableString renderer with support for semantic markup (<h1>-<h6>, <p>, <div>, <a>, etc.)
  • Rich Text Styling: Style rule system with CSS-like selectors for HTML elements

Technical Implementation:

  • JSoup-based HTML parser with custom rendering pipeline
  • Native SpannableString manipulation for high-performance text rendering

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Documentation update
  • Other

Testing

  • Tested on iOS (existing functionality maintained)
  • Tested on Android (new implementation)
  • Added/updated tests

Example App Updates:

  • Added HTML rendering demo with styled elements

Checklist

  • Code follows project style guidelines
  • Self-review completed
  • Documentation updated (if needed)
  • No breaking changes (or clearly documented)

Additional Notes

- add Android Nitro module with Kotlin view, Fabric state updater, and JNI bridge

- share component descriptor/state logic so Fabric can hydrate props on Android

- update TypeScript entrypoint, codegen pipeline, and example app for Android support
@patrickkabwe patrickkabwe changed the title Feat/android html support feat: add html support on android Oct 2, 2025
@patrickkabwe patrickkabwe changed the title feat: add html support on android feat(android): add html support Oct 5, 2025
@patrickkabwe patrickkabwe merged commit ca1ffb0 into main Oct 5, 2025
4 checks passed
@patrickkabwe patrickkabwe deleted the feat/android-html-support branch October 5, 2025 19:32
github-actions bot pushed a commit that referenced this pull request Oct 8, 2025
## [1.1.0-next.1](v1.0.3...v1.1.0-next.1) (2025-10-08)

### ✨ Features

* add android support ([#49](#49)) ([369ad10](369ad10))
* **android:** add html support ([#52](#52)) ([ca1ffb0](ca1ffb0))
* **ios:** add html support ([#56](#56)) ([02f0a9c](02f0a9c))

### 📚 Documentation

* add CONTRIBUTING.md and issue templates for better community engagement ([#48](#48)) ([a213abe](a213abe))
* update README.md for improved clarity and formatting ([#59](#59)) ([dbe93aa](dbe93aa))

### 🛠️ Other changes

* bum up nitro 0.29.8 ([#57](#57)) ([e550832](e550832))
@github-actions
Copy link

github-actions bot commented Oct 8, 2025

🎉 This PR is included in version 1.1.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant