You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this HTML, I'm expected to see a new line after "in html" and before "hi". <p>My awesome text <strong>in html</strong><br>hi</p>
Actual behaviour
Actually, br tag parsed by the library but didn't create new line if it is contain in an another tag.
I checked your example and the same problem seem to appear.
Code sample, screenshots
What have you tried
In text-renderer.js in render's method, i just add the following code and it worked: if (tagName == 'br') { return (<Text>{"\n"}</Text>) }
But i don't think it's the right way to do that. Any idea ?
The text was updated successfully, but these errors were encountered:
Hi,
first at all, thank you for this library !
Expected behaviour
Using this HTML, I'm expected to see a new line after "in html" and before "hi".
<p>My awesome text <strong>in html</strong><br>hi</p>
Actual behaviour
Actually, br tag parsed by the library but didn't create new line if it is contain in an another tag.
I checked your example and the same problem seem to appear.
Code sample, screenshots
What have you tried
In text-renderer.js in render's method, i just add the following code and it worked:
if (tagName == 'br') { return (<Text>{"\n"}</Text>) }
But i don't think it's the right way to do that. Any idea ?
The text was updated successfully, but these errors were encountered: