Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined is not a function (evaluating 'React.createClass') #76

Closed
Medardas opened this issue Aug 15, 2017 · 1 comment
Closed

undefined is not a function (evaluating 'React.createClass') #76

Medardas opened this issue Aug 15, 2017 · 1 comment

Comments

@Medardas
Copy link

Medardas commented Aug 15, 2017

Hello,
Im trying to run my app and seemingly without reason it started to throw this error"

08-15 02:27:24.340 18745 18806 E ReactNativeJS: undefined is not a function (evaluating 'React.createClass')
in LightboxOverlay.js

I did update PropTypes to be used from prop-types library since it doesn't seem to work with React.PropTypes anymore (this problem did show up in other node_modules, but prop-types lib seems to have fixed it) but other than that everything is how it supposed to be.

EDIT: Rewriting classes in ES6 seemed to have done the trick

@oblador
Copy link
Owner

oblador commented Sep 3, 2017

Fixed in 0.7.0

@oblador oblador closed this as completed Sep 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants