awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
meliorence avatar

meliorence/react-native-render-html

0
View on GitHub↗
3,651 星标·624 分支·TypeScript·BSD-2-Clause·2 次浏览meliorence.github.io/react-native-render-html↗

React Native Render Html

This project is an HTML-to-native renderer and cross-platform UI component that transforms web-standard markup into native mobile components. It functions as a CSS-to-native style engine and a customizable HTML parser, allowing web content to be displayed in mobile applications without the use of a full web view.

The library is distinguished by its ability to intercept and modify the HTML DOM tree before rendering, enabling the injection of custom components, the filtering of specific nodes, and the overriding of default element translation models. It also implements a sophisticated style resolution system that handles CSS inheritance, specificity, and the mapping of standard CSS properties to compatible native styles.

The system covers a broad range of content rendering capabilities, including native link rendering with click interception and comprehensive media management to prevent layout shifts. It provides specialized processing for HTML lists, preformatted text, and CSS-standard whitespace collapsing, while offering tools for system font resolution and render tree inspection.

Features

  • CSS-to-Native Style Translators - Processes CSS properties into compatible native styles and validates font declarations against system fonts.
  • HTML to Native Converters - Transforms HTML markup into a native component tree via an intermediate data structure.
  • Cross-Platform Rendering - Renders web-standard HTML content into native mobile user interfaces without utilizing a web view.
  • Native Styling Integration - Provides a compatibility layer that translates standard CSS properties into native mobile styling primitives.
  • Intermediate Render Trees - Transforms HTML DOM nodes into an intermediate data structure to manage CSS inheritance and whitespace.
  • CSS-Driven Styling Engines - Translates CSS properties and inheritance rules into compatible native styles for mobile view hierarchies.
  • CSS Whitespace Collapsers - Removes insignificant white-spaces from HTML content following CSS standards to ensure consistent text layout.
  • Custom Element Renderers - Defines custom renderers and behaviors for specific HTML tags to control their native appearance.
  • Custom Component Injection - Allows replacing default HTML tag renders with user-defined native components for specialized behavior.
  • Element Translation Models - Defines how specific HTML tags are translated into native views by modifying custom element models.
  • Customizable HTML Parsers - Provides a customizable parser that intercepts the DOM tree to inject components or filter nodes before rendering.
  • HTML-to-Native Renderers - Transforms HTML markup into native mobile components by parsing the DOM and applying CSS styles.
  • Image Placeholders - Reserves space using placeholder boxes based on image attributes to prevent content jumping during load.
  • Native HTML Image Renderers - Displays images within HTML content by scaling them to fit container width and applying object-fit properties.
  • Native UI Renderers - Transforms HTML markup into a native component tree by assembling a style-compatible intermediate tree.
  • HTML Link Converters - Converts anchor tags into clickable native elements and resolves relative addresses using a specified base location.
  • Aspect Ratio Preserving Resizing - Resizes images and embedded content to fit screen width while preserving the original aspect ratio.
  • Style Inheritance Systems - Implements a style engine that propagates visual properties from parent HTML elements down to their native descendants.
  • Style Specificity Resolution - Applies styles based on a strict precedence hierarchy where inline styles override IDs, classes, and tags.
  • HTML-to-Native Text Renderers - Transforms HTML text elements into native views while managing margin collapsing and whitespace according to CSS rules.
  • Component-Based Renderers - Maps standard HTML tags and attributes to native functional UI components.
  • Style Cascading Engines - Implements a style cascading engine to resolve final element styles based on CSS specificity and inheritance rules.
  • Browser Resource Interceptions - Intercepts anchor clicks to trigger custom logic and prevent default browser page reloads.
  • DOM Content Modification - Alters the parsed HTML structure via callbacks to remove elements or update text before rendering.
  • HTML Content Filters - Blocks specific tags, CSS rules, or node patterns to sanitize and filter content.
  • View Hierarchy Traversers - Recursively traverses the parsed HTML structure to assemble a corresponding hierarchy of native views.
  • Structural Behavior Modifiers - Modifies the structural behavior of tags, such as switching block-level elements to inline.
  • Tag-Based Style Mappings - Maps styles to HTML elements based on tag name, class, or ID to override default rendering.
  • Image Dimension Constraints - Sets maximum widths and initial load dimensions for images to prevent viewport overflow and layout instability.
  • Cumulative Layout Shift Prevention - Prevents layout shifts by calculating image dimensions and reserving space before asynchronous assets load.
  • HTML Content Processing - Intersects the parsing process to alter node data or children before native conversion.
  • Content Prerendering - Parses and inspects the DOM tree before rendering to pre-cache media and fetch data for improved page loads.
  • Error Placeholders - Displays placeholder boxes containing alt text when an image source is unreachable.
  • Native HTML List Renderers - Transforms ordered and unordered HTML lists into native views using configurable markers and custom counter styles.
  • Virtual Node Lifecycle Interception - Intercepts the virtual node tree lifecycle to modify DOM elements or inject components before rendering.
  • Image Rendering Overrides - Provides custom implementations for image components to add interactivity or alternative loading states.
  • Semantic Content Markers - Assigns semantic metadata to HTML elements based on tags or attributes to inform styling and behavior.
  • CSS Styling - Provides support for applying standard CSS classes and styles to HTML elements using native style objects.
  • Inline Style Processing - Converts HTML style attributes into native styles via a compatibility layer that filters unsupported properties.
  • DOM Node Filtering - Selectively excludes specific HTML tags or nodes from the final render based on custom logic.
  • Whitespace Collapsing Engines - Processes text nodes to ensure consistent native text layout by collapsing whitespace according to CSS standards.
  • Preformatted Text Rendering - Preserves all whitespace and line breaks within preformatted tags to maintain source visual layout.
  • Advanced CSS Styling - Implements advanced formatting capabilities like whitespace collapsing and list-style types that exceed standard native style engines.

Star 历史

meliorence/react-native-render-html 的 Star 历史图表meliorence/react-native-render-html 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

React Native Render Html 的开源替代方案

相似的开源项目,按与 React Native Render Html 的功能重合度排序。
  • nativewind/nativewindnativewind 的头像

    nativewind/nativewind

    7,960在 GitHub 上查看↗

    NativeWind is a utility-first CSS framework that integrates Tailwind CSS design patterns into React Native applications. It functions as a cross-platform styling system and style mapper that translates CSS-based utility classes into native style objects compatible with mobile platforms. The framework provides a responsive UI engine that implements breakpoints, dark mode management, and platform-specific modifiers. It allows for the definition of custom themes including global colors, fonts, and spacing values to maintain a consistent visual identity across different devices. The system cover

    TypeScriptcssnativewindreact
    在 GitHub 上查看↗7,960
  • tombenner/nuitombenner 的头像

    tombenner/nui

    3,737在 GitHub 上查看↗

    Nui is a declarative UI styling tool and stylesheet library for iOS applications. It separates visual design from programmatic logic by using a centralized stylesheet to define interface colors, fonts, and borders instead of relying on inline code. The engine features hot-reloading capabilities that monitor stylesheet files and update the visual interface instantly without restarting the application. It also includes a responsive layout framework and a state-based visual manager to adjust styles based on device orientation, screen dimensions, and interaction states. The system covers a broad

    Objective-Ciosobjective-cstylesheet
    在 GitHub 上查看↗3,737
  • dioxuslabs/blitzDioxusLabs 的头像

    DioxusLabs/blitz

    3,327在 GitHub 上查看↗

    Blitz is an HTML and CSS rendering engine and native UI framework designed to translate web-standard markup into visual interfaces for native applications. It functions as a layout engine that converts raw HTML strings into a structured object model for programmatic rendering. The project implements a web-standard layout engine using Flexbox and Grid models to compute element positions and sizes. It includes a dedicated SVG graphics renderer for displaying scalable vector graphics embedded within HTML-based layouts. The framework covers native windowing integration and system accessibility t

    Rust
    在 GitHub 上查看↗3,327
  • cocoanetics/dtcoretextCocoanetics 的头像

    Cocoanetics/DTCoreText

    6,393在 GitHub 上查看↗

    DTCoreText is an iOS rich text engine and attributed string converter designed to render formatted HTML content natively. It transforms HTML strings into native text styles and layouts, allowing applications to display rich text without the overhead of a web view. The project functions as a CoreText HTML renderer that integrates HTML strings with the CoreText framework for high-performance rendering. It provides a lightweight alternative for displaying rich text within native application labels and text views. The engine includes an HTML-to-attributed string parser and a native text layout e

    Swift
    在 GitHub 上查看↗6,393
查看 React Native Render Html 的所有 30 个替代方案→

常见问题解答

meliorence/react-native-render-html 是做什么的?

This project is an HTML-to-native renderer and cross-platform UI component that transforms web-standard markup into native mobile components. It functions as a CSS-to-native style engine and a customizable HTML parser, allowing web content to be displayed in mobile applications without the use of a full web view.

meliorence/react-native-render-html 的主要功能有哪些?

meliorence/react-native-render-html 的主要功能包括:CSS-to-Native Style Translators, HTML to Native Converters, Cross-Platform Rendering, Native Styling Integration, Intermediate Render Trees, CSS-Driven Styling Engines, CSS Whitespace Collapsers, Custom Element Renderers。

meliorence/react-native-render-html 有哪些开源替代品?

meliorence/react-native-render-html 的开源替代品包括: dioxuslabs/blitz — Blitz is an HTML and CSS rendering engine and native UI framework designed to translate web-standard markup into… tombenner/nui — Nui is a declarative UI styling tool and stylesheet library for iOS applications. It separates visual design from… nativewind/nativewind — NativeWind is a utility-first CSS framework that integrates Tailwind CSS design patterns into React Native… cocoanetics/dtcoretext — DTCoreText is an iOS rich text engine and attributed string converter designed to render formatted HTML content… tijsverkoyen/csstoinlinestyles — CssToInlineStyles is a CSS inliner for HTML emails that converts stylesheets into inline style attributes on HTML… geekyants/nativebase — NativeBase is a comprehensive toolkit of accessible components and responsive design frameworks used to build…