react-pdf icon indicating copy to clipboard operation
react-pdf copied to clipboard

Text component nesting bug

Open antonin-arquey opened this issue 8 years ago • 4 comments

OS: Linux 4.13.0-45-generic

React-pdf version: 0.7.6

Description: When you nest some Text components (one is enough), the text after the nested Text is wrapping in a weird way over the text before the nested Text (see REPL). The documentation say so it should work.

Text supports nesting of other Text or Link components to create inline styling.

How to replicate issue including code snippet (if applies):

REPL

antonin-arquey avatar Jun 25 '18 10:06 antonin-arquey

I have this issue too, did you find any kind of workaround?

johanventer avatar Jul 15 '18 04:07 johanventer

I have created a PR which resolves the issue for me here: https://github.com/diegomura/react-pdf/pull/256

johanventer avatar Jul 15 '18 05:07 johanventer

I have similar problem with nested Text

PERL

Style in nested component in View > View don't work. When I remove flexDirection: 'row' from View, style to nested Test is apply correcly.

dariuszpaluch avatar Jul 17 '18 11:07 dariuszpaluch

Try now on the REPL. It's fixed. New 1.0.0-alpha.7 version. Soon releasing the official 1.0.0

diegomura avatar Jul 23 '18 08:07 diegomura