johanneslumpe / react-native-gesture-recognizers

Gesture recognizer decorators for react-native
MIT License
366 stars 55 forks source link

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

Open chenan02 opened 7 years ago

chenan02 commented 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

rdy commented 7 years ago

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