Replies: 1 comment 1 reply
-
Either A or B should work. What react-pdf version are you using? Can you provide a valid snippet I can quickly run to reproduce this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to render a .pdf that includes a unique QR code image, the url of which is being passed down via props.
Is there a way to render an
<Image />
where the uri in the src object is dynamic?My first two approaches produce the following error
Warning: Image skipped because src prop is [object Object]
I then attempted to create a local variable called imageJSX with the value set to the necessary jsx string (basically Approach A) that I want to render. All of these approaches produced the following error:
NOTE: Approaches D&E attempt to just plop the stringified JSX in line with other rendering elements.
Beta Was this translation helpful? Give feedback.
All reactions