[demo][1]
[1]: https://codesandbox.io/s/react-to-print-rzdhd
I'm using react-to-print library to generate pdf from html. But the problem is that when I try to generate pdf in my mobile(small screen size), it does not work for me however, it works in desktop(large screen size) view.
This package uses
window.print()
, which won't work on mobile devices. You can use the following workaround: