Open chenan02 opened 7 years ago
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
I did the work in my branch but I sent a pull request for this feature #18 if the author wants to republish.
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