Skip to content

Commit

Permalink
fix: dynamic height on android new-arch
Browse files Browse the repository at this point in the history
  • Loading branch information
17Amir17 committed Jun 30, 2024
1 parent af6795b commit 31cbb11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/RichText/RichText.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,12 @@ export const RichText = ({ editor, ...props }: RichTextProps) => {
style={[
RichTextStyles.fullScreen,
{ display: loaded ? 'flex' : 'none' },

Check warning on line 113 in src/RichText/RichText.tsx

View workflow job for this annotation

GitHub Actions / lint

Inline style: { 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(
Expand Down

0 comments on commit 31cbb11

Please sign in to comment.