Open developer239 opened 7 years ago
How did this got resolveD?
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'
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.
fixed in master. @recr0ns please publish new version
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)
This error still occurs. Why are you still using createClass? Please fix.
same problem