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

react.createclass is not a function #29

Open
developer239 opened this issue Oct 3, 2017 · 7 comments
Open

react.createclass is not a function #29

developer239 opened this issue Oct 3, 2017 · 7 comments

Comments

@developer239
Copy link

No description provided.

@thebuddha
Copy link

same problem

@roots-ai
Copy link

How did this got resolveD?

@nidaorhan
Copy link

There is a mistake in the index.js file.

go to node_modules/react-native-material-switch/index.js
and change the import statements like this:

import React         from 'react'
import {
  PanResponder,
  View,
  TouchableHighlight,
  Animated,
}                    from 'react-native'

@aligfl
Copy link

aligfl commented Nov 16, 2017

I think the npm version has to be updated. because I used the index.js version and it worked. The npm version doesn't match the version that's posted here.

@skv-headless
Copy link
Contributor

fixed in master. @recr0ns please publish new version

@pencilcheck
Copy link

Warning: React.createClass is no longer supported. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement. (https://fb.me/migrating-from-react-create-class)

@airTradies
Copy link

This error still occurs. Why are you still using createClass? Please fix.

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

8 participants