fwouts / viteshot

Viteshot 📸 is a fast and simple component screenshot tool based on Vite.
https://viteshot.com
MIT License
214 stars 12 forks source link

Feature Request: React Native Support #80

Closed kylerjensen closed 1 year ago

kylerjensen commented 1 year ago

We've been trying out Viteshot for our design system / component library which we've built in React Native. We are able to Viteshot working using react-native-web, but we realize that this isn't a true native or cross-platform approach and we occasionally encounter scenarios where there are differences between the screenshots we capture with Viteshot and the components that are actually rendered in production. I'd be very excited to see Viteshot become capable of taking screenshots of components on an iOS simulator or Android emulator.

Here's how I might expect this to work:

Obviously there would be a lot of experimentation needed to make this happen, but having React Native support in this tool would be really incredible for my team!

fwouts commented 1 year ago

Thanks @kylerjensen for sharing the idea!

I think this probably would make more sense as a completely new project, mostly based on the fact that this would be a very different codebase and wouldn't use Vite at all 😂

It sounds like a great project, although not something that I'd use myself so it wouldn't make sense to allocate my (very limited) free time for it. I'd encourage you to take it on!

Also happy to discuss with your company doing this as a paid project (get in touch at f@zenc.io).

kylerjensen commented 1 year ago

Thanks @fwouts for the quick reply and for your continued work on Viteshot!

I agree that this feature request does not fit well with Viteshot's original mission and vision. A new project or fork is probably the best place for this kind of addition to live. I'll go ahead and close this issue for now.

Best regards!