Open elbuenrobin opened 5 years ago
+1
I am getting a similar thing, undefined is not an object (evaluating '_react2.PropTypes.bool')
If you are using a newer version of React, PropTypes are deprecated and you need to import them from "prop-types" instead. I fixed this by running jscodeshift transforms to the library's folder:
jscodeshift -t ~/dev/react-codemod/transforms/class.js node_modules/react-native-multi-slider
jscodeshift -t ~/dev/react-codemod/transforms/React-PropTypes-to-prop-types.js node_modules/react-native-multi-slider
jscodeshift -t ~/dev/react-codemod/transforms/ReactNative-View-propTypes.js node_modules/react-native-multi-slider
You can hook them up to your postinstall script.
Author can you remove your package? This package does not work. Your error weighs in since 2018 and you haven't fixed it
Hi I have this code but I recibe this error "undefined is not an object (evaluating 'PropTypes.bool')"