update for PropTypes
HemrajLodha opened this issue · 15 comments
undefined is not an object (evaluating 'react2.PropTypes.oneOf')
please update library.
The same problem!
Node: v8.9.1
npm: 5.5.1
react: 16.0.0-beta.5
react-native-cli: 2.0.1
react-native: 0.49.5
Same problem.
"react": "^16.1.1",
"react-native": "0.50.3",
"react-native-material-design": "^0.3.7",
"react-native-vector-icons": "^4.4.2",
React.PropTypes
has been deprecated as PropTypes has been moved out of the standard library since React v15.5.
https://reactjs.org/warnings/dont-call-proptypes.html
I grepped the react-native-material-design
codebase, and it seems that react-native-vector-icons
in the node_modules directory is still using React.PropTypes. react-native-vector-icons
in react-native-material-design
's node_modules
directory is out-of-date. Could you please update it from 2.0.1 to 4.4.2?
$ pwd
/[myProjectPath]/node_modules/react-native-material-design
$$ ll
total 24
-rw-r--r-- 1 ahernandez staff 0 Jul 27 2016 CONTRIBUTING.md
-rw-r--r-- 1 ahernandez staff 1100 Jul 27 2016 LICENSE
-rw-r--r-- 1 ahernandez staff 3367 Jul 27 2016 README.md
drwxr-xr-x 22 ahernandez staff 704 Nov 27 21:29 lib
drwxr-xr-x 19 ahernandez staff 608 Nov 27 21:29 node_modules
-rw-r--r-- 1 ahernandez staff 2514 Nov 27 21:29 package.json
$ grep -r vector-icon ./package.json
./package.json: "react-native-vector-icons": "^2.0.1"
$ grep -r React.PropType .
./node_modules/react-native-vector-icons/RNIMigration.js: name: React.PropTypes.string.isRequired,
./node_modules/react-native-vector-icons/RNIMigration.js: size: React.PropTypes.number,
./node_modules/react-native-vector-icons/RNIMigration.js: color: React.PropTypes.string,
Any update ? Still got the same error :(
even I'm struck with the same. It'll be really useful, if devs turn up
The short-term fix is to install react-codemod and use the React-PropTypes-to-prop-types.js script as described at https://github.com/reactjs/react-codemod#react-proptypes-to-prop-types
Also have this error on fresh installed react-native
"react": "16.0.0",
"react-native": "0.51.0",
"react-native-material-design": "^0.3.7",
"react-native-vector-icons": "^4.5.0"
same error
same error here =(
same
same error
"mobx": "^4.1.1",
"mobx-react": "^5.0.0",
"react": "16.3.1",
"react-native": "0.54.4",
"react-native-material-design": "^0.3.7",
"react-native-vector-icons": "^4.6.0",
"react-navigation": "^1.5.11"
From the README:
This library is unmaintained. Please use at your own risk.
I'd recommend switching to react-native-elements
instead.
same problem here :( , any solution ???
same problem.
Same error. This package is not updated to support PropTypes separation yet.
Same problem
TypeError: Cannot read property 'replace' of undefined
any solution please?