Skip to main content

Html-Renderer

React Native HTML renderer with real CSS support and zero native modules

npm install @nikpnevmatikos/html-renderer

Zero native modules

Pure TypeScript. Runs on iOS, Android and web via react-native-web, and in Expo Go without a dev build.

Real CSS

A stylesheet prop that takes actual CSS: type, class, id, descendant and child selectors, resolved with spec specificity.

New Architecture ready

No native code means nothing to migrate. Works on Fabric and on the old renderer alike.

Full cascade

Inheritance, tag defaults, stylesheet, per-tag, per-class and per-id overrides, then inline styles. In the order CSS defines.

Extensible

Custom renderers, custom element models, DOM transform hooks and per-renderer config. Plugins use the same API.

CMS-proof input

Entity-encoded HTML from backends, even double-encoded, is detected and rendered as HTML with no pre-decoding.

Try it live

The example app from the repository, running in Expo Snack. Edit the HTML or the stylesheet on the left and watch the preview update. Snack needs Expo SDK 56 or newer for the video section, because older Snack runtimes do not ship expo-video.