How I can configure storybook to work with styled components and unistyles #572
Answered
by
gustavosorati
gustavosorati
asked this question in
Q&A
-
Hello everyone, this is my first contact with the storybook, and I would like to know how I can configure it to use it together with unistyles and styled-components, I am using expo in an existing project. |
Beta Was this translation helpful? Give feedback.
Answered by
gustavosorati
May 20, 2024
Replies: 1 comment 3 replies
-
I don't think anything is needed to make unistyles work (other than whatever setup you would normally do for an app), for styled-components the only thing you might need is to provide a decorator with the theme provider if there is one. You can do that per story or globally via preview.tsx. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was using stories inside the storybook folder, from the moment I started using the stories files together with my components inside the app folder of my expo application, the errors I was having with typing and absolute paths disappeared.
So I'll mark it as complete, thanks for trying to help.