react-native-view-shot
react-native-view-shot copied to clipboard
[feature-request] Support web
Currently, it seems like react-native-view-shot just returns undefined
when ran in a web browser with react-native-web
I understand why this happens, but it might be interesting to wrap a library like html2canvas to provide at least some basic functionality
I will happily send a pull request if @gre thinks that it's within the scope of the package
it can happens yeah 😍
Hi, did you add support for Web ?
Hi @dario30186. The merge request is still open, so react-native-view-shot
does not have web support.
You could use my fork: react-native-view-shot-with-web-support
on npm (https://github.com/NiciusB/react-native-view-shot).
I have to warn, it will not be perfect. It uses html2canvas which has some drawbacks, more notably the text kerning can be pretty weird.
Hello, when will this feature be merged? @gre @NiciusB
@gre please respond
You could use my fork:
react-native-view-shot-with-web-support
on npm (https://github.com/NiciusB/react-native-view-shot). I have to warn, it will not be perfect. It uses html2canvas which has some drawbacks, more notably the text kerning can be pretty weird.
@NiciusB this is awesome. Works perfectly for me. Thanks for saving a ton of hours. 😍
Is this PR merged ?
sorry for missing out all my notifications 😢 The PR can't be merged because it conflicts with upstream. Please reopen one that can be merged 🙏
I'm going to continue the work of @NiciusB in this PR 🚀
@gre could you please also push a new version on NPM. :) That would be great. Thanks for merging this so soon 🥳
Nice! Great job @chrispader 🤘
@NiciusB thanks to you, you did most of the work already haha 😉