react-ui-kit / dribbble2react

Transform Dribbble designs to React-Native code | Shop UI Kit >>
https://react-native-10x-faster.com
MIT License
2.56k stars 1.39k forks source link

Undefined error in Block component #35

Closed iloveyii closed 5 years ago

iloveyii commented 5 years ago

In your plant-app, while learning as soon as I import {Block} from components I get the following error on snack.expo project:

Device: (101:380) Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

This error is located at: in App in RCTView in RCTView https://snack.expo.io/@alibth/plants

hetmann commented 5 years ago

@iloveyii Thanks for opening this issue. Usually this should work, but I double check this snack and probably the error is in the App setup, don't know exactly.

Try this: import Block from './components/Block';

Also please copy the theme.js because the Block component is using it.