Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to print child components #14

Closed
muriukim opened this issue Apr 29, 2018 · 4 comments
Closed

Unable to print child components #14

muriukim opened this issue Apr 29, 2018 · 4 comments

Comments

@muriukim
Copy link

<div style={{ textAlign: "left" }}>
       <p style={{ textTransform: "uppercase" }}>Name: {patient.get('firstName') + " " + 
         patient.get('middleName') + patient.get('lastName')}</p>
        <p>ID: {patient.get('id')}</p>
        <p>Time:{(new Date(parseInt(queueItem.get('time')))).toLocaleDateString()}</p>
        <p>Ticket 2453:</p>
         <p>There are patient(s) ahead of you</p>
         <QRCode size={100} value={434} />
         <Footer />
</div>

The components QRCode and Footer doesnt appear in the print.

@gregnb
Copy link
Collaborator

gregnb commented Apr 30, 2018

If you look at this example here: https://codesandbox.io/s/x3jx2kpq6w

There is no issue with child components

@muriukim
Copy link
Author

What could be the issue with my child components. Ofnotes is the the QRCode component actually renders a canvas

@muriukim
Copy link
Author

In the sandbox, the QRCode doesnt print. Seems your library cant canvas. I think you should add that as a feature

@muriukim
Copy link
Author

But just noticed that the QRCode library allows you to render as svg using the renderAs prop. Thanks for the help and nice library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants