In this article
Web is now stable
1.1.0 is the first stable release of the web platform for react-native-enriched-html. Parity with iOS and Android is now solid across all core features, making this the right baseline for teams building on web. From this version onward, web is a first-class supported platform.
New features
Web
- Tapping links and mentions now triggers
onLinkPressandonMentionPresscallbacks on web (#678). EnrichedTextis now selectable on web and supportsref,onFocus, andonBlur;useHtmlNormalizeris also exported for standalone use (#677).- Text shortcuts are now supported on web (#665).
- HTML sanitization is now available on web, letting you customize how incoming HTML content is sanitized before rendering via a
sanitizationConfig(#680). ellipsizeModeandnumberOfLinesare now supported inEnrichedTexton web (#687).
All platforms
- The normalizer now preserves text alignment styles (#702).
- The
autofocusprop defaults tofalse(#706).
Bug fixes
- Fixed whitespace parsing inside the normalizer (#704).
- Fixed incorrect initial height measurement for
EnrichedTexton Android (#703). - Heading font color is now correctly inherited on web (#710).
- The normalizer no longer strips
<br>nodes inside blockquotes (#720). - Fixed conflicting styles being applied simultaneously (#721).
- Fixed inline style merging with plain text on iOS (#722).
- Fixed placeholder images not displaying on web (#725).
- Fixed list rendering for Japanese text on iOS (#729).
- Canonical mention attributes are now preserved when using a custom
sanitizationConfigon web (#733). - Fixed list styling on web (#730).
Release card
