Skip to content

Commit

Permalink
Merge pull request #147 from 10play/dymanic-height-android-new-arch
Browse files Browse the repository at this point in the history
fix: dynamic height on android new-arch
  • Loading branch information
17Amir17 authored Jul 14, 2024
2 parents a2f87f4 + 454686a commit 11b0e7c
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 11b0e7c

Please sign in to comment.