gre / react-native-view-shot

Snapshot a React Native view and save it to an image
https://github.com/gre/react-native-view-shot-example
MIT License
2.64k stars 343 forks source link

Feature: Add web support #476

Closed chrispader closed 1 year ago

chrispader commented 1 year ago

Fixes #224

Continuing the work of @NiciusB

This includes implementation of captureRef on web and an updated example with web support

chrispader commented 1 year ago

I updated the example and all of the relevant code sections, that were left off.

This PR should be ready for review! πŸš€ @gre

The functionality is limited to captureRef for now, as in @NiciusB's implementation

chrispader commented 1 year ago

Hi @gre, did you find any time to have a look at this PR yet? :)

We plan on using this library on web for a couple of features in a pretty big production app called "Expensify" and we want to prevent creating a fork or patching this library.

Lmk if i can be of help somehow! ☺️

gre commented 1 year ago

awesome work, thanks a lot πŸ‘

chrispader commented 1 year ago

Oh thanks, that was quick haha! πŸš€πŸ₯³