invertase / react-native-material-design

React Native UI Components for Material Design
http://react-native-material-design.github.io
MIT License
3.15k stars 366 forks source link

update for PropTypes #174

Open HemrajLodha opened 6 years ago

HemrajLodha commented 6 years ago

undefined is not an object (evaluating 'react2.PropTypes.oneOf') please update library.

dilowagner commented 6 years ago

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

alfonso1003 commented 6 years ago

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,
MinhNQ90 commented 6 years ago

Any update ? Still got the same error :(

dottnit commented 6 years ago

even I'm struck with the same. It'll be really useful, if devs turn up

arnoldbird commented 6 years ago

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

iamrenzx commented 6 years ago

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"
leehung-net commented 6 years ago

same error

danilocecilia commented 6 years ago

same error here =(

hedrovich commented 6 years ago

same

jason5149 commented 6 years ago

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"
alfonso1003 commented 6 years ago

From the README:

This library is unmaintained. Please use at your own risk.

I'd recommend switching to react-native-elements instead.

Zephyer7673 commented 6 years ago

same problem here :( , any solution ???

javan10 commented 6 years ago

same problem.

moorthi07 commented 6 years ago

Same error. This package is not updated to support PropTypes separation yet.

RukshanRanabahu commented 4 years ago

Same problem TypeError: Cannot read property 'replace' of undefined any solution please?