react-native-htmlview icon indicating copy to clipboard operation
react-native-htmlview copied to clipboard

Space between html tags is huge even tho I wrapped my content in "<div>"

Open nikita-zot-1408 opened this issue 4 years ago • 5 comments

I have very big distance between elements even tho I have my code like this.

<HTMLView
          value={`<div>${currentPostDetails?.text.replace(
            /<br\\?>|\r?\n\s*/g,
            '',
          )}</div>`}
          stylesheet={checkTheme ? webViewStyleLight : webViewStyleDark}
        />

My content is still displayed like this:

Screenshot 2021-05-04 at 12 21 23

Any suggestions on how to solve this please?

nikita-zot-1408 avatar May 04 '21 08:05 nikita-zot-1408

Got this problem too. Any solution?... pls.

akenarong999 avatar May 19 '21 12:05 akenarong999

the same is here.

yestay90 avatar May 20 '21 11:05 yestay90

You need to add addLineBreaks={false}.

daveyjones avatar Jun 04 '21 21:06 daveyjones

when use addLineBreaks={false} height still to huge... any solution?

MohdUmer avatar Aug 25 '22 08:08 MohdUmer