component-docs icon indicating copy to clipboard operation
component-docs copied to clipboard

Support RNW

Open slorber opened this issue 5 years ago • 0 comments

Hey

As this project is used for both Paper and Reanimated (both supporting web platform), it would be cool if we could embed web component demos directly in the doc.

Is there a way to customize webpack currently, like a gatsby plugin or something?

Wrapping the webpack config with withUnimodules from import { withUnimodules } from '@expo/webpack-config/addons' should do the job, see https://github.com/slorber/gatsby-plugin-react-native-web/blob/master/src/gatsby-node.js

That could be a better experience and also a "proof" that web support is good in those libs if user was able to try web support easily.

slorber avatar Feb 05 '20 14:02 slorber