menu

styled-components

Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress!

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# Help
view-forward
# jest
view-forward
# Off Topic
view-forward
# Website
view-forward
Team

RN + Cannot create styled-component for component: undefined

March 28, 2019 at 4:02am

RN + Cannot create styled-component for component: undefined

March 28, 2019 at 4:02am
Testing with React Native and Jest produce the next error:
Cannot create styled-component for component: undefined.
...
const Logo = styled(View)`
Anyone with similar issues?

August 7, 2019 at 1:32pm
Were you able to resolve this issue? I have a similar message
  • reply
  • like

August 13, 2019 at 6:21am
you likely have a circular dependency in your code. Try to find it and get rid of it, then it'll work.
like-fill
1
  • reply
  • like

September 29, 2019 at 6:51pm
had this issue, the way from has helped
  • reply
  • like