Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

React.PropTypes deprecated in React v15.5+ #17

Open
chenan02 opened this issue Oct 29, 2017 · 1 comment
Open

React.PropTypes deprecated in React v15.5+ #17

chenan02 opened this issue Oct 29, 2017 · 1 comment

Comments

@chenan02
Copy link

calling React.PropTypes will throw an error in React v15.5+. Using React v16, I'm getting the following error in pannable.js:14:

"Cannot read property 'func' of undefined".

PropTypes have been moved from the React package into 'prop-types'. Facebook provides a codemod for migration here: https://reactjs.org/blog/2017/04/07/react-v15.5.0.html#migrating-from-react.proptypes

@rdy
Copy link

rdy commented Nov 12, 2017

I did the work in my branch but I sent a pull request for this feature #18 if the author wants to republish.

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

No branches or pull requests

2 participants