FaridSafi / react-native-gifted-listview

✌️ ListView with pull-to-refresh and infinite scrolling for Android and iOS React-Native apps
MIT License
1.62k stars 291 forks source link

Dependency error - GiftedSpinner #85

Closed scazzy closed 7 years ago

scazzy commented 7 years ago

Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. Check the render method of GiftedSpinner.

image

sunkehappy commented 7 years ago

I got the same error, is there something wrong?

scazzy commented 7 years ago

@sunkehappy This error is fixed in 9b8d939e0feadd728e44fe865c36c524ff6a3a77

sunkehappy commented 7 years ago

Is this released? How would I fix this on my local?

scazzy commented 7 years ago

@sunkehappy It's not yet published on the npm yet. We'll do so once upgraded in ES6 syntax. Meanwhile, you can npm uninstall the existing repo, and instead install using npm install https://github.com/FaridSafi/react-native-gifted-listview.git. Your code remains the same, just the repo source is changed.

You can also make manual change in node_modules as a temporary solution, but would not recommend that.