DEV Community

Discussion on: Step 3: Setting up Storybook with React Native Web: show your mobile components the browser!

Collapse
 
amahajan87 profile image
Aakanksha Mahajan

This is exactly what I have been working on and this is a great resource. I have a question, do you have any points on how to make Storybook work with

  1. a11y - as soon as im adding the a11y addon, the components do not load.
  2. Styled Components - when using styled components instead of Stylesheets,
Collapse
 
ugglr profile image
Carl-W

Thank you for the response!

My experience is that the more things needed to be aliased the harder it get's to scale. When it comes to styled-components it's easy to alias in the webpack configuration because they offer packages for both sides. For the web side they have their normal package styles-components and for react-native they have styled-components/native package.

I have not personally used a11y in this case, and I'm not sure how you are using it. but I'm going to guess you will need to think about how it's used on both sides, web+native