react-native-htmlview
react-native-htmlview copied to clipboard
Space between html tags is huge even tho I wrapped my content in "<div>"
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:
Any suggestions on how to solve this please?
Got this problem too. Any solution?... pls.
the same is here.
You need to add addLineBreaks={false}.
when use addLineBreaks={false} height still to huge... any solution?