From ee8661e2ed65ac3231c8c2fa379610addbdbc466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sr=C4=91an=20Brankovi=C4=87?= Date: Mon, 23 Feb 2026 10:14:49 +0100 Subject: [PATCH 1/2] Add enableCSSInlineProcessing prop to html --- html/components/SimpleHtml.js | 1 + 1 file changed, 1 insertion(+) diff --git a/html/components/SimpleHtml.js b/html/components/SimpleHtml.js index 9ed10090..da4acf78 100644 --- a/html/components/SimpleHtml.js +++ b/html/components/SimpleHtml.js @@ -152,6 +152,7 @@ const SimpleHtml = ({ tagsStyles: filteredTagStyles, systemFonts, baseStyle: style.baseFont, + enableCSSInlineProcessing: true, ignoredStyles, renderers: customRenderers, renderersProps, From 45b8ce42d4df2f7b02a79c96da73c473712990e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sr=C4=91an=20Brankovi=C4=87?= Date: Tue, 24 Feb 2026 09:51:03 +0100 Subject: [PATCH 2/2] Add more explicit props to react-native-render-html --- html/components/SimpleHtml.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/html/components/SimpleHtml.js b/html/components/SimpleHtml.js index da4acf78..bc07980f 100644 --- a/html/components/SimpleHtml.js +++ b/html/components/SimpleHtml.js @@ -152,13 +152,17 @@ const SimpleHtml = ({ tagsStyles: filteredTagStyles, systemFonts, baseStyle: style.baseFont, - enableCSSInlineProcessing: true, ignoredStyles, renderers: customRenderers, renderersProps, customHTMLElementModels, WebView, domVisitors, + // Explicitly passing react-native-render-html defaults that were + // previously set via defaultProps, which no longer works in React 19+. + enableCSSInlineProcessing: true, + enableUserAgentStyles: true, + emSize: 14, }), // eslint-disable-next-line react-hooks/exhaustive-deps [],