Skip to content
This repository has been archived by the owner on Feb 4, 2021. It is now read-only.

update for PropTypes #174

Open
HemrajLodha opened this issue Nov 13, 2017 · 15 comments
Open

update for PropTypes #174

HemrajLodha opened this issue Nov 13, 2017 · 15 comments

Comments

@HemrajLodha
Copy link

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

@dilowagner
Copy link

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
Copy link

alfonso1003 commented Nov 28, 2017

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
Copy link

Any update ? Still got the same error :(

@dottnit
Copy link

dottnit commented Feb 15, 2018

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

@arnoldbird
Copy link

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
Copy link

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
Copy link

same error

@danilocecilia
Copy link

same error here =(

@hedrovich
Copy link

same

@jason5149
Copy link

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
Copy link

From the README:

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

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

@Zephyer7673
Copy link

Zephyer7673 commented Apr 27, 2018

same problem here :( , any solution ???

@javan10
Copy link

javan10 commented May 1, 2018

same problem.

@moorthi07
Copy link

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

@RukshanRanabahu
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests