machadogj / react-native-carousel-control

React Native Carousel control with support for iOS and Android
MIT License
247 stars 55 forks source link

super expression must be either null #5

Closed greenteamer closed 8 years ago

greenteamer commented 8 years ago

Hello!

Thank you for your module, can you tell me, why i getting this error "Uncaught TypeError: Super expression must either be null or a function, not undefined"

If i import your Component from 'react' instead of 'react-native' - I getting

undefined is not an object on 143 line

143: { pages }

Thank you!

ssancheza227 commented 8 years ago

Hello, I have the same problem, this says: "Super expression must either be null or a function, not undefined".

Thank.


I fix this temporarily with an ListView in mode horizontal=true :)

machadogj commented 8 years ago

Thanks for reporting this! This had to do with the syntax for import in react native ^0.26. I have added a fix for this on 3e8941b, npm version 1.0.2.