From 31cbb113d6246b50a75182d8e70e4494de45be8a Mon Sep 17 00:00:00 2001 From: Amir Angel <36531255+17Amir17@users.noreply.github.com> Date: Sun, 30 Jun 2024 16:48:19 +0300 Subject: [PATCH] fix: dynamic height on android new-arch --- src/RichText/RichText.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/RichText/RichText.tsx b/src/RichText/RichText.tsx index 4d18818..7443e04 100644 --- a/src/RichText/RichText.tsx +++ b/src/RichText/RichText.tsx @@ -111,10 +111,12 @@ export const RichText = ({ editor, ...props }: RichTextProps) => { style={[ RichTextStyles.fullScreen, { display: loaded ? 'flex' : 'none' }, - { height: editor.dynamicHeight ? editorHeight : undefined }, editor.theme.webview, ]} - containerStyle={editor.theme.webviewContainer} + containerStyle={[ + editor.theme.webviewContainer, + { height: editor.dynamicHeight ? editorHeight : undefined }, + ]} source={source} injectedJavaScript={injectedJavaScript} injectedJavaScriptBeforeContentLoaded={getInjectedJSBeforeContentLoad(